| 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 "include/v8.h" | 8 #include "include/v8.h" |
| 9 #include "include/v8-profiler.h" | 9 #include "include/v8-profiler.h" |
| 10 | 10 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 static bool IsIndependent(Object** location); | 149 static bool IsIndependent(Object** location); |
| 150 | 150 |
| 151 // Tells whether global handle is near death. | 151 // Tells whether global handle is near death. |
| 152 static bool IsNearDeath(Object** location); | 152 static bool IsNearDeath(Object** location); |
| 153 | 153 |
| 154 // Tells whether global handle is weak. | 154 // Tells whether global handle is weak. |
| 155 static bool IsWeak(Object** location); | 155 static bool IsWeak(Object** location); |
| 156 | 156 |
| 157 // Process pending weak handles. | 157 // Process pending weak handles. |
| 158 // Returns true if next major GC is likely to collect more garbage. | 158 // Returns the number of freed nodes. |
| 159 bool PostGarbageCollectionProcessing(GarbageCollector collector, | 159 int PostGarbageCollectionProcessing(GarbageCollector collector, |
| 160 GCTracer* tracer); | 160 GCTracer* tracer); |
| 161 | 161 |
| 162 // Iterates over all strong handles. | 162 // Iterates over all strong handles. |
| 163 void IterateStrongRoots(ObjectVisitor* v); | 163 void IterateStrongRoots(ObjectVisitor* v); |
| 164 | 164 |
| 165 // Iterates over all handles. | 165 // Iterates over all handles. |
| 166 void IterateAllRoots(ObjectVisitor* v); | 166 void IterateAllRoots(ObjectVisitor* v); |
| 167 | 167 |
| 168 // Iterates over all handles that have embedder-assigned class ID. | 168 // Iterates over all handles that have embedder-assigned class ID. |
| 169 void IterateAllRootsWithClassIds(ObjectVisitor* v); | 169 void IterateAllRootsWithClassIds(ObjectVisitor* v); |
| 170 | 170 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 List<int> new_space_indices_; | 378 List<int> new_space_indices_; |
| 379 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; | 379 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; |
| 380 | 380 |
| 381 DISALLOW_COPY_AND_ASSIGN(EternalHandles); | 381 DISALLOW_COPY_AND_ASSIGN(EternalHandles); |
| 382 }; | 382 }; |
| 383 | 383 |
| 384 | 384 |
| 385 } } // namespace v8::internal | 385 } } // namespace v8::internal |
| 386 | 386 |
| 387 #endif // V8_GLOBAL_HANDLES_H_ | 387 #endif // V8_GLOBAL_HANDLES_H_ |
| OLD | NEW |