| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/heap/incremental-marking.h" | 7 #include "src/heap/incremental-marking.h" |
| 8 | 8 |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/compilation-cache.h" | 10 #include "src/compilation-cache.h" |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 if (Marking::IsGrey(mark_bit)) { | 737 if (Marking::IsGrey(mark_bit)) { |
| 738 Marking::GreyToBlack(mark_bit); | 738 Marking::GreyToBlack(mark_bit); |
| 739 MemoryChunk::IncrementLiveBytesFromGC(cache, cache->Size()); | 739 MemoryChunk::IncrementLiveBytesFromGC(cache, cache->Size()); |
| 740 } | 740 } |
| 741 } | 741 } |
| 742 context = Context::cast(context)->get(Context::NEXT_CONTEXT_LINK); | 742 context = Context::cast(context)->get(Context::NEXT_CONTEXT_LINK); |
| 743 } | 743 } |
| 744 } | 744 } |
| 745 | 745 |
| 746 | 746 |
| 747 void IncrementalMarking::Abort() { | 747 void IncrementalMarking::Stop() { |
| 748 if (IsStopped()) return; | 748 if (IsStopped()) return; |
| 749 if (FLAG_trace_incremental_marking) { | 749 if (FLAG_trace_incremental_marking) { |
| 750 PrintF("[IncrementalMarking] Aborting.\n"); | 750 PrintF("[IncrementalMarking] Stopping.\n"); |
| 751 } | 751 } |
| 752 heap_->new_space()->LowerInlineAllocationLimit(0); | 752 heap_->new_space()->LowerInlineAllocationLimit(0); |
| 753 IncrementalMarking::set_should_hurry(false); | 753 IncrementalMarking::set_should_hurry(false); |
| 754 ResetStepCounters(); | 754 ResetStepCounters(); |
| 755 if (IsMarking()) { | 755 if (IsMarking()) { |
| 756 PatchIncrementalMarkingRecordWriteStubs(heap_, | 756 PatchIncrementalMarkingRecordWriteStubs(heap_, |
| 757 RecordWriteStub::STORE_BUFFER_ONLY); | 757 RecordWriteStub::STORE_BUFFER_ONLY); |
| 758 DeactivateIncrementalWriteBarrier(); | 758 DeactivateIncrementalWriteBarrier(); |
| 759 | 759 |
| 760 if (is_compacting_) { | 760 if (is_compacting_) { |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { | 1025 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { |
| 1026 idle_marking_delay_counter_++; | 1026 idle_marking_delay_counter_++; |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 | 1029 |
| 1030 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1030 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
| 1031 idle_marking_delay_counter_ = 0; | 1031 idle_marking_delay_counter_ = 0; |
| 1032 } | 1032 } |
| 1033 } // namespace internal | 1033 } // namespace internal |
| 1034 } // namespace v8 | 1034 } // namespace v8 |
| OLD | NEW |