| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.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 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 | 1125 |
| 1126 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) { | 1126 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) { |
| 1127 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); | 1127 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 | 1130 |
| 1131 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { | 1131 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { |
| 1132 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); | 1132 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); |
| 1133 } | 1133 } |
| 1134 | 1134 |
| 1135 | 1135 void Builtins::Generate_InterpreterEnterBytecodeDispatch(MacroAssembler* masm) { |
| 1136 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { | |
| 1137 // Set the address of the interpreter entry trampoline as a return address. | 1136 // Set the address of the interpreter entry trampoline as a return address. |
| 1138 // This simulates the initial call to bytecode handlers in interpreter entry | 1137 // This simulates the initial call to bytecode handlers in interpreter entry |
| 1139 // trampoline. The return will never actually be taken, but our stack walker | 1138 // trampoline. The return will never actually be taken, but our stack walker |
| 1140 // uses this address to determine whether a frame is interpreted. | 1139 // uses this address to determine whether a frame is interpreted. |
| 1141 __ mov(r0, | 1140 __ mov(r0, |
| 1142 Operand(masm->isolate()->builtins()->InterpreterEntryTrampoline())); | 1141 Operand(masm->isolate()->builtins()->InterpreterEntryTrampoline())); |
| 1143 __ mtlr(r0); | 1142 __ mtlr(r0); |
| 1144 | 1143 |
| 1145 Generate_EnterBytecodeDispatch(masm); | 1144 Generate_EnterBytecodeDispatch(masm); |
| 1146 } | 1145 } |
| (...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2536 __ bkpt(0); | 2535 __ bkpt(0); |
| 2537 } | 2536 } |
| 2538 } | 2537 } |
| 2539 | 2538 |
| 2540 | 2539 |
| 2541 #undef __ | 2540 #undef __ |
| 2542 } // namespace internal | 2541 } // namespace internal |
| 2543 } // namespace v8 | 2542 } // namespace v8 |
| 2544 | 2543 |
| 2545 #endif // V8_TARGET_ARCH_PPC | 2544 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |