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

Unified Diff: src/spaces-inl.h

Issue 5736008: Provide baseline for experimental GC implementation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
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
« src/globals.h ('K') | « src/spaces.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces-inl.h
diff --git a/src/spaces-inl.h b/src/spaces-inl.h
index aaca9e45caa49617ac9d35adf7e6f5f8df17bb81..17a381798ccd38c21c94d9377ebd9bcd9db74b8f 100644
--- a/src/spaces-inl.h
+++ b/src/spaces-inl.h
@@ -114,12 +114,18 @@ Address Page::CachedAllocationWatermark() {
uint32_t Page::GetRegionMarks() {
+#ifdef ENABLE_CARDMARKING_WRITE_BARRIER
return dirty_regions_;
+#else
+ return kAllRegionsDirtyMarks;
+#endif
}
void Page::SetRegionMarks(uint32_t marks) {
+#ifdef ENABLE_CARDMARKING_WRITE_BARRIER
dirty_regions_ = marks;
+#endif
}
« src/globals.h ('K') | « src/spaces.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698