Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index b2c2193a0a9d417c9dd5acb03a03876ae57bd432..142787bea883f3e8767624b361dd5dd9981bf3c3 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -746,6 +746,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(r1); |
+ // Push call kind information. |
+ __ push(r5); |
+ |
+ // Push the function on the stack as the argument to the runtime function. |
+ __ push(r1); |
+ __ CallRuntime(Runtime::kInstallRecompiledCode, 1); |
+ // Calculate the entry point. |
+ __ add(r2, r0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
+ |
+ // Restore call kind information. |
+ __ pop(r5); |
+ // Restore saved function. |
+ __ pop(r1); |
+ |
+ // Tear down internal frame. |
+ } |
+ |
+ // Do a tail-call of the compiled function. |
+ __ Jump(r2); |
+} |
+ |
+ |
void Builtins::Generate_ParallelRecompile(MacroAssembler* masm) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |