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

Unified Diff: test/mjsunit/wasm/calls.js

Issue 1740373002: [wasm] Add a magic word and a version number to the binary. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/cctest/wasm/test-run-wasm-module.cc ('k') | test/mjsunit/wasm/divrem-trap.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/calls.js
diff --git a/test/mjsunit/wasm/calls.js b/test/mjsunit/wasm/calls.js
index 98ad657f522c1653c71b8ed0425e92626d6deea7..9cd73bb1d98c8785987cd8043630b7e3531c1b94 100644
--- a/test/mjsunit/wasm/calls.js
+++ b/test/mjsunit/wasm/calls.js
@@ -8,9 +8,9 @@ load("test/mjsunit/wasm/wasm-constants.js");
var module = (function () {
var kBodySize = 5;
- var kNameOffset = 21 + kBodySize + 1;
+ var kNameOffset = kHeaderSize + 21 + kBodySize + 1;
- return _WASMEXP_.instantiateModule(bytes(
+ return _WASMEXP_.instantiateModule(bytesWithHeader(
// -- memory
kDeclMemory,
12, 12, 1,
@@ -62,9 +62,9 @@ assertEquals(-5555555, module.sub(3333333, 8888888));
var module = (function() {
var kBodySize = 1;
- var kNameOffset2 = 19 + kBodySize + 1;
+ var kNameOffset2 = kHeaderSize + 19 + kBodySize + 1;
- return _WASMEXP_.instantiateModule(bytes(
+ return _WASMEXP_.instantiateModule(bytesWithHeader(
// -- memory
kDeclMemory,
12, 12, 1,
@@ -113,9 +113,9 @@ assertEquals(undefined, module.nop());
(function testLt() {
var kBodySize = 5;
- var kNameOffset = 21 + kBodySize + 1;
+ var kNameOffset = kHeaderSize + 21 + kBodySize + 1;
- var data = bytes(
+ var data = bytesWithHeader(
// -- memory
kDeclMemory,
12, 12, 1,
« no previous file with comments | « test/cctest/wasm/test-run-wasm-module.cc ('k') | test/mjsunit/wasm/divrem-trap.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698