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 f38f8eaac7b3789f0155e971812214afdd90fa72..324c82761ecff89c2bf081bf6e68d58cba47b6a8 100644 |
--- a/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
@@ -228,8 +228,8 @@ |
TEST_F(JSIntrinsicLoweringTest, InlineIsFunction) { |
- Node* const input = Parameter(Type::Any()); |
- Node* const context = Parameter(Type::Any()); |
+ Node* const input = Parameter(0); |
+ Node* const context = Parameter(1); |
Node* const effect = graph()->start(); |
Node* const control = graph()->start(); |
Reduction const r = Reduce( |
@@ -243,12 +243,11 @@ |
phi, |
IsPhi( |
MachineRepresentation::kTagged, IsFalseConstant(), |
- IsUint32LessThanOrEqual( |
- IsInt32Constant(FIRST_FUNCTION_TYPE), |
- IsLoadField(AccessBuilder::ForMapInstanceType(), |
- IsLoadField(AccessBuilder::ForMap(), input, effect, |
- CaptureEq(&if_false)), |
- effect, _)), |
+ IsWord32Equal(IsLoadField(AccessBuilder::ForMapInstanceType(), |
+ IsLoadField(AccessBuilder::ForMap(), input, |
+ effect, CaptureEq(&if_false)), |
+ effect, _), |
+ IsInt32Constant(JS_FUNCTION_TYPE)), |
IsMerge(IsIfTrue(AllOf(CaptureEq(&branch), |
IsBranch(IsObjectIsSmi(input), control))), |
AllOf(CaptureEq(&if_false), IsIfFalse(CaptureEq(&branch)))))); |