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 2277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2288 | 2288 |
2289 int number_idle_notifications_; | 2289 int number_idle_notifications_; |
2290 unsigned int last_idle_notification_gc_count_; | 2290 unsigned int last_idle_notification_gc_count_; |
2291 bool last_idle_notification_gc_count_init_; | 2291 bool last_idle_notification_gc_count_init_; |
2292 | 2292 |
2293 int mark_sweeps_since_idle_round_started_; | 2293 int mark_sweeps_since_idle_round_started_; |
2294 int ms_count_at_last_idle_notification_; | 2294 int ms_count_at_last_idle_notification_; |
2295 unsigned int gc_count_at_last_idle_gc_; | 2295 unsigned int gc_count_at_last_idle_gc_; |
2296 int scavenges_since_last_idle_round_; | 2296 int scavenges_since_last_idle_round_; |
2297 | 2297 |
2298 // If the --deopt_every_n_garbage_collections flag is set to a positive value, | |
2299 // this variable holds the number of garbage collections since the last | |
2300 // deoptimization triggered by garbage collection. | |
2301 int gcs_since_last_deopt_; | |
2302 | |
Michael Starzinger
2013/04/23 15:15:23
nit: Drop one of the two empty newlines.
| |
2303 | |
2298 #ifdef VERIFY_HEAP | 2304 #ifdef VERIFY_HEAP |
2299 int no_weak_embedded_maps_verification_scope_depth_; | 2305 int no_weak_embedded_maps_verification_scope_depth_; |
2300 #endif | 2306 #endif |
2301 | 2307 |
2302 static const int kMaxMarkSweepsInIdleRound = 7; | 2308 static const int kMaxMarkSweepsInIdleRound = 7; |
2303 static const int kIdleScavengeThreshold = 5; | 2309 static const int kIdleScavengeThreshold = 5; |
2304 | 2310 |
2305 // Shared state read by the scavenge collector and set by ScavengeObject. | 2311 // Shared state read by the scavenge collector and set by ScavengeObject. |
2306 PromotionQueue promotion_queue_; | 2312 PromotionQueue promotion_queue_; |
2307 | 2313 |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3015 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3021 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
3016 | 3022 |
3017 private: | 3023 private: |
3018 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3024 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3019 }; | 3025 }; |
3020 #endif // DEBUG | 3026 #endif // DEBUG |
3021 | 3027 |
3022 } } // namespace v8::internal | 3028 } } // namespace v8::internal |
3023 | 3029 |
3024 #endif // V8_HEAP_H_ | 3030 #endif // V8_HEAP_H_ |
OLD | NEW |