Commit ceda07d5 authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Remove unused CompactionMode flag

R=ulan@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2493173003
Cr-Commit-Position: refs/heads/master@{#40925}
parent 6d84f2d9
...@@ -519,9 +519,8 @@ void IncrementalMarking::StartMarking() { ...@@ -519,9 +519,8 @@ void IncrementalMarking::StartMarking() {
"[IncrementalMarking] Start marking\n"); "[IncrementalMarking] Start marking\n");
} }
is_compacting_ = !FLAG_never_compact && is_compacting_ =
heap_->mark_compact_collector()->StartCompaction( !FLAG_never_compact && heap_->mark_compact_collector()->StartCompaction();
MarkCompactCollector::INCREMENTAL_COMPACTION);
state_ = MARKING; state_ = MARKING;
......
...@@ -274,8 +274,7 @@ static void TraceFragmentation(PagedSpace* space) { ...@@ -274,8 +274,7 @@ static void TraceFragmentation(PagedSpace* space) {
static_cast<int>(free), static_cast<double>(free) * 100 / reserved); static_cast<int>(free), static_cast<double>(free) * 100 / reserved);
} }
bool MarkCompactCollector::StartCompaction() {
bool MarkCompactCollector::StartCompaction(CompactionMode mode) {
if (!compacting_) { if (!compacting_) {
DCHECK(evacuation_candidates_.length() == 0); DCHECK(evacuation_candidates_.length() == 0);
...@@ -823,7 +822,7 @@ void MarkCompactCollector::Prepare() { ...@@ -823,7 +822,7 @@ void MarkCompactCollector::Prepare() {
// Don't start compaction if we are in the middle of incremental // Don't start compaction if we are in the middle of incremental
// marking cycle. We did not collect any slots. // marking cycle. We did not collect any slots.
if (!FLAG_never_compact && !was_marked_incrementally_) { if (!FLAG_never_compact && !was_marked_incrementally_) {
StartCompaction(NON_INCREMENTAL_COMPACTION); StartCompaction();
} }
PagedSpaces spaces(heap()); PagedSpaces spaces(heap());
......
...@@ -431,9 +431,7 @@ class MarkCompactCollector { ...@@ -431,9 +431,7 @@ class MarkCompactCollector {
// Performs a global garbage collection. // Performs a global garbage collection.
void CollectGarbage(); void CollectGarbage();
enum CompactionMode { INCREMENTAL_COMPACTION, NON_INCREMENTAL_COMPACTION }; bool StartCompaction();
bool StartCompaction(CompactionMode mode);
void AbortCompaction(); void AbortCompaction();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment