Index: test/cctest/compiler/test-run-intrinsics.cc |
diff --git a/test/cctest/compiler/test-run-intrinsics.cc b/test/cctest/compiler/test-run-intrinsics.cc |
index ce449075c0634dd0cafacbd59a1415d1ab529fe3..1fa37748c6753d5e0b64705bc5cb0100088d0d1e 100644 |
--- a/test/cctest/compiler/test-run-intrinsics.cc |
+++ b/test/cctest/compiler/test-run-intrinsics.cc |
@@ -122,6 +122,18 @@ |
T.CheckFalse(T.Val(1)); |
T.CheckFalse(T.Val(1.1)); |
T.CheckTrue(T.Val(-0.0)); |
+ T.CheckFalse(T.Val(-2)); |
+ T.CheckFalse(T.Val(-2.3)); |
+ T.CheckFalse(T.undefined()); |
+} |
+ |
+ |
+TEST(IsNonNegativeSmi) { |
+ FunctionTester T("(function(a) { return %_IsNonNegativeSmi(a); })", flags); |
+ |
+ T.CheckTrue(T.Val(1)); |
+ T.CheckFalse(T.Val(1.1)); |
+ T.CheckFalse(T.Val(-0.0)); |
T.CheckFalse(T.Val(-2)); |
T.CheckFalse(T.Val(-2.3)); |
T.CheckFalse(T.undefined()); |