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

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

Issue 2361053004: Revert of [wasm] Master CL for Binary 0xC changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/module-memory.js ('k') | test/mjsunit/wasm/receiver.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/parallel_compilation.js
diff --git a/test/mjsunit/wasm/parallel_compilation.js b/test/mjsunit/wasm/parallel_compilation.js
index 208232cfd4f7a56a98cb420254496f5c01c28dde..23c5658dcdcbee5ea66e57681cfcc91852dff826 100644
--- a/test/mjsunit/wasm/parallel_compilation.js
+++ b/test/mjsunit/wasm/parallel_compilation.js
@@ -20,16 +20,13 @@
assertFalse(mem === null);
assertFalse(mem === 0);
assertEquals("object", typeof mem);
- assertTrue(mem instanceof WebAssembly.Memory);
- var buf = mem.buffer;
- assertTrue(buf instanceof ArrayBuffer);
- assertEquals(memsize, buf.byteLength);
+ assertTrue(mem instanceof ArrayBuffer);
for (var i = 0; i < 4; i++) {
module.exports.memory = 0; // should be ignored
- mem.buffer = 0; // should be ignored
- assertSame(mem, module.exports.memory);
- assertSame(buf, mem.buffer);
+ assertEquals(mem, module.exports.memory);
}
+
+ assertEquals(memsize, module.exports.memory.byteLength);
}
function assertFunction(module, func) {
@@ -87,7 +84,7 @@
.addBody([ // --
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
- kExprCallFunction, f[i >>> 1].index]) // --
+ kExprCallFunction, kArity2, f[i >>> 1].index]) // --
.exportFunc()
}
var module = builder.instantiate();
« no previous file with comments | « test/mjsunit/wasm/module-memory.js ('k') | test/mjsunit/wasm/receiver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698