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

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

Issue 2011563003: Revert of "[heap] Fine-grained JSArrayBuffer tracking" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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();
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
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
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