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

Unified Diff: src/incremental-marking.h

Issue 7149016: Multi-page growing and shrinking new-space (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 side-by-side diff with in-line comments
Download patch
Index: src/incremental-marking.h
diff --git a/src/incremental-marking.h b/src/incremental-marking.h
index d9605b2f39271dff99d0894b557882a914faf530..8c25d639e6e4e0becc904655436846a281981ea8 100644
--- a/src/incremental-marking.h
+++ b/src/incremental-marking.h
@@ -38,7 +38,7 @@ namespace internal {
// TODO(gc) rename into IncrementalMarker after merge.
-class IncrementalMarking : public AllStatic {
+class IncrementalMarking {
public:
enum State {
STOPPED,
@@ -141,7 +141,7 @@ class IncrementalMarking : public AllStatic {
SetOldSpacePageFlags(chunk, IsMarking());
}
- inline void SetNewSpacePageFlags(MemoryChunk* chunk) {
+ inline void SetNewSpacePageFlags(NewSpacePage* chunk) {
SetNewSpacePageFlags(chunk, IsMarking());
}
@@ -159,20 +159,23 @@ class IncrementalMarking : public AllStatic {
}
static void ClearMarkbits(PagedSpace* space);
+ static void ClearMarkbits(NewSpace* space);
void ClearMarkbits();
#ifdef DEBUG
void VerifyMarkbitsAreClean();
static void VerifyMarkbitsAreClean(PagedSpace* space);
+ static void VerifyMarkbitsAreClean(NewSpace* space);
#endif
void StartMarking();
void DeactivateWriteBarrierForSpace(PagedSpace* space);
+ void DeactivateWriteBarrierForSpace(NewSpace* space);
void DeactivateWriteBarrier();
static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking);
- static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking);
+ static void SetNewSpacePageFlags(NewSpacePage* chunk, bool is_marking);
void EnsureMarkingDequeIsCommitted();

Powered by Google App Engine
This is Rietveld 408576698