| 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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 | 894 |
| 895 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) { | 895 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) { |
| 896 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); | 896 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); |
| 897 } | 897 } |
| 898 | 898 |
| 899 | 899 |
| 900 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { | 900 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { |
| 901 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); | 901 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); |
| 902 } | 902 } |
| 903 | 903 |
| 904 | 904 void Builtins::Generate_InterpreterEnterBytecodeDispatch(MacroAssembler* masm) { |
| 905 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { | |
| 906 // Set the address of the interpreter entry trampoline as a return address. | 905 // Set the address of the interpreter entry trampoline as a return address. |
| 907 // This simulates the initial call to bytecode handlers in interpreter entry | 906 // This simulates the initial call to bytecode handlers in interpreter entry |
| 908 // trampoline. The return will never actually be taken, but our stack walker | 907 // trampoline. The return will never actually be taken, but our stack walker |
| 909 // uses this address to determine whether a frame is interpreted. | 908 // uses this address to determine whether a frame is interpreted. |
| 910 __ Push(masm->isolate()->builtins()->InterpreterEntryTrampoline()); | 909 __ Push(masm->isolate()->builtins()->InterpreterEntryTrampoline()); |
| 911 | 910 |
| 912 Generate_EnterBytecodeDispatch(masm); | 911 Generate_EnterBytecodeDispatch(masm); |
| 913 } | 912 } |
| 914 | 913 |
| 915 | 914 |
| (...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2619 __ ret(0); | 2618 __ ret(0); |
| 2620 } | 2619 } |
| 2621 | 2620 |
| 2622 | 2621 |
| 2623 #undef __ | 2622 #undef __ |
| 2624 | 2623 |
| 2625 } // namespace internal | 2624 } // namespace internal |
| 2626 } // namespace v8 | 2625 } // namespace v8 |
| 2627 | 2626 |
| 2628 #endif // V8_TARGET_ARCH_X64 | 2627 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |