Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index b51121338b2c2a738d42aca9aa40111eff290f11..716f1b3c6a0daf67e5269cb09d3e974f3fbdf623 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -6728,6 +6728,12 @@ class ObjectVisitor BASE_EMBEDDED { |
// Handy shorthand for visiting a single pointer. |
virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); } |
+ // Variant of VisitPointer() can be defined in visitors where |
+ // reloc info is needed (initially defined for mips). |
+ virtual void VisitPointer(Object** p, RelocInfo* rinfo) { |
+ VisitPointers(p, p + 1); |
+ } |
+ |
// Visits a contiguous arrays of external references (references to the C++ |
// heap) in the half-open range [start, end). Any or all of the values |
// may be modified on return. |