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 919c1b2237a1820d260d0d76fb11147fe321282e..c627ff42a195577236cd8dc449d9b28497d3dd1b 100644 |
--- a/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
@@ -277,7 +277,6 @@ TEST_F(JSIntrinsicLoweringTest, InlineMathSqrt) { |
// ----------------------------------------------------------------------------- |
// %_MathClz32 |
- |
TEST_F(JSIntrinsicLoweringTest, InlineMathClz32) { |
Node* const input = Parameter(0); |
Node* const context = Parameter(1); |
@@ -334,6 +333,23 @@ TEST_F(JSIntrinsicLoweringTest, InlineValueOf) { |
AllOf(CaptureEq(&if_false0), IsIfFalse(CaptureEq(&branch0)))))); |
} |
+// ----------------------------------------------------------------------------- |
+// %_GetOrdinaryHasInstance |
+ |
+TEST_F(JSIntrinsicLoweringTest, InlineGetOrdinaryHasInstance) { |
+ Node* const context = Parameter(0); |
+ Node* const effect = graph()->start(); |
+ Node* const control = graph()->start(); |
+ Reduction const r = Reduce(graph()->NewNode( |
+ javascript()->CallRuntime(Runtime::kInlineGetOrdinaryHasInstance, 0), |
+ context, effect, control)); |
+ ASSERT_TRUE(r.Changed()); |
+ EXPECT_THAT( |
+ r.replacement(), |
+ IsLoadContext( |
+ ContextAccess(0, Context::ORDINARY_HAS_INSTANCE_INDEX, true), _)); |
+} |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |