| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index 332c2ee31f027d8a0b78b9085b733c14942a796c..65d290bcec8c9ec7c47524c6c7589ab82e2b5b66 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -3832,9 +3832,7 @@ void LCodeGen::DoCallNew(LCallNew* instr) {
|
|
|
| __ Set(rax, instr->arity());
|
| // No cell in ebx for construct type feedback in optimized code
|
| - Handle<Object> megamorphic_symbol =
|
| - TypeFeedbackInfo::MegamorphicSentinel(isolate());
|
| - __ Move(rbx, megamorphic_symbol);
|
| + __ LoadRoot(rbx, Heap::kUndefinedValueRootIndex);
|
| CallConstructStub stub(NO_CALL_FUNCTION_FLAGS);
|
| CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
|
| }
|
| @@ -3846,7 +3844,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
|
| ASSERT(ToRegister(instr->result()).is(rax));
|
|
|
| __ Set(rax, instr->arity());
|
| - __ Move(rbx, TypeFeedbackInfo::MegamorphicSentinel(isolate()));
|
| + __ LoadRoot(rbx, Heap::kUndefinedValueRootIndex);
|
| ElementsKind kind = instr->hydrogen()->elements_kind();
|
| AllocationSiteOverrideMode override_mode =
|
| (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE)
|
|
|