OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); | 1101 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); |
1102 } | 1102 } |
1103 | 1103 |
1104 | 1104 |
1105 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { | 1105 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { |
1106 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); | 1106 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); |
1107 } | 1107 } |
1108 | 1108 |
1109 | 1109 |
1110 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { | 1110 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { |
| 1111 // Set the address of the interpreter entry trampoline as a return address. |
| 1112 // This simulates the initial call to bytecode handlers in interpreter entry |
| 1113 // trampoline. The return will never actually be taken, but our stack walker |
| 1114 // uses this address to determine whether a frame is interpreted. |
| 1115 __ LoadObject(lr, masm->isolate()->builtins()->InterpreterEntryTrampoline()); |
| 1116 |
1111 Generate_EnterBytecodeDispatch(masm); | 1117 Generate_EnterBytecodeDispatch(masm); |
1112 } | 1118 } |
1113 | 1119 |
1114 | 1120 |
1115 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { | 1121 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
1116 CallRuntimePassFunction(masm, Runtime::kCompileLazy); | 1122 CallRuntimePassFunction(masm, Runtime::kCompileLazy); |
1117 GenerateTailCallToReturnedCode(masm); | 1123 GenerateTailCallToReturnedCode(masm); |
1118 } | 1124 } |
1119 | 1125 |
1120 | 1126 |
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2610 } | 2616 } |
2611 } | 2617 } |
2612 | 2618 |
2613 | 2619 |
2614 #undef __ | 2620 #undef __ |
2615 | 2621 |
2616 } // namespace internal | 2622 } // namespace internal |
2617 } // namespace v8 | 2623 } // namespace v8 |
2618 | 2624 |
2619 #endif // V8_TARGET_ARCH_ARM | 2625 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |