OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_HEAP_H_ | 5 #ifndef VM_HEAP_H_ |
6 #define VM_HEAP_H_ | 6 #define VM_HEAP_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
11 #include "vm/globals.h" | 11 #include "vm/globals.h" |
12 #include "vm/pages.h" | 12 #include "vm/pages.h" |
13 #include "vm/scavenger.h" | 13 #include "vm/scavenger.h" |
| 14 #include "vm/spaces.h" |
14 #include "vm/weak_table.h" | 15 #include "vm/weak_table.h" |
15 | 16 |
16 namespace dart { | 17 namespace dart { |
17 | 18 |
18 // Forward declarations. | 19 // Forward declarations. |
19 class Isolate; | 20 class Isolate; |
20 class ObjectPointerVisitor; | 21 class ObjectPointerVisitor; |
21 class ObjectSet; | 22 class ObjectSet; |
22 class VirtualMemory; | 23 class VirtualMemory; |
23 | 24 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 public: | 252 public: |
252 GCStats() {} | 253 GCStats() {} |
253 intptr_t num_; | 254 intptr_t num_; |
254 Heap::Space space_; | 255 Heap::Space space_; |
255 Heap::GCReason reason_; | 256 Heap::GCReason reason_; |
256 | 257 |
257 class Data : public ValueObject { | 258 class Data : public ValueObject { |
258 public: | 259 public: |
259 Data() {} | 260 Data() {} |
260 int64_t micros_; | 261 int64_t micros_; |
261 intptr_t new_used_in_words_; | 262 SpaceUsage new_; |
262 intptr_t new_capacity_in_words_; | 263 SpaceUsage old_; |
263 intptr_t new_external_in_words_; | |
264 intptr_t old_used_in_words_; | |
265 intptr_t old_capacity_in_words_; | |
266 intptr_t old_external_in_words_; | |
267 private: | 264 private: |
268 DISALLOW_COPY_AND_ASSIGN(Data); | 265 DISALLOW_COPY_AND_ASSIGN(Data); |
269 }; | 266 }; |
270 | 267 |
271 enum { | 268 enum { |
272 kDataEntries = 4 | 269 kDataEntries = 4 |
273 }; | 270 }; |
274 | 271 |
275 Data before_; | 272 Data before_; |
276 Data after_; | 273 Data after_; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 NoHeapGrowthControlScope(); | 335 NoHeapGrowthControlScope(); |
339 ~NoHeapGrowthControlScope(); | 336 ~NoHeapGrowthControlScope(); |
340 private: | 337 private: |
341 bool current_growth_controller_state_; | 338 bool current_growth_controller_state_; |
342 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); | 339 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); |
343 }; | 340 }; |
344 | 341 |
345 } // namespace dart | 342 } // namespace dart |
346 | 343 |
347 #endif // VM_HEAP_H_ | 344 #endif // VM_HEAP_H_ |
OLD | NEW |