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

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

Issue 14634007: Perform incremental marking step after free-list allocation and clean-up incremental marking start … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 | « no previous file | src/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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 inline bool IsStopped() { return state() == STOPPED; } 68 inline bool IsStopped() { return state() == STOPPED; }
69 69
70 INLINE(bool IsMarking()) { return state() >= MARKING; } 70 INLINE(bool IsMarking()) { return state() >= MARKING; }
71 71
72 inline bool IsMarkingIncomplete() { return state() == MARKING; } 72 inline bool IsMarkingIncomplete() { return state() == MARKING; }
73 73
74 inline bool IsComplete() { return state() == COMPLETE; } 74 inline bool IsComplete() { return state() == COMPLETE; }
75 75
76 bool WorthActivating(); 76 bool WorthActivating();
77 77
78 void Start(); 78 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION };
79
80 void Start(CompactionFlag flag = ALLOW_COMPACTION);
79 81
80 void Stop(); 82 void Stop();
81 83
82 void PrepareForScavenge(); 84 void PrepareForScavenge();
83 85
84 void UpdateMarkingDequeAfterScavenge(); 86 void UpdateMarkingDequeAfterScavenge();
85 87
86 void Hurry(); 88 void Hurry();
87 89
88 void Finalize(); 90 void Finalize();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 no_marking_scope_depth_--; 218 no_marking_scope_depth_--;
217 } 219 }
218 220
219 void UncommitMarkingDeque(); 221 void UncommitMarkingDeque();
220 222
221 private: 223 private:
222 int64_t SpaceLeftInOldSpace(); 224 int64_t SpaceLeftInOldSpace();
223 225
224 void ResetStepCounters(); 226 void ResetStepCounters();
225 227
226 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION };
227
228 void StartMarking(CompactionFlag flag); 228 void StartMarking(CompactionFlag flag);
229 229
230 void ActivateIncrementalWriteBarrier(PagedSpace* space); 230 void ActivateIncrementalWriteBarrier(PagedSpace* space);
231 static void ActivateIncrementalWriteBarrier(NewSpace* space); 231 static void ActivateIncrementalWriteBarrier(NewSpace* space);
232 void ActivateIncrementalWriteBarrier(); 232 void ActivateIncrementalWriteBarrier();
233 233
234 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space); 234 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space);
235 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); 235 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space);
236 void DeactivateIncrementalWriteBarrier(); 236 void DeactivateIncrementalWriteBarrier();
237 237
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 intptr_t write_barriers_invoked_since_last_step_; 273 intptr_t write_barriers_invoked_since_last_step_;
274 274
275 int no_marking_scope_depth_; 275 int no_marking_scope_depth_;
276 276
277 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 277 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
278 }; 278 };
279 279
280 } } // namespace v8::internal 280 } } // namespace v8::internal
281 281
282 #endif // V8_INCREMENTAL_MARKING_H_ 282 #endif // V8_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « no previous file | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698