<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:utatane.tea&#64;gmail.com" title="Yusuke Suzuki &lt;utatane.tea&#64;gmail.com&gt;"> <span class="fn">Yusuke Suzuki</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ESnext] Implement Object Spread"
   href="https://bugs.webkit.org/show_bug.cgi?id=167963">bug 167963</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #304453 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ESnext] Implement Object Spread"
   href="https://bugs.webkit.org/show_bug.cgi?id=167963#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ESnext] Implement Object Spread"
   href="https://bugs.webkit.org/show_bug.cgi?id=167963">bug 167963</a>
              from <span class="vcard"><a class="email" href="mailto:utatane.tea&#64;gmail.com" title="Yusuke Suzuki &lt;utatane.tea&#64;gmail.com&gt;"> <span class="fn">Yusuke Suzuki</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=304453&amp;action=diff" name="attach_304453" title="Proposed Patch for Landing">attachment 304453</a> <a href="attachment.cgi?id=304453&amp;action=edit" title="Proposed Patch for Landing">[details]</a></span>
Proposed Patch for Landing

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=304453&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=304453&amp;action=review</a>

r=me with comments.

<span class="quote">&gt; Source/JavaScriptCore/builtins/GlobalOperations.js:89
&gt; +    if (source === &#64;undefined || source == null)</span >

`source == null` includes `source === &#64;undefined`. So drop `source === &#64;undefined` part.

<span class="quote">&gt; Source/JavaScriptCore/bytecode/CodeBlock.cpp:878
&gt; +        const HashSet&lt;RefPtr&lt;UniquedStringImpl&gt;&gt;&amp; set = entry.first;</span >

If HashSet does not include any nullptr, we should use Ref&lt;&gt;.
In this case, I think we shoud use Ref&lt;&gt; instead of RefPtr&lt;&gt;.

<span class="quote">&gt; Source/JavaScriptCore/bytecode/CodeBlock.cpp:879
&gt;          for (auto setEntry : set) {</span >

It becomes `auto&amp; `

<span class="quote">&gt; Source/JavaScriptCore/bytecode/CodeBlock.cpp:880
&gt; +            JSString* jsString = jsOwnedString(&amp;vm, setEntry.get());</span >

And it becomes `setEntry.ptr().

<span class="quote">&gt; Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:1925
&gt;      for (ConstantIndentifierSetEntry entry : m_codeBlock-&gt;constantIdentifierSets()) {</span >

This always copies HashSet. Let's use `const auto&amp; entry` instead.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>