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

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

Issue 568023002: Use the regular start incremental marking strategy in the idle notification. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/incremental-marking.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 #ifndef V8_HEAP_INCREMENTAL_MARKING_H_ 5 #ifndef V8_HEAP_INCREMENTAL_MARKING_H_
6 #define V8_HEAP_INCREMENTAL_MARKING_H_ 6 #define V8_HEAP_INCREMENTAL_MARKING_H_
7 7
8 8
9 #include "src/execution.h" 9 #include "src/execution.h"
10 #include "src/heap/mark-compact.h" 10 #include "src/heap/mark-compact.h"
(...skipping 26 matching lines...) Expand all
37 inline bool IsStopped() { return state() == STOPPED; } 37 inline bool IsStopped() { return state() == STOPPED; }
38 38
39 INLINE(bool IsMarking()) { return state() >= MARKING; } 39 INLINE(bool IsMarking()) { return state() >= MARKING; }
40 40
41 inline bool IsMarkingIncomplete() { return state() == MARKING; } 41 inline bool IsMarkingIncomplete() { return state() == MARKING; }
42 42
43 inline bool IsComplete() { return state() == COMPLETE; } 43 inline bool IsComplete() { return state() == COMPLETE; }
44 44
45 bool WorthActivating(); 45 bool WorthActivating();
46 46
47 bool ShouldActivate();
48
47 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION }; 49 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION };
48 50
49 void Start(CompactionFlag flag = ALLOW_COMPACTION); 51 void Start(CompactionFlag flag = ALLOW_COMPACTION);
50 52
51 void Stop(); 53 void Stop();
52 54
53 void PrepareForScavenge(); 55 void PrepareForScavenge();
54 56
55 void UpdateMarkingDequeAfterScavenge(); 57 void UpdateMarkingDequeAfterScavenge();
56 58
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 int no_marking_scope_depth_; 217 int no_marking_scope_depth_;
216 218
217 int unscanned_bytes_of_large_object_; 219 int unscanned_bytes_of_large_object_;
218 220
219 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 221 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
220 }; 222 };
221 } 223 }
222 } // namespace v8::internal 224 } // namespace v8::internal
223 225
224 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 226 #endif // V8_HEAP_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698