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

Unified Diff: src/spaces.cc

Issue 6928010: Make the marking stack into a deque (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 8 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/spaces.cc
===================================================================
--- src/spaces.cc (revision 7781)
+++ src/spaces.cc (working copy)
@@ -398,6 +398,7 @@
NOT_EXECUTABLE,
heap->new_space());
chunk->initialize_scan_on_scavenge(true);
+ chunk->set_in_new_space(true);
return static_cast<NewSpacePage*>(chunk);
}
@@ -417,7 +418,9 @@
chunk->set_owner(owner);
chunk->markbits()->Clear();
chunk->initialize_scan_on_scavenge(false);
+ chunk->set_in_new_space(false);
ASSERT(OFFSET_OF(MemoryChunk, scan_on_scavenge_) == kScanOnScavengeOffset);
+ ASSERT(OFFSET_OF(MemoryChunk, in_new_space_) == kInNewSpaceOffset);
ASSERT(OFFSET_OF(MemoryChunk, flags_) == kFlagsOffset);
if (executable == EXECUTABLE) chunk->SetFlag(IS_EXECUTABLE);
« src/spaces.h ('K') | « src/spaces.h ('k') | test/cctest/test-mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698