Index: src/builtins/arm/builtins-arm.cc |
diff --git a/src/builtins/arm/builtins-arm.cc b/src/builtins/arm/builtins-arm.cc |
index cc2c5e60e414e85274a74ce55e2d47fc820d802f..959ce2af671f2536910e21edec265b568f819665 100644 |
--- a/src/builtins/arm/builtins-arm.cc |
+++ b/src/builtins/arm/builtins-arm.cc |
@@ -1357,7 +1357,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset)); |
__ ldr(index, FieldMemOperand(map, FixedArray::kLengthOffset)); |
__ cmp(index, Operand(Smi::FromInt(2))); |
- __ b(lt, &try_shared); |
+ __ b(lt, &gotta_call_runtime); |
// r3 : native context |
// r2 : length / index |
@@ -1422,7 +1422,9 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
__ cmp(index, Operand(Smi::FromInt(1))); |
__ b(gt, &loop_top); |
- // We found no code. Try the SharedFunctionInfo. |
+ // We found no code. |
+ __ jmp(&gotta_call_runtime); |
+ |
__ bind(&try_shared); |
__ pop(closure); |
__ pop(new_target); |