Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index d0aa48cf3f5d43d9f4703ad8f08c8259a475099f..e1eb39e222e94c2b8c2c2b7211dad020e2ac2891 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -1014,31 +1014,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(r1); |
- // Push function as parameter to the runtime call. |
- __ Push(r1); |
- // Whether to compile in a background thread. |
- __ LoadRoot( |
- ip, concurrent ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); |
- __ push(ip); |
- |
- __ CallRuntime(Runtime::kCompileOptimized, 2); |
- // Restore receiver. |
- __ pop(r1); |
-} |
- |
- |
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); |
} |