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