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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 | 846 |
847 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) { | 847 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) { |
848 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); | 848 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); |
849 } | 849 } |
850 | 850 |
851 | 851 |
852 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { | 852 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { |
853 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); | 853 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); |
854 } | 854 } |
855 | 855 |
856 | 856 void Builtins::Generate_InterpreterEnterBytecodeDispatch(MacroAssembler* masm) { |
857 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { | |
858 // Set the address of the interpreter entry trampoline as a return address. | 857 // Set the address of the interpreter entry trampoline as a return address. |
859 // This simulates the initial call to bytecode handlers in interpreter entry | 858 // This simulates the initial call to bytecode handlers in interpreter entry |
860 // trampoline. The return will never actually be taken, but our stack walker | 859 // trampoline. The return will never actually be taken, but our stack walker |
861 // uses this address to determine whether a frame is interpreted. | 860 // uses this address to determine whether a frame is interpreted. |
862 __ Push(masm->isolate()->builtins()->InterpreterEntryTrampoline()); | 861 __ Push(masm->isolate()->builtins()->InterpreterEntryTrampoline()); |
863 | 862 |
864 Generate_EnterBytecodeDispatch(masm); | 863 Generate_EnterBytecodeDispatch(masm); |
865 } | 864 } |
866 | 865 |
867 | 866 |
(...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2541 | 2540 |
2542 __ bind(&ok); | 2541 __ bind(&ok); |
2543 __ ret(0); | 2542 __ ret(0); |
2544 } | 2543 } |
2545 | 2544 |
2546 #undef __ | 2545 #undef __ |
2547 } // namespace internal | 2546 } // namespace internal |
2548 } // namespace v8 | 2547 } // namespace v8 |
2549 | 2548 |
2550 #endif // V8_TARGET_ARCH_IA32 | 2549 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |