Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1140)

Side by Side Diff: src/heap.h

Issue 555072: Merge ObjectIterator::has_next and ObjectIterator::next methods.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698