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

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

Issue 6745033: On store buffer overflow we mark individidual pages for... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 STOPPED, 43 STOPPED,
44 MARKING, 44 MARKING,
45 COMPLETE 45 COMPLETE
46 }; 46 };
47 47
48 static State state() { 48 static State state() {
49 ASSERT(state_ == STOPPED || FLAG_incremental_marking); 49 ASSERT(state_ == STOPPED || FLAG_incremental_marking);
50 return state_; 50 return state_;
51 } 51 }
52 52
53 static bool should_hurry() { return should_hurry_; }
54 static void set_should_hurry(bool val) { should_hurry_ = val; }
55
53 static inline bool IsStopped() { return state() == STOPPED; } 56 static inline bool IsStopped() { return state() == STOPPED; }
54 57
55 static bool WorthActivating(); 58 static bool WorthActivating();
56 59
57 static void Start(); 60 static void Start();
58 61
59 static void Stop(); 62 static void Stop();
60 63
61 static void PrepareForScavenge(); 64 static void PrepareForScavenge();
62 65
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 steps_count_ = 0; 222 steps_count_ = 0;
220 steps_took_ = 0; 223 steps_took_ = 0;
221 } 224 }
222 225
223 226
224 static State state_; 227 static State state_;
225 static MarkingStack marking_stack_; 228 static MarkingStack marking_stack_;
226 229
227 static int steps_count_; 230 static int steps_count_;
228 static double steps_took_; 231 static double steps_took_;
229 232 static bool should_hurry_;
230 }; 233 };
231 234
232 } } // namespace v8::internal 235 } } // namespace v8::internal
233 236
234 #endif // V8_INCREMENTAL_MARKING_H_ 237 #endif // V8_INCREMENTAL_MARKING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698