Index: src/arm/debug-arm.cc |
diff --git a/src/arm/debug-arm.cc b/src/arm/debug-arm.cc |
index e9a65b2b0f8fe9f75f3658cd2161c66fafbfc665..848fae20d5f93b12dbdcc5224055b5aa6c4a1b41 100644 |
--- a/src/arm/debug-arm.cc |
+++ b/src/arm/debug-arm.cc |
@@ -48,23 +48,13 @@ void BreakLocationIterator::SetDebugBreakAtReturn() { |
// add sp, sp, #4 |
// bx lr |
// to a call to the debug break return code. |
- // #ifdef USE_BLX |
// ldr ip, [pc, #0] |
// blx ip |
- // #else |
- // mov lr, pc |
- // ldr pc, [pc, #-4] |
- // #endif |
// <debug break return code entry point address> |
// bktp 0 |
CodePatcher patcher(rinfo()->pc(), Assembler::kJSReturnSequenceInstructions); |
-#ifdef USE_BLX |
patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); |
patcher.masm()->blx(v8::internal::ip); |
-#else |
- patcher.masm()->mov(v8::internal::lr, v8::internal::pc); |
- patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); |
-#endif |
patcher.Emit(Isolate::Current()->debug()->debug_break_return()->entry()); |
patcher.masm()->bkpt(0); |
} |
@@ -99,22 +89,12 @@ void BreakLocationIterator::SetDebugBreakAtSlot() { |
// mov r2, r2 |
// mov r2, r2 |
// to a call to the debug break slot code. |
- // #ifdef USE_BLX |
// ldr ip, [pc, #0] |
// blx ip |
- // #else |
- // mov lr, pc |
- // ldr pc, [pc, #-4] |
- // #endif |
// <debug break slot code entry point address> |
CodePatcher patcher(rinfo()->pc(), Assembler::kDebugBreakSlotInstructions); |
-#ifdef USE_BLX |
patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); |
patcher.masm()->blx(v8::internal::ip); |
-#else |
- patcher.masm()->mov(v8::internal::lr, v8::internal::pc); |
- patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); |
-#endif |
patcher.Emit(Isolate::Current()->debug()->debug_break_slot()->entry()); |
} |