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

Unified Diff: src/heap.h

Issue 6824078: Move most of the incremental marking write barrier to generated code. (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
« no previous file with comments | « src/assembler.cc ('k') | src/heap.cc » ('j') | src/ia32/code-stubs-ia32.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
===================================================================
--- src/heap.h (revision 7619)
+++ src/heap.h (working copy)
@@ -807,6 +807,14 @@
// ensure correct callback for weak global handles.
static void PerformScavenge();
+ static inline void increment_scan_on_scavenge_pages() {
+ scan_on_scavenge_pages_++;
+ }
+
+ static inline void decrement_scan_on_scavenge_pages() {
+ scan_on_scavenge_pages_--;
+ }
+
#ifdef DEBUG
// Utility used with flag gc-greedy.
static void GarbageCollectionGreedyCheck();
@@ -1214,6 +1222,8 @@
// For keeping track of context disposals.
static int contexts_disposed_;
+ static int scan_on_scavenge_pages_;
+
#if defined(V8_TARGET_ARCH_X64)
static const int kMaxObjectSizeInNewSpace = 1024*KB;
#else
« no previous file with comments | « src/assembler.cc ('k') | src/heap.cc » ('j') | src/ia32/code-stubs-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698