OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 | 1283 |
1284 // A HeapIterator provides iteration over the whole heap It aggregates a the | 1284 // A HeapIterator provides iteration over the whole heap It aggregates a the |
1285 // specific iterators for the different spaces as these can only iterate over | 1285 // specific iterators for the different spaces as these can only iterate over |
1286 // one space only. | 1286 // one space only. |
1287 | 1287 |
1288 class HeapIterator BASE_EMBEDDED { | 1288 class HeapIterator BASE_EMBEDDED { |
1289 public: | 1289 public: |
1290 explicit HeapIterator(); | 1290 explicit HeapIterator(); |
1291 virtual ~HeapIterator(); | 1291 virtual ~HeapIterator(); |
1292 | 1292 |
1293 bool has_next(); | |
1294 HeapObject* next(); | 1293 HeapObject* next(); |
1295 void reset(); | 1294 void reset(); |
1296 | 1295 |
1297 private: | 1296 private: |
1298 // Perform the initialization. | 1297 // Perform the initialization. |
1299 void Init(); | 1298 void Init(); |
1300 | 1299 |
1301 // Perform all necessary shutdown (destruction) work. | 1300 // Perform all necessary shutdown (destruction) work. |
1302 void Shutdown(); | 1301 void Shutdown(); |
1303 | 1302 |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1695 | 1694 |
1696 // To speed up scavenge collections new space string are kept | 1695 // To speed up scavenge collections new space string are kept |
1697 // separate from old space strings. | 1696 // separate from old space strings. |
1698 static List<Object*> new_space_strings_; | 1697 static List<Object*> new_space_strings_; |
1699 static List<Object*> old_space_strings_; | 1698 static List<Object*> old_space_strings_; |
1700 }; | 1699 }; |
1701 | 1700 |
1702 } } // namespace v8::internal | 1701 } } // namespace v8::internal |
1703 | 1702 |
1704 #endif // V8_HEAP_H_ | 1703 #endif // V8_HEAP_H_ |
OLD | NEW |