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

Side by Side Diff: src/heap/incremental-marking.cc

Issue 1871423002: [heap] Refactor Sweeper (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comments round 2 Created 4 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 unified diff | Download patch
« no previous file with comments | « src/frames.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/heap/incremental-marking.h" 5 #include "src/heap/incremental-marking.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compilation-cache.h" 8 #include "src/compilation-cache.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/heap/gc-idle-time-handler.h" 10 #include "src/heap/gc-idle-time-handler.h"
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 PrintIsolate(heap()->isolate(), "Marking speed increased to %d\n", 1103 PrintIsolate(heap()->isolate(), "Marking speed increased to %d\n",
1104 marking_speed_); 1104 marking_speed_);
1105 } 1105 }
1106 } 1106 }
1107 } 1107 }
1108 } 1108 }
1109 1109
1110 void IncrementalMarking::FinalizeSweeping() { 1110 void IncrementalMarking::FinalizeSweeping() {
1111 DCHECK(state_ == SWEEPING); 1111 DCHECK(state_ == SWEEPING);
1112 if (heap_->mark_compact_collector()->sweeping_in_progress() && 1112 if (heap_->mark_compact_collector()->sweeping_in_progress() &&
1113 (heap_->mark_compact_collector()->IsSweepingCompleted() || 1113 (heap_->mark_compact_collector()->sweeper().IsSweepingCompleted() ||
1114 !FLAG_concurrent_sweeping)) { 1114 !FLAG_concurrent_sweeping)) {
1115 heap_->mark_compact_collector()->EnsureSweepingCompleted(); 1115 heap_->mark_compact_collector()->EnsureSweepingCompleted();
1116 } 1116 }
1117 if (!heap_->mark_compact_collector()->sweeping_in_progress()) { 1117 if (!heap_->mark_compact_collector()->sweeping_in_progress()) {
1118 bytes_scanned_ = 0; 1118 bytes_scanned_ = 0;
1119 StartMarking(); 1119 StartMarking();
1120 } 1120 }
1121 } 1121 }
1122 1122
1123 intptr_t IncrementalMarking::Step(intptr_t allocated_bytes, 1123 intptr_t IncrementalMarking::Step(intptr_t allocated_bytes,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { 1232 void IncrementalMarking::IncrementIdleMarkingDelayCounter() {
1233 idle_marking_delay_counter_++; 1233 idle_marking_delay_counter_++;
1234 } 1234 }
1235 1235
1236 1236
1237 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1237 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1238 idle_marking_delay_counter_ = 0; 1238 idle_marking_delay_counter_ = 0;
1239 } 1239 }
1240 } // namespace internal 1240 } // namespace internal
1241 } // namespace v8 1241 } // namespace v8
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698