OLD | NEW |
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 MarkingDeque* marking_deque() { return &marking_deque_; } | 208 MarkingDeque* marking_deque() { return &marking_deque_; } |
209 | 209 |
210 bool IsCompacting() { return IsMarking() && is_compacting_; } | 210 bool IsCompacting() { return IsMarking() && is_compacting_; } |
211 | 211 |
212 void ActivateGeneratedStub(Code* stub); | 212 void ActivateGeneratedStub(Code* stub); |
213 | 213 |
214 void NotifyOfHighPromotionRate() { | 214 void NotifyOfHighPromotionRate() { |
215 if (IsMarking()) { | 215 if (IsMarking()) { |
216 if (allocation_marking_factor_ < kFastMarking) { | 216 if (allocation_marking_factor_ < kFastMarking) { |
217 if (FLAG_trace_gc) { | 217 if (FLAG_trace_gc) { |
218 PrintF("Increasing marking speed to %d due to high promotion rate\n", | 218 PrintPID("Increasing marking speed to %d " |
219 static_cast<int>(kFastMarking)); | 219 "due to high promotion rate\n", |
| 220 static_cast<int>(kFastMarking)); |
220 } | 221 } |
221 allocation_marking_factor_ = kFastMarking; | 222 allocation_marking_factor_ = kFastMarking; |
222 } | 223 } |
223 } | 224 } |
224 } | 225 } |
225 | 226 |
226 void EnterNoMarkingScope() { | 227 void EnterNoMarkingScope() { |
227 no_marking_scope_depth_++; | 228 no_marking_scope_depth_++; |
228 } | 229 } |
229 | 230 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 intptr_t allocated_; | 285 intptr_t allocated_; |
285 | 286 |
286 int no_marking_scope_depth_; | 287 int no_marking_scope_depth_; |
287 | 288 |
288 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 289 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
289 }; | 290 }; |
290 | 291 |
291 } } // namespace v8::internal | 292 } } // namespace v8::internal |
292 | 293 |
293 #endif // V8_INCREMENTAL_MARKING_H_ | 294 #endif // V8_INCREMENTAL_MARKING_H_ |
OLD | NEW |