Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index 1c52f009441ca134011143d95108b630683ab56c..95e96729fde6055c64284f946280ef0528ede085 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -393,12 +393,8 @@ bool RelocInfo::IsPatchedReturnSequence() { |
// movq(rsp, rbp); pop(rbp); ret(n); int3 *6 |
// The 11th byte is int3 (0xCC) in the return sequence and |
// REX.WB (0x48+register bit) for the call sequence. |
-#ifdef ENABLE_DEBUGGER_SUPPORT |
return pc_[Assembler::kMoveAddressIntoScratchRegisterInstructionLength] != |
0xCC; |
-#else |
- return false; |
-#endif |
} |
@@ -484,14 +480,12 @@ void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
CPU::FlushICache(pc_, sizeof(Address)); |
} else if (RelocInfo::IsCodeAgeSequence(mode)) { |
visitor->VisitCodeAgeSequence(this); |
-#ifdef ENABLE_DEBUGGER_SUPPORT |
} else if (((RelocInfo::IsJSReturn(mode) && |
IsPatchedReturnSequence()) || |
(RelocInfo::IsDebugBreakSlot(mode) && |
IsPatchedDebugBreakSlotSequence())) && |
isolate->debug()->has_break_points()) { |
visitor->VisitDebugTarget(this); |
-#endif |
} else if (RelocInfo::IsRuntimeEntry(mode)) { |
visitor->VisitRuntimeEntry(this); |
} |
@@ -513,14 +507,12 @@ void RelocInfo::Visit(Heap* heap) { |
CPU::FlushICache(pc_, sizeof(Address)); |
} else if (RelocInfo::IsCodeAgeSequence(mode)) { |
StaticVisitor::VisitCodeAgeSequence(heap, this); |
-#ifdef ENABLE_DEBUGGER_SUPPORT |
} else if (heap->isolate()->debug()->has_break_points() && |
((RelocInfo::IsJSReturn(mode) && |
IsPatchedReturnSequence()) || |
(RelocInfo::IsDebugBreakSlot(mode) && |
IsPatchedDebugBreakSlotSequence()))) { |
StaticVisitor::VisitDebugTarget(heap, this); |
-#endif |
} else if (RelocInfo::IsRuntimeEntry(mode)) { |
StaticVisitor::VisitRuntimeEntry(this); |
} |