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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); | 1142 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); |
1143 } | 1143 } |
1144 | 1144 |
1145 | 1145 |
1146 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { | 1146 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { |
1147 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); | 1147 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); |
1148 } | 1148 } |
1149 | 1149 |
1150 | 1150 |
1151 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { | 1151 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { |
| 1152 // Set the address of the interpreter entry trampoline as a return address. |
| 1153 // This simulates the initial call to bytecode handlers in interpreter entry |
| 1154 // trampoline. The return will never actually be taken, but our stack walker |
| 1155 // uses this address to determine whether a frame is interpreted. |
| 1156 __ Move(lr, masm->isolate()->builtins()->InterpreterEntryTrampoline()); |
| 1157 |
1152 Generate_EnterBytecodeDispatch(masm); | 1158 Generate_EnterBytecodeDispatch(masm); |
1153 } | 1159 } |
1154 | 1160 |
1155 | 1161 |
1156 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { | 1162 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
1157 CallRuntimePassFunction(masm, Runtime::kCompileLazy); | 1163 CallRuntimePassFunction(masm, Runtime::kCompileLazy); |
1158 GenerateTailCallToReturnedCode(masm); | 1164 GenerateTailCallToReturnedCode(masm); |
1159 } | 1165 } |
1160 | 1166 |
1161 | 1167 |
(...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 } | 2469 } |
2464 } | 2470 } |
2465 | 2471 |
2466 | 2472 |
2467 #undef __ | 2473 #undef __ |
2468 | 2474 |
2469 } // namespace internal | 2475 } // namespace internal |
2470 } // namespace v8 | 2476 } // namespace v8 |
2471 | 2477 |
2472 #endif // V8_TARGET_ARCH_ARM | 2478 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |