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 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2753 __ ret(0); | 2752 __ ret(0); |
2754 } | 2753 } |
2755 | 2754 |
2756 | 2755 |
2757 #undef __ | 2756 #undef __ |
2758 | 2757 |
2759 } // namespace internal | 2758 } // namespace internal |
2760 } // namespace v8 | 2759 } // namespace v8 |
2761 | 2760 |
2762 #endif // V8_TARGET_ARCH_X64 | 2761 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |