<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>72054</bug_id>
          
          <creation_ts>2011-11-10 13:48:43 -0800</creation_ts>
          <short_desc>Could round rather than truncate in compileClampDoubleToByte?</short_desc>
          <delta_ts>2023-08-22 11:21:36 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>260534</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gavin Barraclough">barraclough</reporter>
          <assigned_to name="Keith Miller">keith_miller</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>commit-queue</cc>
    
    <cc>keith_miller</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>500237</commentid>
    <comment_count>0</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2011-11-10 13:48:43 -0800</bug_when>
    <thetext>There is a +0.5 followed by truncate in the DFG JIT, may be able to replace this with a round.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885828</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-21 14:37:31 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/blob/main/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp#L3555

It is still present in the Source Code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970735</commentid>
    <comment_count>2</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2023-08-11 10:29:07 -0700</bug_when>
    <thetext>This also has the wrong semantics. It should be a round to nearest not a round to infinity. Uploading a patch now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970744</commentid>
    <comment_count>3</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2023-08-11 10:34:06 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/16609</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972448</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-08-21 11:56:55 -0700</bug_when>
    <thetext>Committed 267100@main (c55d0673236c): &lt;https://commits.webkit.org/267100@main&gt;

Reviewed commits have been landed. Closing PR #16609 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972450</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-21 11:57:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/114208146&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972680</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2023-08-22 11:21:36 -0700</bug_when>
    <thetext>Re-opened since this is blocked by bug 260534</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>