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

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

Issue 1597163002: wasm: change the module memory size to be multiples of the page size, 64k. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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 | « src/wasm/wasm-module.cc ('k') | test/mjsunit/wasm/ffi-error.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 9cd73bb1d98c8785987cd8043630b7e3531c1b94..ad895f98d35150e2aa40864c9b782e2afc0dbf74 100644
--- a/test/mjsunit/wasm/calls.js
+++ b/test/mjsunit/wasm/calls.js
@@ -13,7 +13,7 @@ var module = (function () {
return _WASMEXP_.instantiateModule(bytesWithHeader(
// -- memory
kDeclMemory,
- 12, 12, 1,
+ 1, 1, 1,
// -- signatures
kDeclSignatures, 1,
2, kAstI32, kAstI32, kAstI32, // int, int -> int
@@ -50,7 +50,7 @@ for (var i = 0; i < 4; i++) {
assertEquals(mem, module.memory);
}
-assertEquals(4096, module.memory.byteLength);
+assertEquals(65536, module.memory.byteLength);
// Check the properties of the sub function.
assertEquals("function", typeof module.sub);
@@ -67,7 +67,7 @@ var module = (function() {
return _WASMEXP_.instantiateModule(bytesWithHeader(
// -- memory
kDeclMemory,
- 12, 12, 1,
+ 1, 1, 1,
// -- signatures
kDeclSignatures, 1,
0, kAstStmt, // signature: void -> void
@@ -101,7 +101,7 @@ for (var i = 0; i < 4; i++) {
assertEquals(mem, module.memory);
}
-assertEquals(4096, module.memory.byteLength);
+assertEquals(65536, module.memory.byteLength);
// Check the properties of the sub function.
assertFalse(module.nop === undefined);
@@ -118,7 +118,7 @@ assertEquals(undefined, module.nop());
var data = bytesWithHeader(
// -- memory
kDeclMemory,
- 12, 12, 1,
+ 1, 1, 1,
// -- signatures
kDeclSignatures, 1,
2, kAstI32, kAstF64, kAstF64, // (f64,f64)->int
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | test/mjsunit/wasm/ffi-error.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698