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

Unified Diff: test/mjsunit/wasm/gc-frame.js

Issue 2081973003: Refactor module builder (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
Index: test/mjsunit/wasm/gc-frame.js
diff --git a/test/mjsunit/wasm/gc-frame.js b/test/mjsunit/wasm/gc-frame.js
index 016d1c6b8eeeef4d6cb2eb9f1a7f3fbdc74ff03e..9c37fe485f86f110637026f2255f02c825bab577 100644
--- a/test/mjsunit/wasm/gc-frame.js
+++ b/test/mjsunit/wasm/gc-frame.js
@@ -10,7 +10,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
function makeFFI(func, t) {
var builder = new WasmModuleBuilder();
- var sig_index = builder.addSignature([10,t,t,t,t,t,t,t,t,t,t,1,t]);
+ var sig_index = builder.addType(makeSig([t,t,t,t,t,t,t,t,t,t], [t]));
builder.addImport("func", sig_index);
// Try to create a frame with lots of spilled values and parameters
// on the stack to try to catch GC bugs in the reference maps for
@@ -76,7 +76,7 @@ function print10(a, b, c, d, e, f, g, h, i) {
(function GCInJSToWasmTest() {
var builder = new WasmModuleBuilder();
- var sig_index = builder.addSignature([1, kAstI32, 1, kAstI32]);
+ var sig_index = builder.addType(kSig_i_i);
builder.addFunction("main", sig_index)
.addBody([
kExprGetLocal, 0, // --

Powered by Google App Engine
This is Rietveld 408576698