| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 return true; | 272 return true; |
| 273 } | 273 } |
| 274 return false; | 274 return false; |
| 275 } | 275 } |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 void IncrementalMarking::IterateBlackObject(HeapObject* object) { | 278 void IncrementalMarking::IterateBlackObject(HeapObject* object) { |
| 279 if (IsMarking() && Marking::IsBlack(Marking::MarkBitFrom(object))) { | 279 if (IsMarking() && Marking::IsBlack(Marking::MarkBitFrom(object))) { |
| 280 Page* page = Page::FromAddress(object->address()); | 280 Page* page = Page::FromAddress(object->address()); |
| 281 if ((page->owner() != nullptr) && (page->owner()->identity() == LO_SPACE)) { | 281 if ((page->owner() != nullptr) && (page->owner()->identity() == LO_SPACE)) { |
| 282 // IterateBlackObject requires us to visit the hole object. | 282 // IterateBlackObject requires us to visit the whole object. |
| 283 page->ResetProgressBar(); | 283 page->ResetProgressBar(); |
| 284 } | 284 } |
| 285 IncrementalMarkingMarkingVisitor::IterateBody(object->map(), object); | 285 IncrementalMarkingMarkingVisitor::IterateBody(object->map(), object); |
| 286 } | 286 } |
| 287 } | 287 } |
| 288 | 288 |
| 289 class IncrementalMarkingRootMarkingVisitor : public ObjectVisitor { | 289 class IncrementalMarkingRootMarkingVisitor : public ObjectVisitor { |
| 290 public: | 290 public: |
| 291 explicit IncrementalMarkingRootMarkingVisitor( | 291 explicit IncrementalMarkingRootMarkingVisitor( |
| 292 IncrementalMarking* incremental_marking) | 292 IncrementalMarking* incremental_marking) |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1245 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { | 1245 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { |
| 1246 idle_marking_delay_counter_++; | 1246 idle_marking_delay_counter_++; |
| 1247 } | 1247 } |
| 1248 | 1248 |
| 1249 | 1249 |
| 1250 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1250 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
| 1251 idle_marking_delay_counter_ = 0; | 1251 idle_marking_delay_counter_ = 0; |
| 1252 } | 1252 } |
| 1253 } // namespace internal | 1253 } // namespace internal |
| 1254 } // namespace v8 | 1254 } // namespace v8 |
| OLD | NEW |