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

Unified Diff: src/spaces.h

Issue 7639020: Perform TODO(gc) cleanup for TODO-lockdown. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« src/mark-compact.cc ('K') | « src/serialize.cc ('k') | src/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.h
diff --git a/src/spaces.h b/src/spaces.h
index ffbeb6d5fc1c3cb801ce3a6a6aeff38e4e84bb48..74e0db1f505ff1acff782dd7420533ee41a6d351 100644
--- a/src/spaces.h
+++ b/src/spaces.h
@@ -120,8 +120,6 @@ class Space;
class FreeList;
class MemoryChunk;
-// TODO(gc): Check that this all gets inlined and register allocated on
-// all platforms.
class MarkBit {
public:
typedef uint32_t CellType;
@@ -916,9 +914,6 @@ class MemoryAllocator {
bool MemoryAllocationCallbackRegistered(
MemoryAllocationCallback callback);
-
- // TODO(gc) ISOLATSE
-
private:
Isolate* isolate_;
@@ -1072,8 +1067,6 @@ class AllocationInfo {
#ifdef DEBUG
bool VerifyPagedAllocation() {
- // TODO(gc): Make this type-correct. NewSpacePage isn't a Page,
- // but NewSpace still uses AllocationInfo.
return (Page::FromAllocationTop(top) == Page::FromAllocationTop(limit))
&& (top <= limit);
}
@@ -2268,20 +2261,9 @@ class MapSpace : public FixedSpace {
}
// Given an index, returns the page address.
- // TODO(gc): this limit is artifical just to keep code compilable
+ // TODO(1600): this limit is artifical just to keep code compilable
static const int kMaxMapPageIndex = 1 << 16;
- // Are map pointers encodable into map word?
- bool MapPointersEncodable() {
- return false;
- }
-
- // Should be called after forced sweep to find out if map space needs
- // compaction.
- bool NeedsCompaction(int live_maps) {
- return false; // TODO(gc): Bring back map compaction.
- }
-
virtual int RoundSizeDownToObjectAlignment(int size) {
if (IsPowerOf2(Map::kSize)) {
return RoundDown(size, Map::kSize);
@@ -2356,18 +2338,16 @@ class LargeObjectSpace : public Space {
// Releases internal resources, frees objects in this space.
void TearDown();
- // Allocates a (non-FixedArray, non-Code) large object.
- MUST_USE_RESULT MaybeObject* AllocateRawData(int size_in_bytes);
- // Allocates a large Code object.
- MUST_USE_RESULT MaybeObject* AllocateRawCode(int size_in_bytes);
- // Allocates a large FixedArray.
- MUST_USE_RESULT MaybeObject* AllocateRawFixedArray(int size_in_bytes);
-
static intptr_t ObjectSizeFor(intptr_t chunk_size) {
if (chunk_size <= (Page::kPageSize + Page::kObjectStartOffset)) return 0;
return chunk_size - Page::kPageSize - Page::kObjectStartOffset;
}
+ // Shared implementation of AllocateRaw, AllocateRawCode and
+ // AllocateRawFixedArray.
+ MUST_USE_RESULT MaybeObject* AllocateRaw(int object_size,
+ Executability executable);
+
// Available bytes for objects in this space.
inline intptr_t Available();
@@ -2425,11 +2405,6 @@ class LargeObjectSpace : public Space {
int page_count_; // number of chunks
intptr_t objects_size_; // size of objects
- // Shared implementation of AllocateRaw, AllocateRawCode and
- // AllocateRawFixedArray.
- MUST_USE_RESULT MaybeObject* AllocateRawInternal(int object_size,
- Executability executable);
-
friend class LargeObjectIterator;
public:
@@ -2457,7 +2432,7 @@ class LargeObjectIterator: public ObjectIterator {
// pointers to new space.
class PointerChunkIterator BASE_EMBEDDED {
public:
- inline PointerChunkIterator();
+ inline explicit PointerChunkIterator(Heap* heap_);
Erik Corry 2011/08/16 11:17:20 No underscore here.
// Return NULL when the iterator is done.
MemoryChunk* next() {
« src/mark-compact.cc ('K') | « src/serialize.cc ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698