| Index: src/mips/builtins-mips.cc
|
| diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc
|
| index c05fdc275d2d9a154d52ddca3b1cff7c7603984d..2facd13df532c98cebccb7d65b5185939992ec1f 100644
|
| --- a/src/mips/builtins-mips.cc
|
| +++ b/src/mips/builtins-mips.cc
|
| @@ -758,6 +758,35 @@ void Builtins::Generate_InRecompileQueue(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| +void Builtins::Generate_InstallRecompiledCode(MacroAssembler* masm) {
|
| + // Enter an internal frame.
|
| + {
|
| + FrameScope scope(masm, StackFrame::INTERNAL);
|
| +
|
| + // Preserve the function.
|
| + __ push(a1);
|
| + // Push call kind information.
|
| + __ push(t1);
|
| +
|
| + // Push the function on the stack as the argument to the runtime function.
|
| + __ push(a1);
|
| + __ CallRuntime(Runtime::kInstallRecompiledCode, 1);
|
| + // Calculate the entry point.
|
| + __ Addu(t9, v0, Operand(Code::kHeaderSize - kHeapObjectTag));
|
| +
|
| + // Restore call kind information.
|
| + __ pop(t1);
|
| + // Restore saved function.
|
| + __ pop(a1);
|
| +
|
| + // Tear down temporary frame.
|
| + }
|
| +
|
| + // Do a tail-call of the compiled function.
|
| + __ Jump(t9);
|
| +}
|
| +
|
| +
|
| void Builtins::Generate_ParallelRecompile(MacroAssembler* masm) {
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
|
|