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(); |
550 | 551 |
551 // Marking bits are cleared by the sweeper. | 552 // Marking bits are cleared by the sweeper. |
552 #ifdef VERIFY_HEAP | 553 #ifdef VERIFY_HEAP |
553 if (FLAG_verify_heap) { | 554 if (FLAG_verify_heap) { |
554 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); | 555 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); |
555 } | 556 } |
556 #endif | 557 #endif |
557 | 558 |
558 heap_->CompletelyClearInstanceofCache(); | 559 heap_->CompletelyClearInstanceofCache(); |
559 heap_->isolate()->compilation_cache()->MarkCompactPrologue(); | 560 heap_->isolate()->compilation_cache()->MarkCompactPrologue(); |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { | 1246 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { |
1246 idle_marking_delay_counter_++; | 1247 idle_marking_delay_counter_++; |
1247 } | 1248 } |
1248 | 1249 |
1249 | 1250 |
1250 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1251 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
1251 idle_marking_delay_counter_ = 0; | 1252 idle_marking_delay_counter_ = 0; |
1252 } | 1253 } |
1253 } // namespace internal | 1254 } // namespace internal |
1254 } // namespace v8 | 1255 } // namespace v8 |
OLD | NEW |