Index: src/mips64/builtins-mips64.cc |
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc |
index 6d719081a4103b4d807b4afaf804f23271e140ca..47d9bb47439e86e9dc2f2a1e0b1e9595ce79892c 100644 |
--- a/src/mips64/builtins-mips64.cc |
+++ b/src/mips64/builtins-mips64.cc |
@@ -1015,30 +1015,14 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
} |
-static void CallCompileOptimized(MacroAssembler* masm, bool concurrent) { |
- FrameScope scope(masm, StackFrame::INTERNAL); |
- // Push a copy of the function onto the stack. |
- // Push function as parameter to the runtime call. |
- __ Push(a1, a1); |
- // Whether to compile in a background thread. |
- __ LoadRoot( |
- at, concurrent ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); |
- __ push(at); |
- |
- __ CallRuntime(Runtime::kCompileOptimized, 2); |
- // Restore receiver. |
- __ Pop(a1); |
-} |
- |
- |
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); |
} |