Index: src/arm/assembler-arm-inl.h |
diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h |
index 5be57709e382ee4781f2a68ab33e9dea24c65fa3..f72ad76abe869c00b4a0a102a5d4e00ff2042d38 100644 |
--- a/src/arm/assembler-arm-inl.h |
+++ b/src/arm/assembler-arm-inl.h |
@@ -190,6 +190,29 @@ 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); |
+ } |
+} |
+ |
+ |
Operand::Operand(int32_t immediate, RelocInfo::Mode rmode) { |
rm_ = no_reg; |
imm32_ = immediate; |