Index: src/builtins/x64/builtins-x64.cc |
diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc |
index 127d13efb6488ebc98f3604d27e69a6670ba64cc..5079b873fc446de35d82369c11c74b271414a306 100644 |
--- a/src/builtins/x64/builtins-x64.cc |
+++ b/src/builtins/x64/builtins-x64.cc |
@@ -1004,7 +1004,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
__ movp(map, FieldOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset)); |
__ SmiToInteger32(index, FieldOperand(map, FixedArray::kLengthOffset)); |
__ cmpl(index, Immediate(2)); |
- __ j(less, &gotta_call_runtime); |
+ __ j(less, &try_shared); |
// r14 : native context |
// r9 : length / index |
@@ -1061,9 +1061,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
__ cmpl(index, Immediate(1)); |
__ j(greater, &loop_top); |
- // We found no code. |
- __ jmp(&gotta_call_runtime); |
- |
+ // We found no code. Try the SharedFunctionInfo. |
__ bind(&try_shared); |
__ movp(entry, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset)); |
// Is the shared function marked for tier up? |