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

Unified Diff: src/spaces.h

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
« src/mark-compact.h ('K') | « src/mark-compact.cc ('k') | src/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.h
===================================================================
--- src/spaces.h (revision 7781)
+++ src/spaces.h (working copy)
@@ -340,8 +340,10 @@
}
bool scan_on_scavenge() { return scan_on_scavenge_; }
+ bool in_new_space() { return in_new_space_; }
Vyacheslav Egorov (Chromium) 2011/05/04 14:46:52 please revert these unrelated changes.
void initialize_scan_on_scavenge(bool scan) { scan_on_scavenge_ = scan; }
inline void set_scan_on_scavenge(bool scan);
+ void set_in_new_space(bool in_new_space) { in_new_space_ = in_new_space; }
int store_buffer_counter() { return store_buffer_counter_; }
void set_store_buffer_counter(int counter) {
@@ -449,6 +451,7 @@
static const int kFlagsOffset = kPointerSize * 3;
static const int kScanOnScavengeOffset = kPointerSize * 6;
+ static const int kInNewSpaceOffset = kPointerSize * 6 + 1;
protected:
MemoryChunk* next_chunk_;
@@ -463,7 +466,8 @@
// This flag indicates that the page is not being tracked by the store buffer.
// At any point where we have to iterate over pointers to new space, we must
// search this page for pointers to new space.
- bool scan_on_scavenge_;
+ byte scan_on_scavenge_;
+ byte in_new_space_;
// Used by the store buffer to keep track of which pages to mark scan-on-
// scavenge.
int store_buffer_counter_;
« src/mark-compact.h ('K') | « src/mark-compact.cc ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698