Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: src/heap/incremental-marking.cc

Issue 1964023002: [heap] Fine-grained JSArrayBuffer tracking (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase again Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698