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

Side by Side Diff: src/spaces.h

Issue 7044082: Minor cleanup of StoreBuffer related heap iteration methods. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 6 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
OLDNEW
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 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 2177
2178 // Finds an object for a given address, returns Failure::Exception() 2178 // Finds an object for a given address, returns Failure::Exception()
2179 // if it is not found. The function iterates through all objects in this 2179 // if it is not found. The function iterates through all objects in this
2180 // space, may be slow. 2180 // space, may be slow.
2181 MaybeObject* FindObject(Address a); 2181 MaybeObject* FindObject(Address a);
2182 2182
2183 // Finds a large object page containing the given pc, returns NULL 2183 // Finds a large object page containing the given pc, returns NULL
2184 // if such a page doesn't exist. 2184 // if such a page doesn't exist.
2185 LargePage* FindPageContainingPc(Address pc); 2185 LargePage* FindPageContainingPc(Address pc);
2186 2186
2187 // Iterates over pointers to new space.
2188 void IteratePointersToNewSpace(ObjectSlotCallback func);
2189
2190 // Frees unmarked objects. 2187 // Frees unmarked objects.
2191 void FreeUnmarkedObjects(); 2188 void FreeUnmarkedObjects();
2192 2189
2193 // Checks whether a heap object is in this space; O(1). 2190 // Checks whether a heap object is in this space; O(1).
2194 bool Contains(HeapObject* obj); 2191 bool Contains(HeapObject* obj);
2195 2192
2196 // Checks whether the space is empty. 2193 // Checks whether the space is empty.
2197 bool IsEmpty() { return first_page_ == NULL; } 2194 bool IsEmpty() { return first_page_ == NULL; }
2198 2195
2199 // See the comments for ReserveSpace in the Space class. This has to be 2196 // See the comments for ReserveSpace in the Space class. This has to be
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2327 } 2324 }
2328 // Must be small, since an iteration is used for lookup. 2325 // Must be small, since an iteration is used for lookup.
2329 static const int kMaxComments = 64; 2326 static const int kMaxComments = 64;
2330 }; 2327 };
2331 #endif 2328 #endif
2332 2329
2333 2330
2334 } } // namespace v8::internal 2331 } } // namespace v8::internal
2335 2332
2336 #endif // V8_SPACES_H_ 2333 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/spaces.cc » ('j') | src/store-buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698