| Index: src/x64/builtins-x64.cc
|
| diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
|
| index d4f5e037300c9f974044ace76383633d077fb031..a5d010cf799fd48f7f1cfe0c4d34ef9753bf651e 100644
|
| --- a/src/x64/builtins-x64.cc
|
| +++ b/src/x64/builtins-x64.cc
|
| @@ -533,9 +533,7 @@ static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm,
|
| // Invoke the code.
|
| if (is_construct) {
|
| // No type feedback cell is available
|
| - Handle<Object> megamorphic_sentinel =
|
| - TypeFeedbackInfo::MegamorphicSentinel(masm->isolate());
|
| - __ Move(rbx, megamorphic_sentinel);
|
| + __ LoadRoot(rbx, Heap::kUndefinedValueRootIndex);
|
| // Expects rdi to hold function pointer.
|
| CallConstructStub stub(NO_CALL_FUNCTION_FLAGS);
|
| __ CallStub(&stub);
|
| @@ -1128,9 +1126,7 @@ void Builtins::Generate_ArrayCode(MacroAssembler* masm) {
|
|
|
| // Run the native code for the Array function called as a normal function.
|
| // tail call a stub
|
| - Handle<Object> megamorphic_sentinel =
|
| - TypeFeedbackInfo::MegamorphicSentinel(masm->isolate());
|
| - __ Move(rbx, megamorphic_sentinel);
|
| + __ LoadRoot(rbx, Heap::kUndefinedValueRootIndex);
|
| ArrayConstructorStub stub(masm->isolate());
|
| __ TailCallStub(&stub);
|
| }
|
|
|