| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // <debug break return code entry point address> | 58 // <debug break return code entry point address> |
| 59 // bktp 0 | 59 // bktp 0 |
| 60 CodePatcher patcher(rinfo()->pc(), Assembler::kJSReturnSequenceInstructions); | 60 CodePatcher patcher(rinfo()->pc(), Assembler::kJSReturnSequenceInstructions); |
| 61 #ifdef USE_BLX | 61 #ifdef USE_BLX |
| 62 patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); | 62 patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); |
| 63 patcher.masm()->blx(v8::internal::ip); | 63 patcher.masm()->blx(v8::internal::ip); |
| 64 #else | 64 #else |
| 65 patcher.masm()->mov(v8::internal::lr, v8::internal::pc); | 65 patcher.masm()->mov(v8::internal::lr, v8::internal::pc); |
| 66 patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); | 66 patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); |
| 67 #endif | 67 #endif |
| 68 patcher.Emit(Debug::debug_break_return()->entry()); | 68 patcher.Emit(Isolate::Current()->debug()->debug_break_return()->entry()); |
| 69 patcher.masm()->bkpt(0); | 69 patcher.masm()->bkpt(0); |
| 70 } | 70 } |
| 71 | 71 |
| 72 | 72 |
| 73 // Restore the JS frame exit code. | 73 // Restore the JS frame exit code. |
| 74 void BreakLocationIterator::ClearDebugBreakAtReturn() { | 74 void BreakLocationIterator::ClearDebugBreakAtReturn() { |
| 75 rinfo()->PatchCode(original_rinfo()->pc(), | 75 rinfo()->PatchCode(original_rinfo()->pc(), |
| 76 Assembler::kJSReturnSequenceInstructions); | 76 Assembler::kJSReturnSequenceInstructions); |
| 77 } | 77 } |
| 78 | 78 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 108 // #endif | 108 // #endif |
| 109 // <debug break slot code entry point address> | 109 // <debug break slot code entry point address> |
| 110 CodePatcher patcher(rinfo()->pc(), Assembler::kDebugBreakSlotInstructions); | 110 CodePatcher patcher(rinfo()->pc(), Assembler::kDebugBreakSlotInstructions); |
| 111 #ifdef USE_BLX | 111 #ifdef USE_BLX |
| 112 patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); | 112 patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); |
| 113 patcher.masm()->blx(v8::internal::ip); | 113 patcher.masm()->blx(v8::internal::ip); |
| 114 #else | 114 #else |
| 115 patcher.masm()->mov(v8::internal::lr, v8::internal::pc); | 115 patcher.masm()->mov(v8::internal::lr, v8::internal::pc); |
| 116 patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); | 116 patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); |
| 117 #endif | 117 #endif |
| 118 patcher.Emit(Debug::debug_break_slot()->entry()); | 118 patcher.Emit(Isolate::Current()->debug()->debug_break_slot()->entry()); |
| 119 } | 119 } |
| 120 | 120 |
| 121 | 121 |
| 122 void BreakLocationIterator::ClearDebugBreakAtSlot() { | 122 void BreakLocationIterator::ClearDebugBreakAtSlot() { |
| 123 ASSERT(IsDebugBreakSlot()); | 123 ASSERT(IsDebugBreakSlot()); |
| 124 rinfo()->PatchCode(original_rinfo()->pc(), | 124 rinfo()->PatchCode(original_rinfo()->pc(), |
| 125 Assembler::kDebugBreakSlotInstructions); | 125 Assembler::kDebugBreakSlotInstructions); |
| 126 } | 126 } |
| 127 | 127 |
| 128 | 128 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 #undef __ | 307 #undef __ |
| 308 | 308 |
| 309 | 309 |
| 310 | 310 |
| 311 #endif // ENABLE_DEBUGGER_SUPPORT | 311 #endif // ENABLE_DEBUGGER_SUPPORT |
| 312 | 312 |
| 313 } } // namespace v8::internal | 313 } } // namespace v8::internal |
| 314 | 314 |
| 315 #endif // V8_TARGET_ARCH_ARM | 315 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |