Index: src/ppc/builtins-ppc.cc |
diff --git a/src/ppc/builtins-ppc.cc b/src/ppc/builtins-ppc.cc |
index 50628201da933ce2e68c4422706a550d15e24cda..7c0949950219585ec5b8824f596c9f554a738f8b 100644 |
--- a/src/ppc/builtins-ppc.cc |
+++ b/src/ppc/builtins-ppc.cc |
@@ -1015,30 +1015,14 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
} |
-static void CallCompileOptimized(MacroAssembler* masm, bool concurrent) { |
- FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
- // Push a copy of the function onto the stack. |
- // Push function as parameter to the runtime call. |
- __ Push(r4, r4); |
- // Whether to compile in a background thread. |
- __ LoadRoot( |
- r0, concurrent ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); |
- __ push(r0); |
- |
- __ CallRuntime(Runtime::kCompileOptimized, 2); |
- // Restore receiver. |
- __ pop(r4); |
-} |
- |
- |
void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { |
- CallCompileOptimized(masm, false); |
+ CallRuntimePassFunction(masm, Runtime::kCompileOptimized_NotConcurrent); |
GenerateTailCallToReturnedCode(masm); |
} |
void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { |
- CallCompileOptimized(masm, true); |
+ CallRuntimePassFunction(masm, Runtime::kCompileOptimized_Concurrent); |
GenerateTailCallToReturnedCode(masm); |
} |