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

Unified Diff: test/unittests/compiler/typer-unittest.cc

Issue 2759133002: [compiler] Add yet more tests for monotonicity of typing. (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/compiler/typer-unittest.cc
diff --git a/test/unittests/compiler/typer-unittest.cc b/test/unittests/compiler/typer-unittest.cc
index 2d6e3106fb0376bd0e2798007398bf6a3c7977b1..7c445e606e4a70eef50c045ea0824a7bf1e3b5ad 100644
--- a/test/unittests/compiler/typer-unittest.cc
+++ b/test/unittests/compiler/typer-unittest.cc
@@ -482,6 +482,22 @@ TEST_MONOTONICITY(InstanceOf)
TEST_MONOTONICITY(OrdinaryHasInstance)
#undef TEST_MONOTONICITY
+// SIMPLIFIED UNOPs without hint
+#define TEST_MONOTONICITY(name) \
+ TEST_F(TyperTest, Monotonicity_##name) { \
+ TestUnaryMonotonicity(simplified_.name()); \
+ }
+TEST_MONOTONICITY(ObjectIsDetectableCallable)
+TEST_MONOTONICITY(ObjectIsNaN)
+TEST_MONOTONICITY(ObjectIsNonCallable)
+TEST_MONOTONICITY(ObjectIsNumber)
+TEST_MONOTONICITY(ObjectIsReceiver)
+TEST_MONOTONICITY(ObjectIsSmi)
+TEST_MONOTONICITY(ObjectIsString)
+TEST_MONOTONICITY(ObjectIsSymbol)
+TEST_MONOTONICITY(ObjectIsUndetectable)
+#undef TEST_MONOTONICITY
+
// SIMPLIFIED BINOPs without hint, with Number input restriction
#define TEST_MONOTONICITY(name) \
TEST_F(TyperTest, Monotonicity_##name) { \
@@ -499,6 +515,10 @@ SIMPLIFIED_NUMBER_BINOP_LIST(TEST_MONOTONICITY);
TEST_MONOTONICITY(NumberLessThan)
TEST_MONOTONICITY(NumberLessThanOrEqual)
TEST_MONOTONICITY(NumberEqual)
+TEST_MONOTONICITY(ReferenceEqual)
+TEST_MONOTONICITY(StringEqual)
+TEST_MONOTONICITY(StringLessThan)
+TEST_MONOTONICITY(StringLessThanOrEqual)
#undef TEST_MONOTONICITY
// SIMPLIFIED BINOPs with NumberOperationHint, without input restriction
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698