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

Unified Diff: test/mjsunit/wasm/module-memory.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/mjsunit/wasm/instantiate-run-basic.js ('k') | test/mjsunit/wasm/params.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/module-memory.js
diff --git a/test/mjsunit/wasm/module-memory.js b/test/mjsunit/wasm/module-memory.js
index e9c1404a4f0bd70933d84962965a159a34104cf2..b3a3a226e545a4630d49e198b54960023ce870a1 100644
--- a/test/mjsunit/wasm/module-memory.js
+++ b/test/mjsunit/wasm/module-memory.js
@@ -10,9 +10,9 @@ var kMemSize = 4096;
function genModule(memory) {
var kBodySize = 27;
- var kNameMainOffset = 28 + kBodySize + 1;
+ var kNameMainOffset = kHeaderSize + 28 + kBodySize + 1;
- var data = bytes(
+ var data = bytesWithHeader(
kDeclMemory,
12, 12, 1, // memory
// -- signatures
@@ -133,9 +133,9 @@ testOuterMemorySurvivalAcrossGc();
function testOOBThrows() {
var kBodySize = 8;
- var kNameMainOffset = 29 + kBodySize + 1;
+ var kNameMainOffset = kHeaderSize + 29 + kBodySize + 1;
- var data = bytes(
+ var data = bytesWithHeader(
kDeclMemory,
12, 12, 1, // memory = 4KB
// -- signatures
« no previous file with comments | « test/mjsunit/wasm/instantiate-run-basic.js ('k') | test/mjsunit/wasm/params.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698