Index: test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
diff --git a/test/unittests/compiler/js-intrinsic-lowering-unittest.cc b/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
index c627ff42a195577236cd8dc449d9b28497d3dd1b..d8904a9ad5e17ca5cf22708e74f8d1119e5e1292 100644 |
--- a/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
@@ -91,7 +91,8 @@ TEST_F(JSIntrinsicLoweringTest, InlineOptimizedDoubleLo) { |
graph()->NewNode(javascript()->CallRuntime(Runtime::kInlineDoubleLo, 1), |
input, context, effect, control)); |
ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), IsFloat64ExtractLowWord32(input)); |
+ EXPECT_THAT(r.replacement(), |
+ IsFloat64ExtractLowWord32(IsGuard(Type::Number(), input, _))); |
} |
@@ -108,7 +109,8 @@ TEST_F(JSIntrinsicLoweringTest, InlineOptimizedDoubleHi) { |
graph()->NewNode(javascript()->CallRuntime(Runtime::kInlineDoubleHi, 1), |
input, context, effect, control)); |
ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), IsFloat64ExtractHighWord32(input)); |
+ EXPECT_THAT(r.replacement(), |
+ IsFloat64ExtractHighWord32(IsGuard(Type::Number(), input, _))); |
} |
@@ -270,7 +272,8 @@ TEST_F(JSIntrinsicLoweringTest, InlineMathSqrt) { |
graph()->NewNode(javascript()->CallRuntime(Runtime::kInlineMathSqrt, 1), |
input, context, effect, control)); |
ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), IsFloat64Sqrt(input)); |
+ EXPECT_THAT(r.replacement(), |
+ IsFloat64Sqrt(IsGuard(Type::Number(), input, _))); |
} |