Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 7ce211de45894d79fecbc607199958af0557d636..51e16fdae31b61171323b8c223434773863a0801 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -87,6 +87,32 @@ void Builtins::Generate_InRecompileQueue(MacroAssembler* masm) { |
} |
+void Builtins::Generate_InstallRecompiledCode(MacroAssembler* masm) { |
+ { |
+ FrameScope scope(masm, StackFrame::INTERNAL); |
+ |
+ // Push a copy of the function. |
+ __ push(edi); |
+ // Push call kind information. |
+ __ push(ecx); |
+ |
+ __ push(edi); // Function is also the parameter to the runtime call. |
+ __ CallRuntime(Runtime::kInstallRecompiledCode, 1); |
+ |
+ // Restore call kind information. |
+ __ pop(ecx); |
+ // Restore receiver. |
+ __ pop(edi); |
+ |
+ // Tear down internal frame. |
+ } |
+ |
+ // Do a tail-call of the compiled function. |
+ __ lea(eax, FieldOperand(eax, Code::kHeaderSize)); |
+ __ jmp(eax); |
+} |
+ |
+ |
void Builtins::Generate_ParallelRecompile(MacroAssembler* masm) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |