Index: src/x87/builtins-x87.cc |
diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc |
index 8f0c9041e397eb3b9dbb06f927465b6fbd610eb2..8ba81b67c6e0a6644dbd7b7b6a5d1bcdbda709ea 100644 |
--- a/src/x87/builtins-x87.cc |
+++ b/src/x87/builtins-x87.cc |
@@ -788,29 +788,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. |
- __ push(edi); |
- // Function is also the parameter to the runtime call. |
- __ push(edi); |
- // Whether to compile in a background thread. |
- __ Push(masm->isolate()->factory()->ToBoolean(concurrent)); |
- |
- __ CallRuntime(Runtime::kCompileOptimized, 2); |
- // Restore receiver. |
- __ pop(edi); |
-} |
- |
- |
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); |
} |