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

Unified Diff: test/mjsunit/wasm/import-table.js

Issue 2594993002: [wasm] Rename wasm::LocalType to wasm::ValueType and kAst* to kWasm* (Closed)
Patch Set: Fix inspector 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/globals.js ('k') | test/mjsunit/wasm/indirect-calls.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/import-table.js
diff --git a/test/mjsunit/wasm/import-table.js b/test/mjsunit/wasm/import-table.js
index ac27e519214726636dc1d30ce76cabdb2a5eef23..bf2abaf8f5758ef8813964048f5578b45a3b1f50 100644
--- a/test/mjsunit/wasm/import-table.js
+++ b/test/mjsunit/wasm/import-table.js
@@ -185,7 +185,7 @@ function testCallBinopVoid(type, func, check) {
var builder = new WasmModuleBuilder();
builder.addImport("q", "func", makeSig_v_xx(type));
- builder.addFunction("main", makeSig_r_xx(kAstI32, type))
+ builder.addFunction("main", makeSig_r_xx(kWasmI32, type))
.addBody([
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
@@ -205,17 +205,17 @@ function testCallBinopVoid(type, func, check) {
assertEquals(2, passed_length);
var expected_a, expected_b;
switch (type) {
- case kAstI32: {
+ case kWasmI32: {
expected_a = a | 0;
expected_b = b | 0;
break;
}
- case kAstF32: {
+ case kWasmF32: {
expected_a = Math.fround(a);
expected_b = Math.fround(b);
break;
}
- case kAstF64: {
+ case kWasmF64: {
expected_a = a;
expected_b = b;
break;
@@ -230,18 +230,18 @@ function testCallBinopVoid(type, func, check) {
}
-testCallBinopVoid(kAstI32);
-// TODO testCallBinopVoid(kAstI64);
-testCallBinopVoid(kAstF32);
-testCallBinopVoid(kAstF64);
+testCallBinopVoid(kWasmI32);
+// TODO testCallBinopVoid(kWasmI64);
+testCallBinopVoid(kWasmF32);
+testCallBinopVoid(kWasmF64);
function testCallPrint() {
var builder = new WasmModuleBuilder();
- builder.addImport("q", "print", makeSig_v_x(kAstI32));
- builder.addImport("q", "print", makeSig_r_x(kAstF64, kAstF64));
- builder.addFunction("main", makeSig_r_x(kAstF64, kAstF64))
+ builder.addImport("q", "print", makeSig_v_x(kWasmI32));
+ builder.addImport("q", "print", makeSig_r_x(kWasmF64, kWasmF64));
+ builder.addFunction("main", makeSig_r_x(kWasmF64, kWasmF64))
.addBody([
kExprI8Const, 97, // --
kExprCallFunction, 0, // --
« no previous file with comments | « test/mjsunit/wasm/globals.js ('k') | test/mjsunit/wasm/indirect-calls.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698