<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement the relational instructions in WebAssembly"
   href="https://bugs.webkit.org/show_bug.cgi?id=148838#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement the relational instructions in WebAssembly"
   href="https://bugs.webkit.org/show_bug.cgi?id=148838">bug 148838</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.

(In reply to <a href="show_bug.cgi?id=148838#c2">comment #2</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=260658&amp;action=diff" name="attach_260658" title="Patch">attachment 260658</a> <a href="attachment.cgi?id=260658&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=260658&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=260658&amp;action=review</a>
&gt; 
&gt; r=me with comment
&gt; 
&gt; &gt; Source/JavaScriptCore/tests/stress/wasm-relational.js:119
&gt; &gt; +var module = loadWebAssembly(&quot;wasm-relational.wasm&quot;);
&gt; 
&gt; I think it'd be nicer to have a directory in stress called &quot;wasm&quot; that holds
&gt; all the
&gt; wasm binaries were testing. Do we have other tests checked in that follow the
&gt; model in this patch? Maybe it's worth changing those.  </span >

Will do.

<span class="quote">&gt; Also, would it be possible to write the tests such that
&gt; we can write all wasm tests in JS, and have the loadWebAssembly do the
&gt; translation on the fly?</span >

(In reply to <a href="show_bug.cgi?id=148838#c3">comment #3</a>)
<span class="quote">&gt; Doing the JS =&gt;wasm translation on the fly will make
&gt; converting to newer wasm formats much easier.</span >

We will have to include the source code of pack-asmjs (~3,800 lines) and the asm.js parser that it uses (~2,900 lines.) It's probably not worth the time though, considering that eventually, we will have to implement the text format &lt;<a href="https://github.com/WebAssembly/design/blob/master/TextFormat.md">https://github.com/WebAssembly/design/blob/master/TextFormat.md</a>&gt;. It will be a better way to write tests, because we will have more control over what pack-asmjs generates. asm.js is only a stopgap until the spec is finalized.</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>