<?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>162952</bug_id>
          
          <creation_ts>2016-10-04 18:23:56 -0700</creation_ts>
          <short_desc>WebAssembly: support more than one size register</short_desc>
          <delta_ts>2017-03-13 09:43:23 -0700</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>165282</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Keith Miller">keith_miller</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jfbastien</cc>
    
    <cc>keith_miller</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1236494</commentid>
    <comment_count>0</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2016-10-04 18:23:56 -0700</bug_when>
    <thetext>...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1263121</commentid>
    <comment_count>1</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2016-12-29 23:32:47 -0800</bug_when>
    <thetext>In bug #165282 I&apos;m adding code which assumes that all WebAssembly.Instance have the same pinned registers. I&apos;m doing this because wasm-&gt;wasm calls are generated at Module time, without knowing which import will be provided at Instance time.

We could instead generate one stub per type of outcall:
 - wasm w/ fast memory -&gt; wasm w/o memory
 - wasm w/ fast memory -&gt; wasm w/ slow memory
 - wasm w/o memory -&gt; wasm w/ fast memory
 - wasm w/o memory -&gt; wasm w/ slow memory
 - wasm w/ slow memory -&gt; wasm w/ fast memory
 - wasm w/ slow memory -&gt; wasm w/o memory

I&apos;m not sure the complexity (and potential for bugs!) are worth it at this point in time.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>