diff options
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-6700.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-6700.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-6700.js b/deps/v8/test/mjsunit/regress/regress-6700.js index 342cac485e4..c20cefd02c7 100644 --- a/deps/v8/test/mjsunit/regress/regress-6700.js +++ b/deps/v8/test/mjsunit/regress/regress-6700.js @@ -4,6 +4,8 @@ // Flags: --allow-natives-syntax +let kMinHeapSize = 4096; + (function TestLeftRight() { function Module(stdlib, foreign, heap) { "use asm"; @@ -14,7 +16,7 @@ } return { f:f } } - var buffer = new ArrayBuffer(1024); + var buffer = new ArrayBuffer(kMinHeapSize); var module = new Module(this, {}, buffer); assertTrue(%IsAsmWasmCode(Module)); new Int32Array(buffer)[42] = 23; @@ -31,7 +33,7 @@ } return { f:f } } - var buffer = new ArrayBuffer(1024); + var buffer = new ArrayBuffer(kMinHeapSize); var module = new Module(this, {}, buffer) assertTrue(%IsAsmWasmCode(Module)); new Int32Array(buffer)[42 >> 4] = 23; @@ -48,7 +50,7 @@ } return { f:f } } - var buffer = new ArrayBuffer(1024); + var buffer = new ArrayBuffer(kMinHeapSize); var module = new Module(this, {}, buffer) assertFalse(%IsAsmWasmCode(Module)); new Int32Array(buffer)[42 & 0xfc] = 23; @@ -65,7 +67,7 @@ } return { f:f } } - var buffer = new ArrayBuffer(1024); + var buffer = new ArrayBuffer(kMinHeapSize); var module = new Module(this, {}, buffer) assertFalse(%IsAsmWasmCode(Module)); new Int32Array(buffer)[42 >> 3] = 23; @@ -82,7 +84,7 @@ } return { f:f } } - var buffer = new ArrayBuffer(1024); + var buffer = new ArrayBuffer(kMinHeapSize); var module = new Module(this, {}, buffer) assertFalse(%IsAsmWasmCode(Module)); new Int32Array(buffer)[42 << 2] = 23; |