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

Unified Diff: test/mjsunit/wasm/instance-memory-gc-stress.js

Issue 2591753002: [wasm] Implement correct 2-level namespace for imports. (Closed)
Patch Set: Fix debug tests Created 4 years 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/indirect-tables.js ('k') | test/mjsunit/wasm/instantiate-module-basic.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/instance-memory-gc-stress.js
diff --git a/test/mjsunit/wasm/instance-memory-gc-stress.js b/test/mjsunit/wasm/instance-memory-gc-stress.js
index fc824c2af7e56fe5d3cd29436249bc2c03f4b885..64909eb9dff4e0075b26ca0b0ec4dee25239cd1b 100644
--- a/test/mjsunit/wasm/instance-memory-gc-stress.js
+++ b/test/mjsunit/wasm/instance-memory-gc-stress.js
@@ -13,7 +13,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
print("InstanceMemoryGcStress");
let memory = new WebAssembly.Memory({initial: 100, maximum: 1500});
var builder = new WasmModuleBuilder();
- builder.addImportedMemory("imported_mem");
+ builder.addImportedMemory("mod", "imported_mem");
builder.addFunction("mem_size", kSig_i_v)
.addBody([kExprMemorySize, kMemoryZero])
.exportFunc();
@@ -23,7 +23,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
var instances = [];
for (var i = 0; i < 5; i++) {
gc();
- instances.push(builder.instantiate({imported_mem: memory}));
+ instances.push(builder.instantiate({mod: {imported_mem: memory}}));
}
function grow_instance_0(pages) { return instances[0].exports.grow(pages); }
function grow_instance_1(pages) { return instances[1].exports.grow(pages); }
@@ -60,7 +60,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
assertEquals(800, instances[0].exports.mem_size());
// Instantiate a new instance and verify that it can be grown correctly.
- instances.push(builder.instantiate({imported_mem: memory}));
+ instances.push(builder.instantiate({mod: {imported_mem: memory}}));
function grow_instance_5(pages) { return instances[5].exports.grow(pages); }
gc();
gc();
« no previous file with comments | « test/mjsunit/wasm/indirect-tables.js ('k') | test/mjsunit/wasm/instantiate-module-basic.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698