Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Side by Side Diff: src/arm64/debug-arm64.cc

Issue 1232803002: Debugger: refactor reloc info. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mips Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698