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

Unified Diff: src/spaces-inl.h

Issue 5798002: Provide baseline for new GC infrastructure. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years 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-inl.h
diff --git a/src/spaces-inl.h b/src/spaces-inl.h
index aaca9e45caa49617ac9d35adf7e6f5f8df17bb81..1d314ed9283475c1e8e1b21d91a7645b94e0a229 100644
--- a/src/spaces-inl.h
+++ b/src/spaces-inl.h
@@ -114,12 +114,12 @@ Address Page::CachedAllocationWatermark() {
uint32_t Page::GetRegionMarks() {
- return dirty_regions_;
+ return FLAG_new_gc ? kAllRegionsDirtyMarks : dirty_regions_;
}
void Page::SetRegionMarks(uint32_t marks) {
- dirty_regions_ = marks;
+ if (!FLAG_new_gc) dirty_regions_ = marks;
}
« src/mark-compact.cc ('K') | « src/spaces.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698