Chromium Code Reviews| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 | 286 |
| 287 // GC stats collection. | 287 // GC stats collection. |
| 288 GCStats stats_; | 288 GCStats stats_; |
| 289 | 289 |
| 290 // This heap is in read-only mode: No allocation is allowed. | 290 // This heap is in read-only mode: No allocation is allowed. |
| 291 bool read_only_; | 291 bool read_only_; |
| 292 | 292 |
| 293 // GC on the heap is in progress. | 293 // GC on the heap is in progress. |
| 294 bool gc_in_progress_; | 294 bool gc_in_progress_; |
| 295 | 295 |
| 296 // Ring of objects who have a vm service id assigned to them. | |
|
Ivan Posva
2013/07/11 17:01:42
Is this still needed?
Cutch
2013/07/11 21:31:47
Done.
| |
| 297 RawObject** object_id_ring_table_; | |
| 298 intptr_t object_id_ring_table_size_; | |
| 299 | |
| 296 friend class GCTestHelper; | 300 friend class GCTestHelper; |
| 297 DISALLOW_COPY_AND_ASSIGN(Heap); | 301 DISALLOW_COPY_AND_ASSIGN(Heap); |
| 298 }; | 302 }; |
| 299 | 303 |
| 300 | 304 |
| 301 #if defined(DEBUG) | 305 #if defined(DEBUG) |
| 302 class NoGCScope : public StackResource { | 306 class NoGCScope : public StackResource { |
| 303 public: | 307 public: |
| 304 NoGCScope(); | 308 NoGCScope(); |
| 305 ~NoGCScope(); | 309 ~NoGCScope(); |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 321 NoHeapGrowthControlScope(); | 325 NoHeapGrowthControlScope(); |
| 322 ~NoHeapGrowthControlScope(); | 326 ~NoHeapGrowthControlScope(); |
| 323 private: | 327 private: |
| 324 bool current_growth_controller_state_; | 328 bool current_growth_controller_state_; |
| 325 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); | 329 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); |
| 326 }; | 330 }; |
| 327 | 331 |
| 328 } // namespace dart | 332 } // namespace dart |
| 329 | 333 |
| 330 #endif // VM_HEAP_H_ | 334 #endif // VM_HEAP_H_ |
| OLD | NEW |