| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 // This heap is in read-only mode: No allocation is allowed. | 359 // This heap is in read-only mode: No allocation is allowed. |
| 360 bool read_only_; | 360 bool read_only_; |
| 361 | 361 |
| 362 // GC on the heap is in progress. | 362 // GC on the heap is in progress. |
| 363 Monitor gc_in_progress_monitor_; | 363 Monitor gc_in_progress_monitor_; |
| 364 bool gc_new_space_in_progress_; | 364 bool gc_new_space_in_progress_; |
| 365 bool gc_old_space_in_progress_; | 365 bool gc_old_space_in_progress_; |
| 366 | 366 |
| 367 friend class Become; // VisitObjectPointers | 367 friend class Become; // VisitObjectPointers |
| 368 friend class Precompiler; // VisitObjects |
| 368 friend class ServiceEvent; | 369 friend class ServiceEvent; |
| 369 friend class PageSpace; // VerifyGC | 370 friend class PageSpace; // VerifyGC |
| 370 friend class IsolateReloadContext; // VisitObjects | 371 friend class IsolateReloadContext; // VisitObjects |
| 371 | 372 |
| 372 DISALLOW_COPY_AND_ASSIGN(Heap); | 373 DISALLOW_COPY_AND_ASSIGN(Heap); |
| 373 }; | 374 }; |
| 374 | 375 |
| 375 | 376 |
| 376 class HeapIterationScope : public StackResource { | 377 class HeapIterationScope : public StackResource { |
| 377 public: | 378 public: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 398 // Note: During this scope, the code pages are non-executable. | 399 // Note: During this scope, the code pages are non-executable. |
| 399 class WritableVMIsolateScope : StackResource { | 400 class WritableVMIsolateScope : StackResource { |
| 400 public: | 401 public: |
| 401 explicit WritableVMIsolateScope(Thread* thread); | 402 explicit WritableVMIsolateScope(Thread* thread); |
| 402 ~WritableVMIsolateScope(); | 403 ~WritableVMIsolateScope(); |
| 403 }; | 404 }; |
| 404 | 405 |
| 405 } // namespace dart | 406 } // namespace dart |
| 406 | 407 |
| 407 #endif // VM_HEAP_H_ | 408 #endif // VM_HEAP_H_ |
| OLD | NEW |