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

Unified Diff: src/global-handles.h

Issue 7031005: Extend Handle API with MarkIndependent. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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/global-handles.h
diff --git a/src/global-handles.h b/src/global-handles.h
index c89a2aacdd18ab6c4c7f23c8e073d6b989446f52..4a94c757f8c3380388a552f2f75fedbf018db930 100644
--- a/src/global-handles.h
+++ b/src/global-handles.h
@@ -146,6 +146,9 @@ class GlobalHandles {
// Clear the weakness of a global handle.
void ClearWeakness(Object** location);
+ // Clear the weakness of a global handle.
+ void MarkIndependent(Object** location);
+
// Tells whether global handle is near death.
static bool IsNearDeath(Object** location);
@@ -159,6 +162,9 @@ class GlobalHandles {
// Iterates over all strong handles.
void IterateStrongRoots(ObjectVisitor* v);
+ // Iterates over all strong and dependent handles.
+ void IterateStrongAndDependentRoots(ObjectVisitor* v);
+
// Iterates over all handles.
void IterateAllRoots(ObjectVisitor* v);
@@ -168,10 +174,16 @@ class GlobalHandles {
// Iterates over all weak roots in heap.
void IterateWeakRoots(ObjectVisitor* v);
+ // Iterates over all weak independent roots in heap.
+ void IterateWeakIndependentRoots(ObjectVisitor* v);
+
// Iterates over weak roots that are bound to a given callback.
void IterateWeakRoots(WeakReferenceGuest f,
WeakReferenceCallback callback);
+ // Iterates over weak independent roots that are bound to a given callback.
Vitaly Repeshko 2011/05/16 13:42:11 The comment is wrong, but we should most likely re
Vyacheslav Egorov (Chromium) 2011/05/16 14:15:46 Yep. Thanks for catching it. Copy/paste with wrong
+ void IdentifyWeakIndependentHandles(WeakSlotCallbackWithHeap f);
+
// Find all weak handles satisfying the callback predicate, mark
// them as pending.
void IdentifyWeakHandles(WeakSlotCallback f);

Powered by Google App Engine
This is Rietveld 408576698