| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_GLOBAL_HANDLES_H_ | 5 #ifndef V8_GLOBAL_HANDLES_H_ |
| 6 #define V8_GLOBAL_HANDLES_H_ | 6 #define V8_GLOBAL_HANDLES_H_ |
| 7 | 7 |
| 8 #include <type_traits> | 8 #include <type_traits> |
| 9 | 9 |
| 10 #include "include/v8.h" | 10 #include "include/v8.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Returns the number of freed nodes. | 123 // Returns the number of freed nodes. |
| 124 int PostGarbageCollectionProcessing( | 124 int PostGarbageCollectionProcessing( |
| 125 GarbageCollector collector, const v8::GCCallbackFlags gc_callback_flags); | 125 GarbageCollector collector, const v8::GCCallbackFlags gc_callback_flags); |
| 126 | 126 |
| 127 // Iterates over all strong handles. | 127 // Iterates over all strong handles. |
| 128 void IterateStrongRoots(RootVisitor* v); | 128 void IterateStrongRoots(RootVisitor* v); |
| 129 | 129 |
| 130 // Iterates over all handles. | 130 // Iterates over all handles. |
| 131 void IterateAllRoots(RootVisitor* v); | 131 void IterateAllRoots(RootVisitor* v); |
| 132 | 132 |
| 133 void IterateAllNewSpaceRoots(RootVisitor* v); |
| 134 |
| 133 // Iterates over all handles that have embedder-assigned class ID. | 135 // Iterates over all handles that have embedder-assigned class ID. |
| 134 void IterateAllRootsWithClassIds(v8::PersistentHandleVisitor* v); | 136 void IterateAllRootsWithClassIds(v8::PersistentHandleVisitor* v); |
| 135 | 137 |
| 136 // Iterates over all handles in the new space that have embedder-assigned | 138 // Iterates over all handles in the new space that have embedder-assigned |
| 137 // class ID. | 139 // class ID. |
| 138 void IterateAllRootsInNewSpaceWithClassIds(v8::PersistentHandleVisitor* v); | 140 void IterateAllRootsInNewSpaceWithClassIds(v8::PersistentHandleVisitor* v); |
| 139 | 141 |
| 140 // Iterate over all handles in the new space that are weak, unmodified | 142 // Iterate over all handles in the new space that are weak, unmodified |
| 141 // and have class IDs | 143 // and have class IDs |
| 142 void IterateWeakRootsInNewSpaceWithClassIds(v8::PersistentHandleVisitor* v); | 144 void IterateWeakRootsInNewSpaceWithClassIds(v8::PersistentHandleVisitor* v); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; | 330 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; |
| 329 | 331 |
| 330 DISALLOW_COPY_AND_ASSIGN(EternalHandles); | 332 DISALLOW_COPY_AND_ASSIGN(EternalHandles); |
| 331 }; | 333 }; |
| 332 | 334 |
| 333 | 335 |
| 334 } // namespace internal | 336 } // namespace internal |
| 335 } // namespace v8 | 337 } // namespace v8 |
| 336 | 338 |
| 337 #endif // V8_GLOBAL_HANDLES_H_ | 339 #endif // V8_GLOBAL_HANDLES_H_ |
| OLD | NEW |