| 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/spaces.h" |
| 15 #include "vm/verifier.h" | 15 #include "vm/verifier.h" |
| 16 #include "vm/weak_table.h" | 16 #include "vm/weak_table.h" |
| 17 | 17 |
| 18 namespace dart { | 18 namespace dart { |
| 19 | 19 |
| 20 // Forward declarations. | 20 // Forward declarations. |
| 21 class Isolate; | 21 class Isolate; |
| 22 class ObjectPointerVisitor; | 22 class ObjectPointerVisitor; |
| 23 class ObjectSet; | 23 class ObjectSet; |
| 24 class ServiceEvent; | 24 class ServiceEvent; |
| 25 class VirtualMemory; | 25 class VirtualMemory; |
| 26 | 26 |
| 27 DECLARE_FLAG(bool, verbose_gc); | |
| 28 DECLARE_FLAG(bool, verify_before_gc); | 27 DECLARE_FLAG(bool, verify_before_gc); |
| 29 DECLARE_FLAG(bool, verify_after_gc); | 28 DECLARE_FLAG(bool, verify_after_gc); |
| 30 DECLARE_FLAG(bool, gc_at_alloc); | 29 DECLARE_FLAG(bool, gc_at_alloc); |
| 31 | 30 |
| 32 class Heap { | 31 class Heap { |
| 33 public: | 32 public: |
| 34 enum Space { | 33 enum Space { |
| 35 kNew, | 34 kNew, |
| 36 kOld, | 35 kOld, |
| 37 kCode, | 36 kCode, |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages); | 388 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages); |
| 390 ~WritableVMIsolateScope(); | 389 ~WritableVMIsolateScope(); |
| 391 | 390 |
| 392 private: | 391 private: |
| 393 bool include_code_pages_; | 392 bool include_code_pages_; |
| 394 }; | 393 }; |
| 395 | 394 |
| 396 } // namespace dart | 395 } // namespace dart |
| 397 | 396 |
| 398 #endif // VM_HEAP_H_ | 397 #endif // VM_HEAP_H_ |
| OLD | NEW |