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

Unified Diff: src/incremental-marking.h

Issue 7247002: Estimate a (close) upper bound on the size of black-marked objects on each page. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Address review comments. Make compile on x64. 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
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/incremental-marking.h
diff --git a/src/incremental-marking.h b/src/incremental-marking.h
index 55fe7e7eba532acc0d48813eacc32c1a3639dc3e..20e28876149e9541e982e8081485c6c3d5a8deae 100644
--- a/src/incremental-marking.h
+++ b/src/incremental-marking.h
@@ -121,12 +121,13 @@ class IncrementalMarking {
inline void WhiteToGrey(HeapObject* obj, MarkBit mark_bit);
// Does white->black or grey->grey
- inline void MarkBlackOrKeepGrey(MarkBit mark_bit) {
+ inline bool MarkBlackOrKeepGrey(MarkBit mark_bit) {
ASSERT(!Marking::IsImpossible(mark_bit));
- if (mark_bit.Get()) return;
+ if (mark_bit.Get()) return false;
mark_bit.Set();
ASSERT(!Marking::IsWhite(mark_bit));
ASSERT(!Marking::IsImpossible(mark_bit));
+ return true;
}
inline int steps_count() {
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698