| Index: src/builtins/x64/builtins-x64.cc
|
| diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc
|
| index beae2d29c36bdbcb3de0fd3401ce678974b517b3..dc8a2a28223034d9a30b7ce060f83642a6ca76fb 100644
|
| --- a/src/builtins/x64/builtins-x64.cc
|
| +++ b/src/builtins/x64/builtins-x64.cc
|
| @@ -1031,7 +1031,6 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
|
| // -----------------------------------
|
| // First lookup code, maybe we don't need to compile!
|
| Label gotta_call_runtime;
|
| - Label maybe_call_runtime;
|
| Label try_shared;
|
| Label loop_top, loop_bottom;
|
|
|
| @@ -1085,7 +1084,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
|
| __ movp(entry, FieldOperand(map, index, times_pointer_size,
|
| SharedFunctionInfo::kOffsetToPreviousCachedCode));
|
| __ movp(entry, FieldOperand(entry, WeakCell::kValueOffset));
|
| - __ JumpIfSmi(entry, &maybe_call_runtime);
|
| + __ JumpIfSmi(entry, &try_shared);
|
|
|
| // Found literals and code. Get them into the closure and return.
|
| __ leap(entry, FieldOperand(entry, Code::kHeaderSize));
|
| @@ -1124,18 +1123,6 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
|
| // We found neither literals nor code.
|
| __ jmp(&gotta_call_runtime);
|
|
|
| - __ bind(&maybe_call_runtime);
|
| -
|
| - // Last possibility. Check the context free optimized code map entry.
|
| - __ movp(entry, FieldOperand(map, FixedArray::kHeaderSize +
|
| - SharedFunctionInfo::kSharedCodeIndex));
|
| - __ movp(entry, FieldOperand(entry, WeakCell::kValueOffset));
|
| - __ JumpIfSmi(entry, &try_shared);
|
| -
|
| - // Store code entry in the closure.
|
| - __ leap(entry, FieldOperand(entry, Code::kHeaderSize));
|
| - __ jmp(&install_optimized_code_and_tailcall);
|
| -
|
| __ bind(&try_shared);
|
| // Is the full code valid?
|
| __ movp(entry, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset));
|
|
|