Index: test/mjsunit/wasm/test-wasm-module-builder.js |
diff --git a/test/mjsunit/wasm/test-wasm-module-builder.js b/test/mjsunit/wasm/test-wasm-module-builder.js |
index f673bec32f82a0087b43e5ca639347d8067fd55f..8b9efad526b6202db847837a2046936711ce1a47 100644 |
--- a/test/mjsunit/wasm/test-wasm-module-builder.js |
+++ b/test/mjsunit/wasm/test-wasm-module-builder.js |
@@ -27,7 +27,7 @@ function instantiate(buffer, ffi) { |
(function ImportTest() { |
let builder = new WasmModuleBuilder(); |
- var index = builder.addImport("", "print", makeSig_v_x(kAstI32)); |
+ var index = builder.addImport("", "print", makeSig_v_x(kWasmI32)); |
builder.addFunction("foo", kSig_v_v) |
.addBody([kExprI8Const, 13, kExprCallFunction, index]) |
.exportAs("main"); |
@@ -54,10 +54,10 @@ function instantiate(buffer, ffi) { |
(function LocalsTest2() { |
// TODO(titzer): i64 only works on 64-bit platforms. |
var types = [ |
- {locals: {i32_count: 1}, type: kAstI32}, |
-// {locals: {i64_count: 1}, type: kAstI64}, |
- {locals: {f32_count: 1}, type: kAstF32}, |
- {locals: {f64_count: 1}, type: kAstF64}, |
+ {locals: {i32_count: 1}, type: kWasmI32}, |
+// {locals: {i64_count: 1}, type: kWasmI64}, |
+ {locals: {f32_count: 1}, type: kWasmF32}, |
+ {locals: {f64_count: 1}, type: kWasmF64}, |
]; |
for (p of types) { |
@@ -145,7 +145,7 @@ function instantiate(buffer, ffi) { |
(function ImportTestTwoLevel() { |
let builder = new WasmModuleBuilder(); |
- var index = builder.addImport("mod", "print", makeSig_v_x(kAstI32)); |
+ var index = builder.addImport("mod", "print", makeSig_v_x(kWasmI32)); |
builder.addFunction("foo", kSig_v_v) |
.addBody([kExprI8Const, 19, kExprCallFunction, index]) |
.exportAs("main"); |