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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 heap_->embedder_heap_tracer()->TracePrologue( | 531 heap_->embedder_heap_tracer()->TracePrologue( |
532 heap_->embedder_reachable_reference_reporter()); | 532 heap_->embedder_reachable_reference_reporter()); |
533 } | 533 } |
534 | 534 |
535 RecordWriteStub::Mode mode = is_compacting_ | 535 RecordWriteStub::Mode mode = is_compacting_ |
536 ? RecordWriteStub::INCREMENTAL_COMPACTION | 536 ? RecordWriteStub::INCREMENTAL_COMPACTION |
537 : RecordWriteStub::INCREMENTAL; | 537 : RecordWriteStub::INCREMENTAL; |
538 | 538 |
539 PatchIncrementalMarkingRecordWriteStubs(heap_, mode); | 539 PatchIncrementalMarkingRecordWriteStubs(heap_, mode); |
540 | 540 |
541 heap_->mark_compact_collector()->EnsureMarkingDequeIsCommittedAndInitialize( | 541 heap_->mark_compact_collector()->marking_deque()->StartUsing(); |
542 MarkCompactCollector::kMaxMarkingDequeSize); | |
543 | 542 |
544 ActivateIncrementalWriteBarrier(); | 543 ActivateIncrementalWriteBarrier(); |
545 | 544 |
546 // Marking bits are cleared by the sweeper. | 545 // Marking bits are cleared by the sweeper. |
547 #ifdef VERIFY_HEAP | 546 #ifdef VERIFY_HEAP |
548 if (FLAG_verify_heap) { | 547 if (FLAG_verify_heap) { |
549 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); | 548 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); |
550 } | 549 } |
551 #endif | 550 #endif |
552 | 551 |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 idle_marking_delay_counter_++; | 1192 idle_marking_delay_counter_++; |
1194 } | 1193 } |
1195 | 1194 |
1196 | 1195 |
1197 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1196 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
1198 idle_marking_delay_counter_ = 0; | 1197 idle_marking_delay_counter_ = 0; |
1199 } | 1198 } |
1200 | 1199 |
1201 } // namespace internal | 1200 } // namespace internal |
1202 } // namespace v8 | 1201 } // namespace v8 |
OLD | NEW |