Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 7311db6a127da5d04fed5dac8aef783b55e89a1a..b657f8dee89524c1402421eea03fccbb613d33aa 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -3917,9 +3917,7 @@ void LCodeGen::DoCallNew(LCallNew* instr) { |
__ li(a0, Operand(instr->arity())); |
// No cell in a2 for construct type feedback in optimized code |
- Handle<Object> megamorphic_symbol = |
- TypeFeedbackInfo::MegamorphicSentinel(isolate()); |
- __ li(a2, Operand(megamorphic_symbol)); |
+ __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
} |
@@ -3931,7 +3929,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
ASSERT(ToRegister(instr->result()).is(v0)); |
__ li(a0, Operand(instr->arity())); |
- __ li(a2, Operand(TypeFeedbackInfo::MegamorphicSentinel(isolate()))); |
+ __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
ElementsKind kind = instr->hydrogen()->elements_kind(); |
AllocationSiteOverrideMode override_mode = |
(AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |