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_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 CodePatcher patcher(isolate, pc, kSize); | 44 CodePatcher patcher(isolate, pc, kSize); |
45 Label check_codesize; | 45 Label check_codesize; |
46 patcher.masm()->bind(&check_codesize); | 46 patcher.masm()->bind(&check_codesize); |
47 patcher.masm()->movp(kScratchRegister, reinterpret_cast<void*>(code->entry()), | 47 patcher.masm()->movp(kScratchRegister, reinterpret_cast<void*>(code->entry()), |
48 Assembler::RelocInfoNone()); | 48 Assembler::RelocInfoNone()); |
49 patcher.masm()->call(kScratchRegister); | 49 patcher.masm()->call(kScratchRegister); |
50 // Check that the size of the code generated is as expected. | 50 // Check that the size of the code generated is as expected. |
51 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); | 51 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); |
52 } | 52 } |
53 | 53 |
| 54 bool DebugCodegen::DebugBreakSlotIsPatched(Address pc) { |
| 55 return !Assembler::IsNop(pc); |
| 56 } |
54 | 57 |
55 void DebugCodegen::GenerateDebugBreakStub(MacroAssembler* masm, | 58 void DebugCodegen::GenerateDebugBreakStub(MacroAssembler* masm, |
56 DebugBreakCallHelperMode mode) { | 59 DebugBreakCallHelperMode mode) { |
57 __ RecordComment("Debug break"); | 60 __ RecordComment("Debug break"); |
58 | 61 |
59 // Enter an internal frame. | 62 // Enter an internal frame. |
60 { | 63 { |
61 FrameScope scope(masm, StackFrame::INTERNAL); | 64 FrameScope scope(masm, StackFrame::INTERNAL); |
62 | 65 |
63 // Load padding words on stack. | 66 // Load padding words on stack. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 } | 135 } |
133 | 136 |
134 const bool LiveEdit::kFrameDropperSupported = true; | 137 const bool LiveEdit::kFrameDropperSupported = true; |
135 | 138 |
136 #undef __ | 139 #undef __ |
137 | 140 |
138 } // namespace internal | 141 } // namespace internal |
139 } // namespace v8 | 142 } // namespace v8 |
140 | 143 |
141 #endif // V8_TARGET_ARCH_X64 | 144 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |