| 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" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 229 |
| 230 // The heap map contains the sizes and class ids for the objects in each page. | 230 // The heap map contains the sizes and class ids for the objects in each page. |
| 231 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) { | 231 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) { |
| 232 return old_space_.PrintHeapMapToJSONStream(isolate, stream); | 232 return old_space_.PrintHeapMapToJSONStream(isolate, stream); |
| 233 } | 233 } |
| 234 | 234 |
| 235 Isolate* isolate() const { return isolate_; } | 235 Isolate* isolate() const { return isolate_; } |
| 236 | 236 |
| 237 bool ShouldPretenure(intptr_t class_id) const; | 237 bool ShouldPretenure(intptr_t class_id) const; |
| 238 | 238 |
| 239 void SetupInstructionsSnapshotPage(void* pointer, uword size) { |
| 240 old_space_.SetupInstructionsSnapshotPage(pointer, size); |
| 241 } |
| 242 |
| 239 private: | 243 private: |
| 240 class GCStats : public ValueObject { | 244 class GCStats : public ValueObject { |
| 241 public: | 245 public: |
| 242 GCStats() {} | 246 GCStats() {} |
| 243 intptr_t num_; | 247 intptr_t num_; |
| 244 Heap::Space space_; | 248 Heap::Space space_; |
| 245 Heap::GCReason reason_; | 249 Heap::GCReason reason_; |
| 246 | 250 |
| 247 class Data : public ValueObject { | 251 class Data : public ValueObject { |
| 248 public: | 252 public: |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 NoHeapGrowthControlScope(); | 354 NoHeapGrowthControlScope(); |
| 351 ~NoHeapGrowthControlScope(); | 355 ~NoHeapGrowthControlScope(); |
| 352 private: | 356 private: |
| 353 bool current_growth_controller_state_; | 357 bool current_growth_controller_state_; |
| 354 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); | 358 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); |
| 355 }; | 359 }; |
| 356 | 360 |
| 357 } // namespace dart | 361 } // namespace dart |
| 358 | 362 |
| 359 #endif // VM_HEAP_H_ | 363 #endif // VM_HEAP_H_ |
| OLD | NEW |