| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 static bool IsIndependent(Object** location); | 161 static bool IsIndependent(Object** location); |
| 162 | 162 |
| 163 // Tells whether global handle is near death. | 163 // Tells whether global handle is near death. |
| 164 static bool IsNearDeath(Object** location); | 164 static bool IsNearDeath(Object** location); |
| 165 | 165 |
| 166 // Tells whether global handle is weak. | 166 // Tells whether global handle is weak. |
| 167 static bool IsWeak(Object** location); | 167 static bool IsWeak(Object** location); |
| 168 | 168 |
| 169 // Process pending weak handles. | 169 // Process pending weak handles. |
| 170 // Returns true if next major GC is likely to collect more garbage. | 170 // Returns true if next major GC is likely to collect more garbage. |
| 171 bool PostGarbageCollectionProcessing(GarbageCollector collector); | 171 bool PostGarbageCollectionProcessing(GarbageCollector collector, |
| 172 GCTracer* tracer); |
| 172 | 173 |
| 173 // Iterates over all strong handles. | 174 // Iterates over all strong handles. |
| 174 void IterateStrongRoots(ObjectVisitor* v); | 175 void IterateStrongRoots(ObjectVisitor* v); |
| 175 | 176 |
| 176 // Iterates over all handles. | 177 // Iterates over all handles. |
| 177 void IterateAllRoots(ObjectVisitor* v); | 178 void IterateAllRoots(ObjectVisitor* v); |
| 178 | 179 |
| 179 // Iterates over all handles that have embedder-assigned class ID. | 180 // Iterates over all handles that have embedder-assigned class ID. |
| 180 void IterateAllRootsWithClassIds(ObjectVisitor* v); | 181 void IterateAllRootsWithClassIds(ObjectVisitor* v); |
| 181 | 182 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 284 |
| 284 friend class Isolate; | 285 friend class Isolate; |
| 285 | 286 |
| 286 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); | 287 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 | 290 |
| 290 } } // namespace v8::internal | 291 } } // namespace v8::internal |
| 291 | 292 |
| 292 #endif // V8_GLOBAL_HANDLES_H_ | 293 #endif // V8_GLOBAL_HANDLES_H_ |
| OLD | NEW |