| 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 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 | 35 |
| 36 void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { | 36 void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { |
| 37 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); | 37 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); |
| 38 EmitDebugBreakSlot(patcher.masm()); | 38 EmitDebugBreakSlot(patcher.masm()); |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, | 42 void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, |
| 43 Handle<Code> code) { | 43 Handle<Code> code) { |
| 44 DCHECK_EQ(Code::BUILTIN, code->kind()); | 44 DCHECK(code->is_debug_stub()); |
| 45 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); | 45 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); |
| 46 // Patch the code changing the debug break slot code from | 46 // Patch the code changing the debug break slot code from |
| 47 // mov r2, r2 | 47 // mov r2, r2 |
| 48 // mov r2, r2 | 48 // mov r2, r2 |
| 49 // mov r2, r2 | 49 // mov r2, r2 |
| 50 // mov r2, r2 | 50 // mov r2, r2 |
| 51 // to a call to the debug break slot code. | 51 // to a call to the debug break slot code. |
| 52 // ldr ip, [pc, #0] | 52 // ldr ip, [pc, #0] |
| 53 // b skip | 53 // b skip |
| 54 // <debug break slot code entry point address> | 54 // <debug break slot code entry point address> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 | 156 |
| 157 const bool LiveEdit::kFrameDropperSupported = true; | 157 const bool LiveEdit::kFrameDropperSupported = true; |
| 158 | 158 |
| 159 #undef __ | 159 #undef __ |
| 160 | 160 |
| 161 } // namespace internal | 161 } // namespace internal |
| 162 } // namespace v8 | 162 } // namespace v8 |
| 163 | 163 |
| 164 #endif // V8_TARGET_ARCH_ARM | 164 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |