Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 7a097a35a5c11c54bcdef94d5b02b2131cee8d6c..9f18f4ec2e13c87f721089b0448d7f6834d5bd77 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -163,10 +163,9 @@ 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> undefined_sentinel( |
- masm->isolate()->heap()->undefined_value(), |
- masm->isolate()); |
- __ li(a2, Operand(undefined_sentinel)); |
+ Handle<Object> megamorphic_sentinel = |
+ TypeFeedbackInfo::MegamorphicSentinel(masm->isolate()); |
+ __ li(a2, Operand(megamorphic_sentinel)); |
ArrayConstructorStub stub(masm->isolate()); |
__ TailCallStub(&stub); |
} |
@@ -757,9 +756,9 @@ static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, |
__ mov(a0, a3); |
if (is_construct) { |
// No type feedback cell is available |
- Handle<Object> undefined_sentinel( |
- masm->isolate()->heap()->undefined_value(), masm->isolate()); |
- __ li(a2, Operand(undefined_sentinel)); |
+ Handle<Object> megamorphic_sentinel = |
+ TypeFeedbackInfo::MegamorphicSentinel(masm->isolate()); |
+ __ li(a2, Operand(megamorphic_sentinel)); |
CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); |
__ CallStub(&stub); |
} else { |