Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Unified Diff: src/objects.h

Issue 7039058: MIPS: arch-independent changes to support mips. (Closed)
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index e68ac531f7bd320862ce24a89781df567332b7c0..69c6130e5468b0392d3f67d3c9ed0a9301d63c6d 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6725,6 +6725,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.

Powered by Google App Engine
This is Rietveld 408576698