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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 heap()->isolate()->PrintWithTimestamp( | 512 heap()->isolate()->PrintWithTimestamp( |
513 "[IncrementalMarking] Start delayed - serializer\n"); | 513 "[IncrementalMarking] Start delayed - serializer\n"); |
514 } | 514 } |
515 return; | 515 return; |
516 } | 516 } |
517 if (FLAG_trace_incremental_marking) { | 517 if (FLAG_trace_incremental_marking) { |
518 heap()->isolate()->PrintWithTimestamp( | 518 heap()->isolate()->PrintWithTimestamp( |
519 "[IncrementalMarking] Start marking\n"); | 519 "[IncrementalMarking] Start marking\n"); |
520 } | 520 } |
521 | 521 |
522 is_compacting_ = !FLAG_never_compact && | 522 is_compacting_ = |
523 heap_->mark_compact_collector()->StartCompaction( | 523 !FLAG_never_compact && heap_->mark_compact_collector()->StartCompaction(); |
524 MarkCompactCollector::INCREMENTAL_COMPACTION); | |
525 | 524 |
526 state_ = MARKING; | 525 state_ = MARKING; |
527 | 526 |
528 if (heap_->UsingEmbedderHeapTracer()) { | 527 if (heap_->UsingEmbedderHeapTracer()) { |
529 TRACE_GC(heap()->tracer(), | 528 TRACE_GC(heap()->tracer(), |
530 GCTracer::Scope::MC_INCREMENTAL_WRAPPER_PROLOGUE); | 529 GCTracer::Scope::MC_INCREMENTAL_WRAPPER_PROLOGUE); |
531 heap_->embedder_heap_tracer()->TracePrologue(); | 530 heap_->embedder_heap_tracer()->TracePrologue(); |
532 } | 531 } |
533 | 532 |
534 RecordWriteStub::Mode mode = is_compacting_ | 533 RecordWriteStub::Mode mode = is_compacting_ |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 idle_marking_delay_counter_++; | 1190 idle_marking_delay_counter_++; |
1192 } | 1191 } |
1193 | 1192 |
1194 | 1193 |
1195 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1194 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
1196 idle_marking_delay_counter_ = 0; | 1195 idle_marking_delay_counter_ = 0; |
1197 } | 1196 } |
1198 | 1197 |
1199 } // namespace internal | 1198 } // namespace internal |
1200 } // namespace v8 | 1199 } // namespace v8 |
OLD | NEW |