Index: test/unittests/compiler/js-create-lowering-unittest.cc |
diff --git a/test/unittests/compiler/js-create-lowering-unittest.cc b/test/unittests/compiler/js-create-lowering-unittest.cc |
index fcb908688d46a92825351d64e5ba21f3c95404bf..ac4be42ed36c1d14ec1c308bb871a27f15e6eb8f 100644 |
--- a/test/unittests/compiler/js-create-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-create-lowering-unittest.cc |
@@ -88,15 +88,14 @@ TEST_F(JSCreateLoweringTest, JSCreateArgumentsViaStub) { |
Handle<SharedFunctionInfo> shared(isolate()->object_function()->shared()); |
Node* const frame_state = FrameState(shared, graph()->start()); |
Reduction r = Reduce(graph()->NewNode( |
- javascript()->CreateArguments(CreateArgumentsType::kMappedArguments), |
+ javascript()->CreateArguments(CreateArgumentsType::kUnmappedArguments), |
closure, context, frame_state, effect, control)); |
ASSERT_TRUE(r.Changed()); |
EXPECT_THAT( |
r.replacement(), |
- IsCall(_, |
- IsHeapConstant( |
- CodeFactory::ArgumentsAccess(isolate(), false, false).code()), |
- closure, IsNumberConstant(0), _, effect, control)); |
+ IsCall(_, IsHeapConstant( |
+ CodeFactory::FastNewStrictArguments(isolate()).code()), |
+ closure, context, frame_state, effect, control)); |
} |
TEST_F(JSCreateLoweringTest, JSCreateArgumentsRestParameterViaStub) { |
@@ -131,7 +130,7 @@ TEST_F(JSCreateLoweringTest, JSCreateArgumentsInlinedMapped) { |
ASSERT_TRUE(r.Changed()); |
EXPECT_THAT(r.replacement(), |
IsFinishRegion( |
- IsAllocate(IsNumberConstant(Heap::kSloppyArgumentsObjectSize), |
+ IsAllocate(IsNumberConstant(JSSloppyArgumentsObject::kSize), |
_, control), |
_)); |
} |
@@ -150,7 +149,7 @@ TEST_F(JSCreateLoweringTest, JSCreateArgumentsInlinedUnmapped) { |
ASSERT_TRUE(r.Changed()); |
EXPECT_THAT(r.replacement(), |
IsFinishRegion( |
- IsAllocate(IsNumberConstant(Heap::kStrictArgumentsObjectSize), |
+ IsAllocate(IsNumberConstant(JSStrictArgumentsObject::kSize), |
_, control), |
_)); |
} |