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

Unified Diff: test/mjsunit/asm/asm-validation.js

Issue 2562003002: [wasm] Remove obsolete %IsNotAsmWasmCode predicate. (Closed)
Patch Set: 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 | « src/runtime/runtime-test.cc ('k') | test/mjsunit/asm/regress-672045.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
})();
« no previous file with comments | « src/runtime/runtime-test.cc ('k') | test/mjsunit/asm/regress-672045.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698