Index: src/ia32/assembler-ia32-inl.h |
diff --git a/src/ia32/assembler-ia32-inl.h b/src/ia32/assembler-ia32-inl.h |
index 7fa151e9e75ec544cdf9c5ca8429b00a6c84d492..ecbdfdcff69779fd99b63b540b381ee92b156473 100644 |
--- a/src/ia32/assembler-ia32-inl.h |
+++ b/src/ia32/assembler-ia32-inl.h |
@@ -183,6 +183,30 @@ void RelocInfo::Visit(ObjectVisitor* visitor) { |
} |
+template<typename StaticVisitor> |
+void RelocInfo::Visit() { |
+ RelocInfo::Mode mode = rmode(); |
+ if (mode == RelocInfo::EMBEDDED_OBJECT) { |
+ StaticVisitor::VisitPointer(target_object_address()); |
+ } else if (RelocInfo::IsCodeTarget(mode)) { |
+ StaticVisitor::VisitCodeTarget(this); |
+ } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
+ StaticVisitor::VisitExternalReference(target_reference_address()); |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
+ } else if (Debug::has_break_points() && |
+ ((RelocInfo::IsJSReturn(mode) && |
+ IsPatchedReturnSequence()) || |
+ (RelocInfo::IsDebugBreakSlot(mode) && |
+ IsPatchedDebugBreakSlotSequence()))) { |
+ StaticVisitor::VisitDebugTarget(this); |
+#endif |
+ } else if (mode == RelocInfo::RUNTIME_ENTRY) { |
+ StaticVisitor::VisitRuntimeEntry(this); |
+ } |
+} |
+ |
+ |
+ |
Immediate::Immediate(int x) { |
x_ = x; |
rmode_ = RelocInfo::NONE; |