tor-browser

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

testLargeHeap.js (493B)


      1 // |jit-test| skip-if: !largeArrayBufferSupported()
      2 
      3 load(libdir + "asm.js");
      4 
      5 // This is a validly structured length but it is too large for our asm.js
      6 // implementation: for the sake of simplicity, we draw the line at 7fff_ffff (ie
      7 // really at 7f00_0000 given constraints on the format of the address).
      8 var buf = new ArrayBuffer(0x8000_0000);
      9 assertAsmLinkFail(asmCompile('glob', 'imp', 'b', USE_ASM + HEAP_IMPORTS + 'function f() { u8[' + BUF_MIN + '] = -1 } return f'), this, null, buf);