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