| Index: src/x64/builtins-x64.cc
|
| diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
|
| index 144962b8f4485c11f154f1e1001747ec481b0d90..7a1e88f3e1793f71be5523d6f51998dfc2727964 100644
|
| --- a/src/x64/builtins-x64.cc
|
| +++ b/src/x64/builtins-x64.cc
|
| @@ -88,6 +88,33 @@ void Builtins::Generate_InRecompileQueue(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| +void Builtins::Generate_InstallRecompiledCode(MacroAssembler* masm) {
|
| + // Enter an internal frame.
|
| + {
|
| + FrameScope scope(masm, StackFrame::INTERNAL);
|
| +
|
| + // Push a copy of the function onto the stack.
|
| + __ push(rdi);
|
| + // Push call kind information.
|
| + __ push(rcx);
|
| +
|
| + __ push(rdi); // Function is also the parameter to the runtime call.
|
| + __ CallRuntime(Runtime::kInstallRecompiledCode, 1);
|
| +
|
| + // Restore call kind information.
|
| + __ pop(rcx);
|
| + // Restore function.
|
| + __ pop(rdi);
|
| +
|
| + // Tear down internal frame.
|
| + }
|
| +
|
| + // Do a tail-call of the compiled function.
|
| + __ lea(rax, FieldOperand(rax, Code::kHeaderSize));
|
| + __ jmp(rax);
|
| +}
|
| +
|
| +
|
| void Builtins::Generate_ParallelRecompile(MacroAssembler* masm) {
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
|
|