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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 // Updates gc_in_progress. | 305 // Updates gc_in_progress. |
306 void BeginGC(); | 306 void BeginGC(); |
307 void EndGC(); | 307 void EndGC(); |
308 | 308 |
309 // If this heap is non-empty, updates start and end to the smallest range that | 309 // If this heap is non-empty, updates start and end to the smallest range that |
310 // contains both the original [start, end) and the [lowest, highest) addresses | 310 // contains both the original [start, end) and the [lowest, highest) addresses |
311 // of this heap. | 311 // of this heap. |
312 void GetMergedAddressRange(uword* start, uword* end) const; | 312 void GetMergedAddressRange(uword* start, uword* end) const; |
313 | 313 |
| 314 Isolate* isolate_; |
| 315 |
314 // The different spaces used for allocation. | 316 // The different spaces used for allocation. |
315 Scavenger new_space_; | 317 Scavenger new_space_; |
316 PageSpace old_space_; | 318 PageSpace old_space_; |
317 | 319 |
318 Isolate* isolate_; | |
319 | |
320 WeakTable* new_weak_tables_[kNumWeakSelectors]; | 320 WeakTable* new_weak_tables_[kNumWeakSelectors]; |
321 WeakTable* old_weak_tables_[kNumWeakSelectors]; | 321 WeakTable* old_weak_tables_[kNumWeakSelectors]; |
322 | 322 |
323 // GC stats collection. | 323 // GC stats collection. |
324 GCStats stats_; | 324 GCStats stats_; |
325 | 325 |
326 // This heap is in read-only mode: No allocation is allowed. | 326 // This heap is in read-only mode: No allocation is allowed. |
327 bool read_only_; | 327 bool read_only_; |
328 | 328 |
329 // GC on the heap is in progress. | 329 // GC on the heap is in progress. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // Note: During this scope, the code pages are non-executable. | 363 // Note: During this scope, the code pages are non-executable. |
364 class WritableVMIsolateScope : StackResource { | 364 class WritableVMIsolateScope : StackResource { |
365 public: | 365 public: |
366 explicit WritableVMIsolateScope(Thread* thread); | 366 explicit WritableVMIsolateScope(Thread* thread); |
367 ~WritableVMIsolateScope(); | 367 ~WritableVMIsolateScope(); |
368 }; | 368 }; |
369 | 369 |
370 } // namespace dart | 370 } // namespace dart |
371 | 371 |
372 #endif // VM_HEAP_H_ | 372 #endif // VM_HEAP_H_ |
OLD | NEW |