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() {
"[IncrementalMarking] Start marking\n");
}
is_compacting_ = !FLAG_never_compact &&
heap_->mark_compact_collector()->StartCompaction(
MarkCompactCollector::INCREMENTAL_COMPACTION);
is_compacting_ =
!FLAG_never_compact && heap_->mark_compact_collector()->StartCompaction();
state_ = MARKING;
......
......@@ -274,8 +274,7 @@ static void TraceFragmentation(PagedSpace* space) {
static_cast<int>(free), static_cast<double>(free) * 100 / reserved);
}
bool MarkCompactCollector::StartCompaction(CompactionMode mode) {
bool MarkCompactCollector::StartCompaction() {
if (!compacting_) {
DCHECK(evacuation_candidates_.length() == 0);
......@@ -823,7 +822,7 @@ void MarkCompactCollector::Prepare() {
// Don't start compaction if we are in the middle of incremental
// marking cycle. We did not collect any slots.
if (!FLAG_never_compact && !was_marked_incrementally_) {
StartCompaction(NON_INCREMENTAL_COMPACTION);
StartCompaction();
}
PagedSpaces spaces(heap());
......
......@@ -431,9 +431,7 @@ class MarkCompactCollector {
// Performs a global garbage collection.
void CollectGarbage();
enum CompactionMode { INCREMENTAL_COMPACTION, NON_INCREMENTAL_COMPACTION };
bool StartCompaction(CompactionMode mode);
bool StartCompaction();
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