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