| Index: src/builtins/mips/builtins-mips.cc
|
| diff --git a/src/builtins/mips/builtins-mips.cc b/src/builtins/mips/builtins-mips.cc
|
| index bdc2135c694a497fbdceff2842a071c5fe230b77..21ba2a731dbbe0649cd17ead64e9138aa7e9dcec 100644
|
| --- a/src/builtins/mips/builtins-mips.cc
|
| +++ b/src/builtins/mips/builtins-mips.cc
|
| @@ -1364,7 +1364,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
|
| __ lw(map, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
|
| __ lw(map, FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset));
|
| __ lw(index, FieldMemOperand(map, FixedArray::kLengthOffset));
|
| - __ Branch(&gotta_call_runtime, lt, index, Operand(Smi::FromInt(2)));
|
| + __ Branch(&try_shared, lt, index, Operand(Smi::FromInt(2)));
|
|
|
| // a3 : native context
|
| // a2 : length / index
|
| @@ -1429,9 +1429,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
|
| Operand(Smi::FromInt(SharedFunctionInfo::kEntryLength)));
|
| __ Branch(&loop_top, gt, index, Operand(Smi::FromInt(1)));
|
|
|
| - // We found no code.
|
| - __ jmp(&gotta_call_runtime);
|
| -
|
| + // We found no code. Try the SharedFunctionInfo.
|
| __ bind(&try_shared);
|
| __ pop(closure);
|
| __ pop(new_target);
|
|
|