<?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>220204</bug_id>
          
          <creation_ts>2020-12-30 15:54:39 -0800</creation_ts>
          <short_desc>[JSC] bluenoise script takes too long time</short_desc>
          <delta_ts>2022-02-12 19:47:30 -0800</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>220254</dup_id>
          
          <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>220254</dependson>
    
    <dependson>220219</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>krollin</cc>
    
    <cc>mark.lam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1716876</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-12-30 15:54:39 -0800</bug_when>
    <thetext>This sounds like some optimization failure in DFG/FTL. We should fix.
https://twitter.com/DasSurma/status/1344325758089650178</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1716880</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-12-30 16:07:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/72744961&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1716949</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-01-01 01:43:31 -0800</bug_when>
    <thetext>OK, this is not something simple issue.

The main reason why this takes some time is that, valueAt and setValueAt are not inlined.
Their callers and callees are creating objects frequently (return value / parameter).
If they are inlined, FTL compiler knows that these objects are not escaped so we can completely eliminate object allocations for them. However, if they are not inlined, we need to allocate them since it is escaped inside this function. This is the reason why they are slow.
And why they are not inlined is because they are complex enough and taking enough amount of bytecodes which prevents inlining.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1716952</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-01-01 04:14:12 -0800</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=220219 does not fix this. But it slightly removes unnecessary bytecodes that can be seen commonly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1717198</commentid>
    <comment_count>4</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-01-04 13:49:42 -0800</bug_when>
    <thetext>Let&apos;s fix this with https://bugs.webkit.org/show_bug.cgi?id=220254</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1840816</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-02-12 19:47:30 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 220254 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>