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

Unified Diff: src/objects.cc

Issue 203583007: Support weak heap references in the ConstantPool to support IsWeakObjectInOptimizedCode objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/objects-visiting-inl.h » ('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 787b6d82b47145688e92447ff2e57f24473ff5d7..1a8529eddaeb0818e275daee1ac80fa99063fb6e 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -9471,6 +9471,10 @@ void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) {
int index = first_heap_ptr_index() + i;
v->VisitPointer(RawFieldOfElementAt(index));
}
+ for (int i = 0; i < count_of_weak_ptr_entries(); i++) {
+ int index = first_weak_ptr_index() + i;
+ v->VisitPointer(RawFieldOfElementAt(index));
+ }
}
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/objects-visiting-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698