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

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

Issue 1275573002: Fix idle step marking after 9d7ebc. (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') | 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"
11 #include "src/conversions.h" 11 #include "src/conversions.h"
12 #include "src/heap/objects-visiting.h" 12 #include "src/heap/objects-visiting.h"
13 #include "src/heap/objects-visiting-inl.h" 13 #include "src/heap/objects-visiting-inl.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 17
18 18
19 IncrementalMarking::StepActions IncrementalMarking::NoForcedStepActions() { 19 IncrementalMarking::StepActions IncrementalMarking::IdleStepActions() {
20 return StepActions(IncrementalMarking::NO_GC_VIA_STACK_GUARD, 20 return StepActions(IncrementalMarking::NO_GC_VIA_STACK_GUARD,
21 IncrementalMarking::DO_NOT_FORCE_MARKING, 21 IncrementalMarking::FORCE_MARKING,
22 IncrementalMarking::DO_NOT_FORCE_COMPLETION); 22 IncrementalMarking::DO_NOT_FORCE_COMPLETION);
23 } 23 }
24 24
25 25
26 IncrementalMarking::IncrementalMarking(Heap* heap) 26 IncrementalMarking::IncrementalMarking(Heap* heap)
27 : heap_(heap), 27 : heap_(heap),
28 state_(STOPPED), 28 state_(STOPPED),
29 is_compacting_(false), 29 is_compacting_(false),
30 steps_count_(0), 30 steps_count_(0),
31 old_generation_space_available_at_start_of_incremental_(0), 31 old_generation_space_available_at_start_of_incremental_(0),
(...skipping 993 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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698