Index: test/mjsunit/asm/asm-validation.js |
diff --git a/test/mjsunit/asm/asm-validation.js b/test/mjsunit/asm/asm-validation.js |
index a7935dc2c1770700b37bff39b718d11282813f77..bf1e1ba80c41d6c471fc62d746d05d3b9c75a9e1 100644 |
--- a/test/mjsunit/asm/asm-validation.js |
+++ b/test/mjsunit/asm/asm-validation.js |
@@ -81,7 +81,7 @@ function assertValidAsm(func) { |
assertEquals(Math.fround(-3.0), m.fVar()); |
var m = DisallowAssignToConstGlobal(); |
- assertTrue(%IsNotAsmWasmCode(DisallowAssignToConstGlobal)); |
+ assertFalse(%IsAsmWasmCode(DisallowAssignToConstGlobal)); |
})(); |
(function TestModuleArgs() { |
@@ -125,7 +125,7 @@ function assertValidAsm(func) { |
return { foo: foo }; |
} |
var m = Module({}); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
assertEquals(123, m.foo()); |
})(); |
@@ -136,7 +136,7 @@ function assertValidAsm(func) { |
return {}; |
} |
var m = Module(1, 2, 3); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
assertEquals({}, m); |
})(); |
@@ -147,7 +147,7 @@ function assertValidAsm(func) { |
return {}; |
} |
var m = Module(1, 2); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
assertEquals({}, m); |
})(); |
@@ -170,7 +170,7 @@ function assertValidAsm(func) { |
} |
var heap = new ArrayBuffer(1024 * 1024); |
var m = Module({}, {}, heap); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
assertEquals(123, m.foo()); |
})(); |
@@ -204,9 +204,9 @@ function assertValidAsm(func) { |
return { foo: foo }; |
} |
var m1 = Module(1, 2, 3); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
var m2 = Module(1, 2, 3); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
assertEquals(123, m1.foo()); |
assertEquals(123, m2.foo()); |
})(); |
@@ -225,9 +225,9 @@ function assertValidAsm(func) { |
var Module2 = MkModule(); |
var heap = new ArrayBuffer(1024 * 1024); |
var m1 = Module1(1, 2, 3); |
- assertTrue(%IsNotAsmWasmCode(Module1)); |
+ assertFalse(%IsAsmWasmCode(Module1)); |
var m2 = Module2({}, {}, heap); |
- assertTrue(%IsNotAsmWasmCode(Module2)); |
+ assertFalse(%IsAsmWasmCode(Module2)); |
assertEquals(123, m1.foo()); |
assertEquals(123, m2.foo()); |
})(); |
@@ -248,7 +248,7 @@ function assertValidAsm(func) { |
var m1 = Module1({NaN: NaN}, {}, heap); |
assertValidAsm(Module1); |
var m2 = Module2(1, 2, 3); |
- assertTrue(%IsNotAsmWasmCode(Module2)); |
+ assertFalse(%IsAsmWasmCode(Module2)); |
assertEquals(123, m1.foo()); |
assertEquals(123, m2.foo()); |
})(); |
@@ -269,9 +269,9 @@ function assertValidAsm(func) { |
var m1a = Module1({NaN: NaN}, {}, heap); |
assertValidAsm(Module1); |
var m2 = Module2(1, 2, 3); |
- assertTrue(%IsNotAsmWasmCode(Module2)); |
+ assertFalse(%IsAsmWasmCode(Module2)); |
var m1b = Module1({NaN: NaN}, {}, heap); |
- assertTrue(%IsNotAsmWasmCode(Module1)); |
+ assertFalse(%IsAsmWasmCode(Module1)); |
assertEquals(123, m1a.foo()); |
assertEquals(123, m1b.foo()); |
assertEquals(123, m2.foo()); |
@@ -298,7 +298,7 @@ function assertValidAsm(func) { |
return { foo: foo }; |
} |
var m = Module(); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
assertEquals(0xffffffff, m.foo()); |
})(); |
@@ -312,7 +312,7 @@ function assertValidAsm(func) { |
return { foo: foo }; |
} |
var m = Module(); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
assertEquals(3, m.foo(3)); |
})(); |
@@ -332,6 +332,6 @@ function assertValidAsm(func) { |
return { foo: foo }; |
} |
var m = Module(); |
- assertTrue(%IsNotAsmWasmCode(Module)); |
+ assertFalse(%IsAsmWasmCode(Module)); |
assertEquals(43, m.foo(3)); |
})(); |