| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 7 #if V8_TARGET_ARCH_S390 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 EmitDebugBreakSlot(masm); | 38 EmitDebugBreakSlot(masm); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { | 41 void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { |
| 42 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); | 42 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); |
| 43 EmitDebugBreakSlot(patcher.masm()); | 43 EmitDebugBreakSlot(patcher.masm()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, | 46 void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, |
| 47 Handle<Code> code) { | 47 Handle<Code> code) { |
| 48 DCHECK_EQ(Code::BUILTIN, code->kind()); | 48 DCHECK_EQ(Code::DEBUG_STUB, code->kind()); |
| 49 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); | 49 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); |
| 50 // Patch the code changing the debug break slot code from | 50 // Patch the code changing the debug break slot code from |
| 51 // | 51 // |
| 52 // oill r3, 0 | 52 // oill r3, 0 |
| 53 // oill r3, 0 | 53 // oill r3, 0 |
| 54 // oill r3, 0 64-bit only | 54 // oill r3, 0 64-bit only |
| 55 // lr r0, r0 64-bit only | 55 // lr r0, r0 64-bit only |
| 56 // | 56 // |
| 57 // to a call to the debug break code, using a FIXED_SEQUENCE. | 57 // to a call to the debug break code, using a FIXED_SEQUENCE. |
| 58 // | 58 // |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 __ Jump(ip); | 156 __ Jump(ip); |
| 157 } | 157 } |
| 158 | 158 |
| 159 const bool LiveEdit::kFrameDropperSupported = true; | 159 const bool LiveEdit::kFrameDropperSupported = true; |
| 160 | 160 |
| 161 #undef __ | 161 #undef __ |
| 162 } // namespace internal | 162 } // namespace internal |
| 163 } // namespace v8 | 163 } // namespace v8 |
| 164 | 164 |
| 165 #endif // V8_TARGET_ARCH_S390 | 165 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |