| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 store_buffer_(this), | 148 store_buffer_(this), |
| 149 marking_(this), | 149 marking_(this), |
| 150 incremental_marking_(this), | 150 incremental_marking_(this), |
| 151 number_idle_notifications_(0), | 151 number_idle_notifications_(0), |
| 152 last_idle_notification_gc_count_(0), | 152 last_idle_notification_gc_count_(0), |
| 153 last_idle_notification_gc_count_init_(false), | 153 last_idle_notification_gc_count_init_(false), |
| 154 mark_sweeps_since_idle_round_started_(0), | 154 mark_sweeps_since_idle_round_started_(0), |
| 155 ms_count_at_last_idle_notification_(0), | 155 ms_count_at_last_idle_notification_(0), |
| 156 gc_count_at_last_idle_gc_(0), | 156 gc_count_at_last_idle_gc_(0), |
| 157 scavenges_since_last_idle_round_(kIdleScavengeThreshold), | 157 scavenges_since_last_idle_round_(kIdleScavengeThreshold), |
| 158 #ifdef VERIFY_HEAP |
| 159 no_weak_embedded_maps_verification_scope_depth_(0), |
| 160 #endif |
| 158 promotion_queue_(this), | 161 promotion_queue_(this), |
| 159 configured_(false), | 162 configured_(false), |
| 160 chunks_queued_for_free_(NULL), | 163 chunks_queued_for_free_(NULL), |
| 161 relocation_mutex_(NULL) { | 164 relocation_mutex_(NULL) { |
| 162 // Allow build-time customization of the max semispace size. Building | 165 // Allow build-time customization of the max semispace size. Building |
| 163 // V8 with snapshots and a non-default max semispace size is much | 166 // V8 with snapshots and a non-default max semispace size is much |
| 164 // easier if you can define it as part of the build environment. | 167 // easier if you can define it as part of the build environment. |
| 165 #if defined(V8_MAX_SEMISPACE_SIZE) | 168 #if defined(V8_MAX_SEMISPACE_SIZE) |
| 166 max_semispace_size_ = reserved_semispace_size_ = V8_MAX_SEMISPACE_SIZE; | 169 max_semispace_size_ = reserved_semispace_size_ = V8_MAX_SEMISPACE_SIZE; |
| 167 #endif | 170 #endif |
| (...skipping 7351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7519 static_cast<int>(object_sizes_last_time_[index])); | 7522 static_cast<int>(object_sizes_last_time_[index])); |
| 7520 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) | 7523 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7521 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7524 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7522 | 7525 |
| 7523 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7526 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7524 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7527 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7525 ClearObjectStats(); | 7528 ClearObjectStats(); |
| 7526 } | 7529 } |
| 7527 | 7530 |
| 7528 } } // namespace v8::internal | 7531 } } // namespace v8::internal |
| OLD | NEW |