diff options
Diffstat (limited to 'src/global-handles.h')
-rw-r--r-- | src/global-handles.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/global-handles.h b/src/global-handles.h index 50e5ed69..9c4ffb4f 100644 --- a/src/global-handles.h +++ b/src/global-handles.h @@ -113,6 +113,12 @@ enum WeaknessType { class GlobalHandles { public: + enum IterationMode { + HANDLE_PHANTOM_NODES_VISIT_OTHERS, + VISIT_OTHERS, + HANDLE_PHANTOM_NODES + }; + ~GlobalHandles(); // Creates a new global handle that is alive until Destroy is called. @@ -227,6 +233,7 @@ class GlobalHandles { // Iterates over weak independent or unmodified handles. // See the note above. + template <IterationMode mode> void IterateNewSpaceWeakUnmodifiedRoots(ObjectVisitor* v); // Identify unmodified objects that are in weak state and marks them @@ -290,7 +297,7 @@ class GlobalHandles { #ifdef DEBUG void PrintStats(); void Print(); -#endif +#endif // DEBUG private: explicit GlobalHandles(Isolate* isolate); @@ -389,8 +396,6 @@ class GlobalHandles::PendingPhantomCallback { class EternalHandles { public: enum SingletonHandle { - I18N_TEMPLATE_ONE, - I18N_TEMPLATE_TWO, DATE_CACHE_VERSION, NUMBER_OF_SINGLETON_HANDLES |