Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index 74a1685dd3b501b7659154283968a86275e9956b..20131e8dc6a127015463a11ac1f8571a8769a052 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -1357,7 +1357,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset)); |
__ Ldrsw(index, UntagSmiFieldMemOperand(map, FixedArray::kLengthOffset)); |
__ Cmp(index, Operand(2)); |
- __ B(lt, &gotta_call_runtime); |
+ __ B(lt, &try_shared); |
// x3 : native context |
// x2 : length / index |
@@ -1416,9 +1416,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
__ Cmp(index, Operand(1)); |
__ B(gt, &loop_top); |
- // We found no code. |
- __ B(&gotta_call_runtime); |
- |
+ // We found no code. Try the SharedFunctionInfo. |
__ Bind(&try_shared); |
__ Ldr(entry, |
FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); |