Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index 44159e062665371d0ff4c2c4e663180eefa8dca3..f040d24f2ea9862ba1ef21631380cda40a5d2051 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -373,6 +373,29 @@ void RelocInfo::Visit() { |
} |
+template<typename StaticVisitor, typename Data> |
+void RelocInfo::Visit(Data data) { |
+ RelocInfo::Mode mode = rmode(); |
+ if (mode == RelocInfo::EMBEDDED_OBJECT) { |
+ StaticVisitor::VisitPointer(target_object_address(), data); |
+ } else if (RelocInfo::IsCodeTarget(mode)) { |
+ StaticVisitor::VisitCodeTarget(this, data); |
+ } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
+ StaticVisitor::VisitExternalReference(target_reference_address(), data); |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
+ } else if (Debug::has_break_points() && |
+ ((RelocInfo::IsJSReturn(mode) && |
+ IsPatchedReturnSequence()) || |
+ (RelocInfo::IsDebugBreakSlot(mode) && |
+ IsPatchedDebugBreakSlotSequence()))) { |
+ StaticVisitor::VisitDebugTarget(this, data); |
+#endif |
+ } else if (mode == RelocInfo::RUNTIME_ENTRY) { |
+ StaticVisitor::VisitRuntimeEntry(this, data); |
+ } |
+} |
+ |
+ |
// ----------------------------------------------------------------------------- |
// Implementation of Operand |