diff options
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/bounds-check-turbofan.js')
-rw-r--r-- | deps/v8/test/mjsunit/wasm/bounds-check-turbofan.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/test/mjsunit/wasm/bounds-check-turbofan.js b/deps/v8/test/mjsunit/wasm/bounds-check-turbofan.js index c99d44c5ce..c3eb9f32a6 100644 --- a/deps/v8/test/mjsunit/wasm/bounds-check-turbofan.js +++ b/deps/v8/test/mjsunit/wasm/bounds-check-turbofan.js @@ -14,10 +14,10 @@ builder.addFunction('load', kSig_i_i) kExprI32LoadMem, 0, 100]) .exportFunc(); -const module = builder.instantiate(); -%WasmTierUpFunction(module, 0); +const load = builder.instantiate().exports.load; +%WasmTierUpFunction(load); // 100 is added as part of the load instruction above // Last valid address (64k - 100 - 4) -assertEquals(0, module.exports.load(0x10000 - 100 - 4)); +assertEquals(0, load(0x10000 - 100 - 4)); // First invalid address (64k - 100) -assertTraps(kTrapMemOutOfBounds, _ => { module.exports.load(0x10000 - 100);}); +assertTraps(kTrapMemOutOfBounds, _ => { load(0x10000 - 100);}); |