<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement indirect calls in WebAssembly"
   href="https://bugs.webkit.org/show_bug.cgi?id=149100#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement indirect calls in WebAssembly"
   href="https://bugs.webkit.org/show_bug.cgi?id=149100">bug 149100</a>
              from <span class="vcard"><a class="email" href="mailto:sukolsak&#64;gmail.com" title="Sukolsak Sakshuwong &lt;sukolsak&#64;gmail.com&gt;"> <span class="fn">Sukolsak Sakshuwong</span></a>
</span></b>
        <pre>Thanks for the review.

(In reply to <a href="show_bug.cgi?id=149100#c3">comment #3</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=261077&amp;action=diff" name="attach_261077" title="Patch">attachment 261077</a> <a href="attachment.cgi?id=261077&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=261077&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=261077&amp;action=review</a>
&gt; 
&gt; r=me
&gt; 
&gt; &gt; Source/JavaScriptCore/wasm/WASMFunctionCompiler.h:610
&gt; &gt; +
&gt; &gt; +        const Vector&lt;JSFunction*&gt;&amp; functions = m_module-&gt;functionPointerTables()[functionPointerTableIndex].functions;
&gt; &gt; +        move(TrustedImmPtr(functions.data()), GPRInfo::regT0);
&gt; &gt; +        load32(temporaryAddress(m_tempStackTop - 1), GPRInfo::regT1);
&gt; &gt; +        m_tempStackTop--;
&gt; 
&gt; Can you guarantee that the vector will never resize (and thus never change
&gt; its data pointer)?</span >

WASM source is parsed in two passes. The first pass is for syntax checking and initializing some data. The second pass is for code generation. The vector only resizes in the first pass. It will never resize after that.

The vector only resizes when we load the WASM module and parse the function pointer tables. It will never resize after that.</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>