| 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 | 
| 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 22 matching lines...) Expand all  Loading... | 
| 33 | 33 | 
| 34 | 34 | 
| 35 void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { | 35 void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { | 
| 36   CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); | 36   CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); | 
| 37   EmitDebugBreakSlot(patcher.masm()); | 37   EmitDebugBreakSlot(patcher.masm()); | 
| 38 } | 38 } | 
| 39 | 39 | 
| 40 | 40 | 
| 41 void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, | 41 void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, | 
| 42                                        Handle<Code> code) { | 42                                        Handle<Code> code) { | 
| 43   DCHECK_EQ(Code::BUILTIN, code->kind()); | 43   DCHECK(code->is_debug_stub()); | 
| 44   CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); | 44   CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); | 
| 45   // Patch the code changing the debug break slot code from: | 45   // Patch the code changing the debug break slot code from: | 
| 46   //   nop(DEBUG_BREAK_NOP) - nop(1) is sll(zero_reg, zero_reg, 1) | 46   //   nop(DEBUG_BREAK_NOP) - nop(1) is sll(zero_reg, zero_reg, 1) | 
| 47   //   nop(DEBUG_BREAK_NOP) | 47   //   nop(DEBUG_BREAK_NOP) | 
| 48   //   nop(DEBUG_BREAK_NOP) | 48   //   nop(DEBUG_BREAK_NOP) | 
| 49   //   nop(DEBUG_BREAK_NOP) | 49   //   nop(DEBUG_BREAK_NOP) | 
| 50   //   nop(DEBUG_BREAK_NOP) | 50   //   nop(DEBUG_BREAK_NOP) | 
| 51   //   nop(DEBUG_BREAK_NOP) | 51   //   nop(DEBUG_BREAK_NOP) | 
| 52   // to a call to the debug break slot code. | 52   // to a call to the debug break slot code. | 
| 53   //   li t9, address   (4-instruction sequence on mips64) | 53   //   li t9, address   (4-instruction sequence on mips64) | 
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 149 | 149 | 
| 150 | 150 | 
| 151 const bool LiveEdit::kFrameDropperSupported = true; | 151 const bool LiveEdit::kFrameDropperSupported = true; | 
| 152 | 152 | 
| 153 #undef __ | 153 #undef __ | 
| 154 | 154 | 
| 155 }  // namespace internal | 155 }  // namespace internal | 
| 156 }  // namespace v8 | 156 }  // namespace v8 | 
| 157 | 157 | 
| 158 #endif  // V8_TARGET_ARCH_MIPS64 | 158 #endif  // V8_TARGET_ARCH_MIPS64 | 
| OLD | NEW | 
|---|