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

Unified Diff: src/global-handles.h

Issue 11959031: Add a new weak handle callback that passes an Isolate to an embedder (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years, 11 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 7808d16a03f6e930829671550c5a7bd56b2c7518..98245a8745739f065ccf1599c6435e6d4ebc86f3 100644
--- a/src/global-handles.h
+++ b/src/global-handles.h
@@ -129,6 +129,9 @@ class GlobalHandles {
void MakeWeak(Object** location,
void* parameter,
WeakReferenceCallback callback);
+ void MakeWeak(Object** location,
+ void* parameter,
+ WeakenedReferenceCallback callback);
static void SetWrapperClassId(Object** location, uint16_t class_id);
static uint16_t GetWrapperClassId(Object** location);
@@ -183,10 +186,6 @@ class GlobalHandles {
// Iterates over all weak roots in heap.
void IterateWeakRoots(ObjectVisitor* v);
- // Iterates over weak roots that are bound to a given callback.
- void IterateWeakRoots(WeakReferenceGuest f,
- WeakReferenceCallback callback);
-
// 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