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

Unified Diff: test/mjsunit/wasm/adapter-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
« no previous file with comments | « no previous file | test/mjsunit/wasm/ffi.js » ('j') | test/mjsunit/wasm/wasm-module-builder.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/adapter-frame.js
diff --git a/test/mjsunit/wasm/adapter-frame.js b/test/mjsunit/wasm/adapter-frame.js
index 39164c7763e3dd9e5284dd9c9fa7689840f7f979..e595c3fb89e363626d90dc6dfe4339bec580d25f 100644
--- a/test/mjsunit/wasm/adapter-frame.js
+++ b/test/mjsunit/wasm/adapter-frame.js
@@ -26,12 +26,9 @@ function makeSelect(type, args, which) {
}
var builder = new WasmModuleBuilder();
- var sig = new Array();
- sig.push(args);
- for (var i = 0; i < args; i++) sig.push(type);
- sig.push(1);
- sig.push(type);
- builder.addFunction("select", sig)
+ var params = [];
+ for (var i = 0; i < args; i++) params.push(type);
+ builder.addFunction("select", makeSig(params, [type]))
.addBody([kExprGetLocal, which])
.exportFunc();
« no previous file with comments | « no previous file | test/mjsunit/wasm/ffi.js » ('j') | test/mjsunit/wasm/wasm-module-builder.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698