| 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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 | 973 |
| 974 __ bind(&gotta_call_runtime); | 974 __ bind(&gotta_call_runtime); |
| 975 __ pop(closure); | 975 __ pop(closure); |
| 976 __ pop(new_target); | 976 __ pop(new_target); |
| 977 __ pop(argument_count); | 977 __ pop(argument_count); |
| 978 __ bind(&gotta_call_runtime_no_stack); | 978 __ bind(&gotta_call_runtime_no_stack); |
| 979 | 979 |
| 980 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy); | 980 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy); |
| 981 } | 981 } |
| 982 | 982 |
| 983 void Builtins::Generate_CompileBaseline(MacroAssembler* masm) { |
| 984 GenerateTailCallToReturnedCode(masm, Runtime::kCompileBaseline); |
| 985 } |
| 983 | 986 |
| 984 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { | 987 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { |
| 985 GenerateTailCallToReturnedCode(masm, | 988 GenerateTailCallToReturnedCode(masm, |
| 986 Runtime::kCompileOptimized_NotConcurrent); | 989 Runtime::kCompileOptimized_NotConcurrent); |
| 987 } | 990 } |
| 988 | 991 |
| 989 | 992 |
| 990 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { | 993 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { |
| 991 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent); | 994 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent); |
| 992 } | 995 } |
| (...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2883 // And "return" to the OSR entry point of the function. | 2886 // And "return" to the OSR entry point of the function. |
| 2884 __ ret(0); | 2887 __ ret(0); |
| 2885 } | 2888 } |
| 2886 | 2889 |
| 2887 | 2890 |
| 2888 #undef __ | 2891 #undef __ |
| 2889 } // namespace internal | 2892 } // namespace internal |
| 2890 } // namespace v8 | 2893 } // namespace v8 |
| 2891 | 2894 |
| 2892 #endif // V8_TARGET_ARCH_X87 | 2895 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |