<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES6]. Implement Annex B.3.3 function hoisting rules for eval"
   href="https://bugs.webkit.org/show_bug.cgi?id=163208#c60">Comment # 60</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES6]. Implement Annex B.3.3 function hoisting rules for eval"
   href="https://bugs.webkit.org/show_bug.cgi?id=163208">bug 163208</a>
              from <span class="vcard"><a class="email" href="mailto:gskachkov&#64;gmail.com" title="GSkachkov &lt;gskachkov&#64;gmail.com&gt;"> <span class="fn">GSkachkov</span></a>
</span></b>
        <pre>Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=302546&amp;action=diff" name="attach_302546" title="Patch">attachment 302546</a> <a href="attachment.cgi?id=302546&amp;action=edit" title="Patch">[details]</a></span>
Patch

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

<span class="quote">&gt;&gt; Source/JavaScriptCore/bytecode/BytecodeList.json:156
&gt;&gt; +            { &quot;name&quot; : &quot;op_resolve_scope_for_binding_func_decl_in_eval&quot;, &quot;length&quot; : 4 }
&gt; 
&gt; Can we call this:
&gt; &quot;op_resolve_scope_for_hoisting_func_decl_in_eval&quot;
&gt; I think having the word &quot;hoisting&quot; in here will help everyone better understand what this opcode is doing.
&gt; (Also, can you change the various C++ functions that have &quot;binding&quot; in the name to &quot;hoisting&quot; or &quot;hoist&quot;)</span >

Fixed

<span class="quote">&gt;&gt; Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:1063
&gt;&gt; +            break;
&gt; 
&gt; You need to say that the FTL supports this opcode inside FTLCapabilities.cpp.
&gt; Please verify that this gets compiled in some of your tests, or add new tests that make it to the FTL.</span >

Fixed
I added RELEASE_ASSERT_.. and receive following tests failed:    stress/eval-func-decl-block-with-remove.js.ftl-eager
    stress/eval-func-decl-block-with-remove.js.ftl-eager-no-cjit
    stress/eval-func-decl-block-with-var-and-remove.js.ftl-eager
    stress/eval-func-decl-block-with-var-and-remove.js.ftl-eager-no-cjit
    stress/eval-func-decl-block-with-var-sinthesize.js.ftl-eager
    stress/eval-func-decl-block-with-var-sinthesize.js.ftl-eager-no-cjit
    stress/eval-func-decl-in-eval-within-block-with-let.js.ftl-eager
    stress/eval-func-decl-in-eval-within-block-with-let.js.ftl-eager-no-cjit
    stress/eval-func-decl-in-eval-within-with-scope.js.default
    stress/eval-func-decl-in-eval-within-with-scope.js.ftl-eager
    stress/eval-func-decl-in-eval-within-with-scope.js.ftl-eager-no-cjit
    stress/eval-func-decl-in-eval-within-with-scope.js.ftl-no-cjit-no-inline-validate
    stress/eval-func-decl-in-eval-within-with-scope.js.ftl-no-cjit-no-put-stack-validate
    stress/eval-func-decl-in-eval-within-with-scope.js.ftl-no-cjit-validate-sampling-profiler
    stress/eval-func-decl-within-eval-with-reassign-to-var.js.ftl-eager
    stress/eval-func-decl-within-eval-with-reassign-to-var.js.ftl-eager-no-cjit
    stress/eval-func-decl-within-eval-without-reassign-to-let.js.ftl-eager
    stress/eval-func-decl-within-eval-without-reassign-to-let.js.ftl-eager-no-cjit
So I think it covered by Tests

<span class="quote">&gt;&gt; Source/JavaScriptCore/interpreter/Interpreter.cpp:1148
&gt;&gt; +            for (int i = 0; i &lt; numFunctions; ++i) {
&gt; 
&gt; Why are there both &quot;numFunctions&quot; and &quot;numHoistedFunctions&quot;. Isn't every function declaration in an eval a hoisting candidate?</span >

We have topLevel function that is list of the declared functions, and list of the function names from codeBlockes, that later will be bounded to function. 
I've renamed to correspond this difference. Could you please look if it more clear?</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>