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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); | 898 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); |
899 } | 899 } |
900 | 900 |
901 | 901 |
902 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { | 902 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { |
903 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); | 903 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); |
904 } | 904 } |
905 | 905 |
906 | 906 |
907 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { | 907 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { |
| 908 // Set the address of the interpreter entry trampoline as a return address. |
| 909 // This simulates the initial call to bytecode handlers in interpreter entry |
| 910 // trampoline. The return will never actually be taken, but our stack walker |
| 911 // uses this address to determine whether a frame is interpreted. |
| 912 __ Push(masm->isolate()->builtins()->InterpreterEntryTrampoline()); |
| 913 |
908 Generate_EnterBytecodeDispatch(masm); | 914 Generate_EnterBytecodeDispatch(masm); |
909 } | 915 } |
910 | 916 |
911 | 917 |
912 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { | 918 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
913 CallRuntimePassFunction(masm, Runtime::kCompileLazy); | 919 CallRuntimePassFunction(masm, Runtime::kCompileLazy); |
914 GenerateTailCallToReturnedCode(masm); | 920 GenerateTailCallToReturnedCode(masm); |
915 } | 921 } |
916 | 922 |
917 | 923 |
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2615 __ ret(0); | 2621 __ ret(0); |
2616 } | 2622 } |
2617 | 2623 |
2618 | 2624 |
2619 #undef __ | 2625 #undef __ |
2620 | 2626 |
2621 } // namespace internal | 2627 } // namespace internal |
2622 } // namespace v8 | 2628 } // namespace v8 |
2623 | 2629 |
2624 #endif // V8_TARGET_ARCH_X64 | 2630 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |