Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: test/mjsunit/wasm/trap-location.js

Issue 2345593003: [wasm] Master CL for Binary 0xC changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test failures and TSAN races. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/wasm/test-wasm-module-builder.js ('k') | test/mjsunit/wasm/unicode-validation.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/trap-location.js
diff --git a/test/mjsunit/wasm/trap-location.js b/test/mjsunit/wasm/trap-location.js
index 0440af9ccc6565c80bab645e811b22d5af8b88c1..bc8214f9b2267307b310fdf2806552ca614d4eb1 100644
--- a/test/mjsunit/wasm/trap-location.js
+++ b/test/mjsunit/wasm/trap-location.js
@@ -30,29 +30,29 @@ var sig_index = builder.addType(kSig_i_v)
builder.addFunction("main", kSig_i_i)
.addBody([
// offset 1
- kExprBlock,
+ kExprBlock, kAstI32,
kExprGetLocal, 0,
kExprI32Const, 2,
kExprI32LtU,
- kExprIf,
- // offset 8
+ kExprIf, kAstStmt,
+ // offset 9
kExprI32Const, 0x7e /* -2 */,
kExprGetLocal, 0,
kExprI32DivU,
- // offset 13
+ // offset 15
kExprI32LoadMem, 0, 0,
- kExprBr, 1, 1,
+ kExprBr, 1,
kExprEnd,
- // offset 20
+ // offset 21
kExprGetLocal, 0,
kExprI32Const, 2,
kExprI32Eq,
- kExprIf,
+ kExprIf, kAstStmt,
kExprUnreachable,
kExprEnd,
- // offset 28
- kExprGetLocal, 0,
- kExprCallIndirect, kArity0, sig_index,
+ // offset 30
+ kExprGetLocal, 0,
+ kExprCallIndirect, sig_index,
kExprEnd,
])
.exportAs("main");
@@ -72,7 +72,7 @@ function testWasmTrap(value, reason, position) {
}
// The actual tests:
-testWasmTrap(0, kTrapDivByZero, 12);
-testWasmTrap(1, kTrapMemOutOfBounds, 13);
-testWasmTrap(2, kTrapUnreachable, 26);
-testWasmTrap(3, kTrapFuncInvalid, 30);
+testWasmTrap(0, kTrapDivByZero, 14);
+testWasmTrap(1, kTrapMemOutOfBounds, 15);
+testWasmTrap(2, kTrapUnreachable, 28);
+testWasmTrap(3, kTrapFuncInvalid, 32);
« no previous file with comments | « test/mjsunit/wasm/test-wasm-module-builder.js ('k') | test/mjsunit/wasm/unicode-validation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698