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

Unified Diff: test/mjsunit/wasm/params.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/module-memory.js ('k') | test/mjsunit/wasm/stack.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/params.js
diff --git a/test/mjsunit/wasm/params.js b/test/mjsunit/wasm/params.js
index 52d62147510c39a54f983caad0031aee9fe45296..e9f2e956ebdbd5a5e34cb56627f599b3668f56b9 100644
--- a/test/mjsunit/wasm/params.js
+++ b/test/mjsunit/wasm/params.js
@@ -12,12 +12,12 @@ function runSelect2(module, which, a, b) {
function testSelect2(type) {
var kBodySize = 2;
- var kNameOffset = 21 + kBodySize + 1;
+ var kNameOffset = kHeaderSize + 21 + kBodySize + 1;
for (var which = 0; which < 2; which++) {
print("type = " + type + ", which = " + which);
- var data = bytes(
+ var data = bytesWithHeader(
// -- memory
kDeclMemory,
12, 12, 1, // memory
@@ -88,13 +88,13 @@ function runSelect10(module, which, a, b) {
function testSelect10(type) {
var kBodySize = 2;
- var kNameOffset = 29 + kBodySize + 1;
+ var kNameOffset = kHeaderSize + 29 + kBodySize + 1;
for (var which = 0; which < 10; which++) {
print("type = " + type + ", which = " + which);
var t = type;
- var data = bytes(
+ var data = bytesWithHeader(
kDeclMemory,
12, 12, 1, // memory
// signatures
« no previous file with comments | « test/mjsunit/wasm/module-memory.js ('k') | test/mjsunit/wasm/stack.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698