Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index ddbd6af5475139285f3994baed14e5a09d04cefc..8c195ebd92b7b60b737e8c00a351eb4e23df8e8f 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -2718,6 +2718,17 @@ class V8EXPORT V8 { |
| RetainedObjectInfo* info = NULL); |
| /** |
| + * Allows the host application to declare implicit references between |
| + * the objects: if |parent| is alive, all |children| are alive too. |
| + * After each garbage collection, all implicit references |
| + * are removed. It is intended to be used in the before-garbage-collection |
| + * callback function. |
| + */ |
| + static void AddImplicitRefGroup(Persistent<Object> parent, |
|
Vitaly Repeshko
2011/03/15 18:45:35
I don't like the name for two reasons: "Ref" is an
|
| + Persistent<Value>* children, |
| + size_t length); |
| + |
| + /** |
| * Initializes from snapshot if possible. Otherwise, attempts to |
| * initialize from scratch. This function is called implicitly if |
| * you use the API without calling it first. |