tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug1747870.js (495B)


      1 // |jit-test| skip-if: !wasmSimdEnabled()
      2 
      3 // This should not release-assert, which it could previously do on some 32-bit
      4 // platforms due to the too-limited size of a bitfield.
      5 
      6 const MaxParams = 1000;         // Per spec
      7 
      8 var params = '';
      9 for ( var i=0 ; i < MaxParams-1; i++ ) {
     10    params += '(param v128) '
     11 }
     12 params += '(param externref)'
     13 
     14 new WebAssembly.Module(wasmTextToBinary(`
     15 (module
     16  (func $f)
     17  (func ${params} (result externref)
     18    (call $f)
     19    (local.get ${MaxParams-1})))`));