| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/debug.h" | 10 #include "src/debug.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // this call site will be registered in the frame (lr being saved as the pc | 49 // this call site will be registered in the frame (lr being saved as the pc |
| 50 // of the next instruction to execute for this frame). The debugger can now | 50 // of the next instruction to execute for this frame). The debugger can now |
| 51 // iterate on the frames to find call to debug break return code. | 51 // iterate on the frames to find call to debug break return code. |
| 52 patcher.blr(ip0); | 52 patcher.blr(ip0); |
| 53 patcher.hlt(kHltBadCode); | 53 patcher.hlt(kHltBadCode); |
| 54 patcher.dc64(reinterpret_cast<int64_t>(entry)); | 54 patcher.dc64(reinterpret_cast<int64_t>(entry)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 | 57 |
| 58 void BreakLocation::SetDebugBreakAtSlot() { | 58 void BreakLocation::SetDebugBreakAtSlot() { |
| 59 DCHECK(IsDebugBreakSlot()); |
| 59 // Patch the code emitted by DebugCodegen::GenerateSlots, changing the debug | 60 // Patch the code emitted by DebugCodegen::GenerateSlots, changing the debug |
| 60 // break slot code from | 61 // break slot code from |
| 61 // mov x0, x0 @ nop DEBUG_BREAK_NOP | 62 // mov x0, x0 @ nop DEBUG_BREAK_NOP |
| 62 // mov x0, x0 @ nop DEBUG_BREAK_NOP | 63 // mov x0, x0 @ nop DEBUG_BREAK_NOP |
| 63 // mov x0, x0 @ nop DEBUG_BREAK_NOP | 64 // mov x0, x0 @ nop DEBUG_BREAK_NOP |
| 64 // mov x0, x0 @ nop DEBUG_BREAK_NOP | 65 // mov x0, x0 @ nop DEBUG_BREAK_NOP |
| 65 // to a call to the debug slot code. | 66 // to a call to the debug slot code. |
| 66 // ldr ip0, [pc, #(2 * kInstructionSize)] | 67 // ldr ip0, [pc, #(2 * kInstructionSize)] |
| 67 // blr ip0 | 68 // blr ip0 |
| 68 // <debug break slot code ... | 69 // <debug break slot code ... |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 __ Br(scratch); | 220 __ Br(scratch); |
| 220 } | 221 } |
| 221 | 222 |
| 222 | 223 |
| 223 const bool LiveEdit::kFrameDropperSupported = true; | 224 const bool LiveEdit::kFrameDropperSupported = true; |
| 224 | 225 |
| 225 } // namespace internal | 226 } // namespace internal |
| 226 } // namespace v8 | 227 } // namespace v8 |
| 227 | 228 |
| 228 #endif // V8_TARGET_ARCH_ARM64 | 229 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |