| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|