| Index: src/ia32/builtins-ia32.cc
|
| diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
|
| index a493fa54f29c624bb64c530bc382709642b8b7c6..71e353bf77eb29fad18efee5be1028a745f118c0 100644
|
| --- a/src/ia32/builtins-ia32.cc
|
| +++ b/src/ia32/builtins-ia32.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);
|
| }
|
|
|
|
|