| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 // Iterates over all strong handles. | 173 // Iterates over all strong handles. |
| 174 void IterateStrongRoots(ObjectVisitor* v); | 174 void IterateStrongRoots(ObjectVisitor* v); |
| 175 | 175 |
| 176 // Iterates over all handles. | 176 // Iterates over all handles. |
| 177 void IterateAllRoots(ObjectVisitor* v); | 177 void IterateAllRoots(ObjectVisitor* v); |
| 178 | 178 |
| 179 // Iterates over all handles that have embedder-assigned class ID. | 179 // Iterates over all handles that have embedder-assigned class ID. |
| 180 void IterateAllRootsWithClassIds(ObjectVisitor* v); | 180 void IterateAllRootsWithClassIds(ObjectVisitor* v); |
| 181 | 181 |
| 182 // Iterates over all handles in the new space that have embedder-assigned |
| 183 // class ID. |
| 184 void IterateAllRootsInNewSpaceWithClassIds(ObjectVisitor* v); |
| 185 |
| 182 // Iterates over all weak roots in heap. | 186 // Iterates over all weak roots in heap. |
| 183 void IterateWeakRoots(ObjectVisitor* v); | 187 void IterateWeakRoots(ObjectVisitor* v); |
| 184 | 188 |
| 185 // Iterates over weak roots that are bound to a given callback. | 189 // Iterates over weak roots that are bound to a given callback. |
| 186 void IterateWeakRoots(WeakReferenceGuest f, | 190 void IterateWeakRoots(WeakReferenceGuest f, |
| 187 WeakReferenceCallback callback); | 191 WeakReferenceCallback callback); |
| 188 | 192 |
| 189 // Find all weak handles satisfying the callback predicate, mark | 193 // Find all weak handles satisfying the callback predicate, mark |
| 190 // them as pending. | 194 // them as pending. |
| 191 void IdentifyWeakHandles(WeakSlotCallback f); | 195 void IdentifyWeakHandles(WeakSlotCallback f); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 287 |
| 284 friend class Isolate; | 288 friend class Isolate; |
| 285 | 289 |
| 286 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); | 290 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); |
| 287 }; | 291 }; |
| 288 | 292 |
| 289 | 293 |
| 290 } } // namespace v8::internal | 294 } } // namespace v8::internal |
| 291 | 295 |
| 292 #endif // V8_GLOBAL_HANDLES_H_ | 296 #endif // V8_GLOBAL_HANDLES_H_ |
| OLD | NEW |