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