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

Unified Diff: src/heap/incremental-marking.h

Issue 1420423009: [heap] Black allocation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
Index: src/heap/incremental-marking.h
diff --git a/src/heap/incremental-marking.h b/src/heap/incremental-marking.h
index 7a53462f7c69c4b4a65304eef513be9b9a9ae8e3..f004b09d34c9871c2c695bbe25966fdc33afce9c 100644
--- a/src/heap/incremental-marking.h
+++ b/src/heap/incremental-marking.h
@@ -210,7 +210,9 @@ class IncrementalMarking {
bool IsIdleMarkingDelayCounterLimitReached();
- INLINE(static void MarkObject(Heap* heap, HeapObject* object));
+ static void MarkObject(Heap* heap, HeapObject* object);
+
+ void IterateBlackCode(Code* code);
Heap* heap() const { return heap_; }
@@ -218,6 +220,8 @@ class IncrementalMarking {
return &incremental_marking_job_;
}
+ bool black_allocation() { return black_allocation_; }
+
private:
class Observer : public InlineAllocationObserver {
public:
@@ -242,6 +246,9 @@ class IncrementalMarking {
void StartMarking();
+ void StartBlackAllocation();
+ void FinishBlackAllocation();
+
void MarkRoots();
void MarkObjectGroups();
void ProcessWeakCells();
@@ -294,6 +301,8 @@ class IncrementalMarking {
bool was_activated_;
+ bool black_allocation_;
+
bool finalize_marking_completed_;
int incremental_marking_finalization_rounds_;

Powered by Google App Engine
This is Rietveld 408576698