diff options
Diffstat (limited to 'deps/v8/test/cctest/wasm/test-wasm-trap-position.cc')
-rw-r--r-- | deps/v8/test/cctest/wasm/test-wasm-trap-position.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc b/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc index 30f5d48a07..d4a2b4fe0b 100644 --- a/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc +++ b/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc @@ -6,8 +6,8 @@ #include "test/cctest/cctest.h" #include "test/cctest/compiler/value-helper.h" -#include "test/cctest/wasm/test-signatures.h" #include "test/cctest/wasm/wasm-run-utils.h" +#include "test/common/wasm/test-signatures.h" using namespace v8::base; using namespace v8::internal; @@ -104,8 +104,9 @@ TEST(IllegalLoad) { WasmFunctionCompiler comp1(sigs.v_v(), &module, ArrayVector("mem_oob")); // Set the execution context, such that a runtime error can be thrown. comp1.SetModuleContext(); - BUILD(comp1, WASM_IF(WASM_ONE, - WASM_LOAD_MEM(MachineType::Int32(), WASM_I32V_1(-3)))); + BUILD(comp1, WASM_IF(WASM_ONE, WASM_SEQ(WASM_LOAD_MEM(MachineType::Int32(), + WASM_I32V_1(-3)), + WASM_DROP))); uint32_t wasm_index = comp1.CompileAndAdd(); WasmFunctionCompiler comp2(sigs.v_v(), &module, ArrayVector("call_mem_oob")); @@ -131,7 +132,7 @@ TEST(IllegalLoad) { // The column is 1-based, so add 1 to the actual byte offset. ExceptionInfo expected_exceptions[] = { - {"<WASM UNNAMED>", static_cast<int>(wasm_index), 7}, // -- + {"<WASM UNNAMED>", static_cast<int>(wasm_index), 8}, // -- {"<WASM UNNAMED>", static_cast<int>(wasm_index_2), 3}, // -- {"callFn", 1, 24} // -- }; |