| 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 | 5 |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
| 10 | 10 |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 GenerateTailCallToReturnedCode(masm); | 943 GenerateTailCallToReturnedCode(masm); |
| 944 } | 944 } |
| 945 | 945 |
| 946 | 946 |
| 947 static void CallCompileOptimized(MacroAssembler* masm, bool concurrent) { | 947 static void CallCompileOptimized(MacroAssembler* masm, bool concurrent) { |
| 948 FrameScope scope(masm, StackFrame::INTERNAL); | 948 FrameScope scope(masm, StackFrame::INTERNAL); |
| 949 // Push a copy of the function onto the stack. | 949 // Push a copy of the function onto the stack. |
| 950 // Push function as parameter to the runtime call. | 950 // Push function as parameter to the runtime call. |
| 951 __ Push(a1, a1); | 951 __ Push(a1, a1); |
| 952 // Whether to compile in a background thread. | 952 // Whether to compile in a background thread. |
| 953 __ Push(masm->isolate()->factory()->ToBoolean(concurrent)); | 953 __ LoadRoot( |
| 954 at, concurrent ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); |
| 955 __ push(at); |
| 954 | 956 |
| 955 __ CallRuntime(Runtime::kCompileOptimized, 2); | 957 __ CallRuntime(Runtime::kCompileOptimized, 2); |
| 956 // Restore receiver. | 958 // Restore receiver. |
| 957 __ Pop(a1); | 959 __ Pop(a1); |
| 958 } | 960 } |
| 959 | 961 |
| 960 | 962 |
| 961 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { | 963 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { |
| 962 CallCompileOptimized(masm, false); | 964 CallCompileOptimized(masm, false); |
| 963 GenerateTailCallToReturnedCode(masm); | 965 GenerateTailCallToReturnedCode(masm); |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1686 __ break_(0xCC); | 1688 __ break_(0xCC); |
| 1687 } | 1689 } |
| 1688 } | 1690 } |
| 1689 | 1691 |
| 1690 | 1692 |
| 1691 #undef __ | 1693 #undef __ |
| 1692 | 1694 |
| 1693 } } // namespace v8::internal | 1695 } } // namespace v8::internal |
| 1694 | 1696 |
| 1695 #endif // V8_TARGET_ARCH_MIPS64 | 1697 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |