<?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>164531</bug_id>
          
          <creation_ts>2016-11-08 15:48:08 -0800</creation_ts>
          <short_desc>Spread(ArrayUse:@child) should participate in CSE</short_desc>
          <delta_ts>2018-01-19 13:41:35 -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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>164258</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saam Barati">saam</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>benjamin</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>gskachkov</cc>
    
    <cc>jfbastien</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>ticaiolima</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1249160</commentid>
    <comment_count>0</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2016-11-08 15:48:08 -0800</bug_when>
    <thetext>After I land https://bugs.webkit.org/show_bug.cgi?id=164258, we will emit Spread(ArrayUse:@child) only when we know that the iterator protocol is proven to be non-observable.
This means we can CSE two Spread(ArrayUse:@child) together when we&apos;ve proven that nobody changes @child in between the two Spreads.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249162</commentid>
    <comment_count>1</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2016-11-08 15:48:53 -0800</bug_when>
    <thetext>It&apos;s important to also note that Spread will allocate a JSFixedArray, but JSFixedArray is a VM internal cell, it&apos;s not observable to user code. Therefore, it&apos;s ok to simply drop the second allocation and use the first one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391159</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2018-01-19 13:37:35 -0800</bug_when>
    <thetext>Since the comment mentioning this bug was removed in r227229, can this be changed to RESOLVED/WONTFIX?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391162</commentid>
    <comment_count>3</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2018-01-19 13:41:35 -0800</bug_when>
    <thetext>(In reply to David Kilzer (:ddkilzer) from comment #2)
&gt; Since the comment mentioning this bug was removed in r227229, can this be
&gt; changed to RESOLVED/WONTFIX?

I think it&apos;s worth keeping this. We could theoretically do this if we speculated in some particular way. Or if we proved the input to Spread doesn&apos;t have a symbol iterator.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>