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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); | 849 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); |
850 } | 850 } |
851 | 851 |
852 | 852 |
853 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { | 853 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { |
854 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); | 854 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); |
855 } | 855 } |
856 | 856 |
857 | 857 |
858 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { | 858 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { |
| 859 // Set the address of the interpreter entry trampoline as a return address. |
| 860 // This simulates the initial call to bytecode handlers in interpreter entry |
| 861 // trampoline. The return will never actually be taken, but our stack walker |
| 862 // uses this address to determine whether a frame is interpreted. |
| 863 __ Push(masm->isolate()->builtins()->InterpreterEntryTrampoline()); |
| 864 |
859 Generate_EnterBytecodeDispatch(masm); | 865 Generate_EnterBytecodeDispatch(masm); |
860 } | 866 } |
861 | 867 |
862 | 868 |
863 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { | 869 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
864 CallRuntimePassFunction(masm, Runtime::kCompileLazy); | 870 CallRuntimePassFunction(masm, Runtime::kCompileLazy); |
865 GenerateTailCallToReturnedCode(masm); | 871 GenerateTailCallToReturnedCode(masm); |
866 } | 872 } |
867 | 873 |
868 | 874 |
(...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2543 | 2549 |
2544 __ bind(&ok); | 2550 __ bind(&ok); |
2545 __ ret(0); | 2551 __ ret(0); |
2546 } | 2552 } |
2547 | 2553 |
2548 #undef __ | 2554 #undef __ |
2549 } // namespace internal | 2555 } // namespace internal |
2550 } // namespace v8 | 2556 } // namespace v8 |
2551 | 2557 |
2552 #endif // V8_TARGET_ARCH_X87 | 2558 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |