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

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

Issue 2474163002: [api] Remove EmbedderReachableReferenceReporter (Closed)
Patch Set: Remove old api Created 4 years, 1 month 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 521
522 is_compacting_ = !FLAG_never_compact && 522 is_compacting_ = !FLAG_never_compact &&
523 heap_->mark_compact_collector()->StartCompaction( 523 heap_->mark_compact_collector()->StartCompaction(
524 MarkCompactCollector::INCREMENTAL_COMPACTION); 524 MarkCompactCollector::INCREMENTAL_COMPACTION);
525 525
526 state_ = MARKING; 526 state_ = MARKING;
527 527
528 if (heap_->UsingEmbedderHeapTracer()) { 528 if (heap_->UsingEmbedderHeapTracer()) {
529 TRACE_GC(heap()->tracer(), 529 TRACE_GC(heap()->tracer(),
530 GCTracer::Scope::MC_INCREMENTAL_WRAPPER_PROLOGUE); 530 GCTracer::Scope::MC_INCREMENTAL_WRAPPER_PROLOGUE);
531 heap_->embedder_heap_tracer()->TracePrologue( 531 heap_->embedder_heap_tracer()->TracePrologue();
532 heap_->embedder_reachable_reference_reporter());
533 } 532 }
534 533
535 RecordWriteStub::Mode mode = is_compacting_ 534 RecordWriteStub::Mode mode = is_compacting_
536 ? RecordWriteStub::INCREMENTAL_COMPACTION 535 ? RecordWriteStub::INCREMENTAL_COMPACTION
537 : RecordWriteStub::INCREMENTAL; 536 : RecordWriteStub::INCREMENTAL;
538 537
539 PatchIncrementalMarkingRecordWriteStubs(heap_, mode); 538 PatchIncrementalMarkingRecordWriteStubs(heap_, mode);
540 539
541 heap_->mark_compact_collector()->marking_deque()->StartUsing(); 540 heap_->mark_compact_collector()->marking_deque()->StartUsing();
542 541
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 idle_marking_delay_counter_++; 1191 idle_marking_delay_counter_++;
1193 } 1192 }
1194 1193
1195 1194
1196 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1195 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1197 idle_marking_delay_counter_ = 0; 1196 idle_marking_delay_counter_ = 0;
1198 } 1197 }
1199 1198
1200 } // namespace internal 1199 } // namespace internal
1201 } // namespace v8 1200 } // 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