OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 } | 921 } |
922 | 922 |
923 | 923 |
924 static void CallCompileOptimized(MacroAssembler* masm, bool concurrent) { | 924 static void CallCompileOptimized(MacroAssembler* masm, bool concurrent) { |
925 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 925 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
926 // Push a copy of the function onto the stack. | 926 // Push a copy of the function onto the stack. |
927 __ push(r1); | 927 __ push(r1); |
928 // Push function as parameter to the runtime call. | 928 // Push function as parameter to the runtime call. |
929 __ Push(r1); | 929 __ Push(r1); |
930 // Whether to compile in a background thread. | 930 // Whether to compile in a background thread. |
931 __ Push(masm->isolate()->factory()->ToBoolean(concurrent)); | 931 __ LoadRoot( |
| 932 ip, concurrent ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); |
| 933 __ push(ip); |
932 | 934 |
933 __ CallRuntime(Runtime::kCompileOptimized, 2); | 935 __ CallRuntime(Runtime::kCompileOptimized, 2); |
934 // Restore receiver. | 936 // Restore receiver. |
935 __ pop(r1); | 937 __ pop(r1); |
936 } | 938 } |
937 | 939 |
938 | 940 |
939 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { | 941 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { |
940 CallCompileOptimized(masm, false); | 942 CallCompileOptimized(masm, false); |
941 GenerateTailCallToReturnedCode(masm); | 943 GenerateTailCallToReturnedCode(masm); |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1652 __ bkpt(0); | 1654 __ bkpt(0); |
1653 } | 1655 } |
1654 } | 1656 } |
1655 | 1657 |
1656 | 1658 |
1657 #undef __ | 1659 #undef __ |
1658 | 1660 |
1659 } } // namespace v8::internal | 1661 } } // namespace v8::internal |
1660 | 1662 |
1661 #endif // V8_TARGET_ARCH_ARM | 1663 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |