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

Unified Diff: src/objects.cc

Issue 8467010: Refactor embedded pointer visitors for the serializer (Closed)
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « src/objects.h ('k') | src/serialize.h » ('j') | src/serialize.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 3a18184673eef0a52f5f25c4e285356678373152..8062b47d32d472805e8e26d98f5baee84f9422f3 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -7724,6 +7724,10 @@ void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) {
VisitPointer(rinfo->target_object_address());
}
+void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) {
+ Address* p = rinfo->target_reference_address();
+ VisitExternalReferences(p, p+1);
Michael Starzinger 2011/11/09 10:46:19 Space before and after operator (i.e. "p + 1").
+}
void Code::InvalidateRelocation() {
set_relocation_info(GetHeap()->empty_byte_array());
« no previous file with comments | « src/objects.h ('k') | src/serialize.h » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698