diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2009-11-18 15:25:58 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-11-18 15:28:54 +0100 |
commit | 728d8a37f471afaeaa6af19823f9da8c41f1f65a (patch) | |
tree | 21e014089ff0bfb7d493691620ab9eee51176d28 /deps/v8/src/global-handles.h | |
parent | 8195e0f7232fed3d6a3a2cc8464fec5e36f4433c (diff) | |
download | android-node-v8-728d8a37f471afaeaa6af19823f9da8c41f1f65a.tar.gz android-node-v8-728d8a37f471afaeaa6af19823f9da8c41f1f65a.tar.bz2 android-node-v8-728d8a37f471afaeaa6af19823f9da8c41f1f65a.zip |
Upgrade v8 to 2.0
(With just one change: remove -Werror)
Diffstat (limited to 'deps/v8/src/global-handles.h')
-rw-r--r-- | deps/v8/src/global-handles.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/v8/src/global-handles.h b/deps/v8/src/global-handles.h index 87eb9b8301..b9cac5c2a1 100644 --- a/deps/v8/src/global-handles.h +++ b/deps/v8/src/global-handles.h @@ -48,7 +48,8 @@ namespace internal { class ObjectGroup : public Malloced { public: ObjectGroup() : objects_(4) {} - explicit ObjectGroup(size_t capacity) : objects_(capacity) {} + explicit ObjectGroup(size_t capacity) + : objects_(static_cast<int>(capacity)) { } List<Object**> objects_; }; @@ -95,8 +96,11 @@ class GlobalHandles : public AllStatic { // Process pending weak handles. static void PostGarbageCollectionProcessing(); + // Iterates over all strong handles. + static void IterateStrongRoots(ObjectVisitor* v); + // Iterates over all handles. - static void IterateRoots(ObjectVisitor* v); + static void IterateAllRoots(ObjectVisitor* v); // Iterates over all weak roots in heap. static void IterateWeakRoots(ObjectVisitor* v); |