| Index: src/builtins/x64/builtins-x64.cc
|
| diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc
|
| index d7bc75fcb3fa7688b7f32c5d5d2a9d2bd7c1ae4a..1fb26bf8dd480c0dfda7707d19d983b63ff9a968 100644
|
| --- a/src/builtins/x64/builtins-x64.cc
|
| +++ b/src/builtins/x64/builtins-x64.cc
|
| @@ -3011,16 +3011,9 @@
|
| }
|
| }
|
|
|
| -static void Generate_OnStackReplacementHelper(MacroAssembler* masm,
|
| - bool has_handler_frame) {
|
| +void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) {
|
| // Lookup the function in the JavaScript frame.
|
| - if (has_handler_frame) {
|
| - __ movp(rax, Operand(rbp, StandardFrameConstants::kCallerFPOffset));
|
| - __ movp(rax, Operand(rax, JavaScriptFrameConstants::kFunctionOffset));
|
| - } else {
|
| - __ movp(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| - }
|
| -
|
| + __ movp(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
| // Pass function as argument.
|
| @@ -3029,18 +3022,12 @@
|
| }
|
|
|
| Label skip;
|
| - // If the code object is null, just return to the caller.
|
| + // If the code object is null, just return to the unoptimized code.
|
| __ cmpp(rax, Immediate(0));
|
| __ j(not_equal, &skip, Label::kNear);
|
| __ ret(0);
|
|
|
| __ bind(&skip);
|
| -
|
| - // Drop any potential handler frame that is be sitting on top of the actual
|
| - // JavaScript frame. This is the case then OSR is triggered from bytecode.
|
| - if (has_handler_frame) {
|
| - __ leave();
|
| - }
|
|
|
| // Load deoptimization data from the code object.
|
| __ movp(rbx, Operand(rax, Code::kDeoptimizationDataOffset - kHeapObjectTag));
|
| @@ -3061,14 +3048,6 @@
|
| __ ret(0);
|
| }
|
|
|
| -void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) {
|
| - Generate_OnStackReplacementHelper(masm, false);
|
| -}
|
| -
|
| -void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
|
| - Generate_OnStackReplacementHelper(masm, true);
|
| -}
|
| -
|
| #undef __
|
|
|
| } // namespace internal
|
|
|