| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
| 6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2131 | 2131 |
| 2132 // For keeping track of how much data has survived | 2132 // For keeping track of how much data has survived |
| 2133 // scavenge since last new space expansion. | 2133 // scavenge since last new space expansion. |
| 2134 int survived_since_last_expansion_; | 2134 int survived_since_last_expansion_; |
| 2135 | 2135 |
| 2136 // ... and since the last scavenge. | 2136 // ... and since the last scavenge. |
| 2137 int survived_last_scavenge_; | 2137 int survived_last_scavenge_; |
| 2138 | 2138 |
| 2139 // This is not the depth of nested AlwaysAllocateScope's but rather a single | 2139 // This is not the depth of nested AlwaysAllocateScope's but rather a single |
| 2140 // count, as scopes can be acquired from multiple tasks (read: threads). | 2140 // count, as scopes can be acquired from multiple tasks (read: threads). |
| 2141 AtomicValue always_allocate_scope_count_; | 2141 AtomicValue<size_t> always_allocate_scope_count_; |
| 2142 | 2142 |
| 2143 // For keeping track of context disposals. | 2143 // For keeping track of context disposals. |
| 2144 int contexts_disposed_; | 2144 int contexts_disposed_; |
| 2145 | 2145 |
| 2146 int global_ic_age_; | 2146 int global_ic_age_; |
| 2147 | 2147 |
| 2148 int scan_on_scavenge_pages_; | 2148 int scan_on_scavenge_pages_; |
| 2149 | 2149 |
| 2150 NewSpace new_space_; | 2150 NewSpace new_space_; |
| 2151 OldSpace* old_space_; | 2151 OldSpace* old_space_; |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2746 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2746 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2747 | 2747 |
| 2748 private: | 2748 private: |
| 2749 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2749 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2750 }; | 2750 }; |
| 2751 #endif // DEBUG | 2751 #endif // DEBUG |
| 2752 } | 2752 } |
| 2753 } // namespace v8::internal | 2753 } // namespace v8::internal |
| 2754 | 2754 |
| 2755 #endif // V8_HEAP_HEAP_H_ | 2755 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |