Index: src/builtins/arm/builtins-arm.cc |
diff --git a/src/builtins/arm/builtins-arm.cc b/src/builtins/arm/builtins-arm.cc |
index 7964fa8e4bec5b583bd6cbd92c7ccbc40f53d274..b66b1bae0f65db78ed0afc0092d3e1e772ff326c 100644 |
--- a/src/builtins/arm/builtins-arm.cc |
+++ b/src/builtins/arm/builtins-arm.cc |
@@ -1354,7 +1354,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, &gotta_call_runtime); |
+ __ b(lt, &try_shared); |
// r3 : native context |
// r2 : length / index |
@@ -1419,9 +1419,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
__ cmp(index, Operand(Smi::FromInt(1))); |
__ b(gt, &loop_top); |
- // We found no code. |
- __ jmp(&gotta_call_runtime); |
- |
+ // We found no code. Try the SharedFunctionInfo. |
__ bind(&try_shared); |
__ pop(closure); |
__ pop(new_target); |