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

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

Issue 809303004: just a typo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 12 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') | no next file » | 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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 allocated_ += allocated_bytes; 884 allocated_ += allocated_bytes;
885 885
886 if (marking == DO_NOT_FORCE_MARKING && allocated_ < kAllocatedThreshold && 886 if (marking == DO_NOT_FORCE_MARKING && allocated_ < kAllocatedThreshold &&
887 write_barriers_invoked_since_last_step_ < 887 write_barriers_invoked_since_last_step_ <
888 kWriteBarriersInvokedThreshold) { 888 kWriteBarriersInvokedThreshold) {
889 return 0; 889 return 0;
890 } 890 }
891 891
892 // If an idle notification happened recently, we delay marking steps. 892 // If an idle notification happened recently, we delay marking steps.
893 if (marking == DO_NOT_FORCE_MARKING && 893 if (marking == DO_NOT_FORCE_MARKING &&
894 heap_->RecentIdleNotifcationHappened()) { 894 heap_->RecentIdleNotificationHappened()) {
895 return 0; 895 return 0;
896 } 896 }
897 897
898 if (state_ == MARKING && no_marking_scope_depth_ > 0) return 0; 898 if (state_ == MARKING && no_marking_scope_depth_ > 0) return 0;
899 899
900 intptr_t bytes_processed = 0; 900 intptr_t bytes_processed = 0;
901 { 901 {
902 HistogramTimerScope incremental_marking_scope( 902 HistogramTimerScope incremental_marking_scope(
903 heap_->isolate()->counters()->gc_incremental_marking()); 903 heap_->isolate()->counters()->gc_incremental_marking());
904 double start = base::OS::TimeCurrentMillis(); 904 double start = base::OS::TimeCurrentMillis();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { 984 void IncrementalMarking::IncrementIdleMarkingDelayCounter() {
985 idle_marking_delay_counter_++; 985 idle_marking_delay_counter_++;
986 } 986 }
987 987
988 988
989 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 989 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
990 idle_marking_delay_counter_ = 0; 990 idle_marking_delay_counter_ = 0;
991 } 991 }
992 } 992 }
993 } // namespace v8::internal 993 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698