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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 RecordWriteStub::Mode mode = is_compacting_ | 540 RecordWriteStub::Mode mode = is_compacting_ |
541 ? RecordWriteStub::INCREMENTAL_COMPACTION | 541 ? RecordWriteStub::INCREMENTAL_COMPACTION |
542 : RecordWriteStub::INCREMENTAL; | 542 : RecordWriteStub::INCREMENTAL; |
543 | 543 |
544 PatchIncrementalMarkingRecordWriteStubs(heap_, mode); | 544 PatchIncrementalMarkingRecordWriteStubs(heap_, mode); |
545 | 545 |
546 heap_->mark_compact_collector()->EnsureMarkingDequeIsCommittedAndInitialize( | 546 heap_->mark_compact_collector()->EnsureMarkingDequeIsCommittedAndInitialize( |
547 MarkCompactCollector::kMaxMarkingDequeSize); | 547 MarkCompactCollector::kMaxMarkingDequeSize); |
548 | 548 |
549 ActivateIncrementalWriteBarrier(); | 549 ActivateIncrementalWriteBarrier(); |
550 heap_->array_buffer_tracker()->ResetTrackersInOldSpace(); | |
551 | 550 |
552 // Marking bits are cleared by the sweeper. | 551 // Marking bits are cleared by the sweeper. |
553 #ifdef VERIFY_HEAP | 552 #ifdef VERIFY_HEAP |
554 if (FLAG_verify_heap) { | 553 if (FLAG_verify_heap) { |
555 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); | 554 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); |
556 } | 555 } |
557 #endif | 556 #endif |
558 | 557 |
559 heap_->CompletelyClearInstanceofCache(); | 558 heap_->CompletelyClearInstanceofCache(); |
560 heap_->isolate()->compilation_cache()->MarkCompactPrologue(); | 559 heap_->isolate()->compilation_cache()->MarkCompactPrologue(); |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { | 1245 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { |
1247 idle_marking_delay_counter_++; | 1246 idle_marking_delay_counter_++; |
1248 } | 1247 } |
1249 | 1248 |
1250 | 1249 |
1251 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1250 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
1252 idle_marking_delay_counter_ = 0; | 1251 idle_marking_delay_counter_ = 0; |
1253 } | 1252 } |
1254 } // namespace internal | 1253 } // namespace internal |
1255 } // namespace v8 | 1254 } // namespace v8 |
OLD | NEW |