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

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

Issue 1279043002: [heap] Rename IncrementalMarking::Abort to Stop. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/incremental-marking.h ('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/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
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
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
OLDNEW
« no previous file with comments | « src/heap/incremental-marking.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698