| 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 RUNTIME_VM_HEAP_H_ | 5 #ifndef RUNTIME_VM_HEAP_H_ |
| 6 #define RUNTIME_VM_HEAP_H_ | 6 #define RUNTIME_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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 bool gc_new_space_in_progress_; | 349 bool gc_new_space_in_progress_; |
| 350 bool gc_old_space_in_progress_; | 350 bool gc_old_space_in_progress_; |
| 351 | 351 |
| 352 friend class Become; // VisitObjectPointers | 352 friend class Become; // VisitObjectPointers |
| 353 friend class Precompiler; // VisitObjects | 353 friend class Precompiler; // VisitObjects |
| 354 friend class ObjectGraph; // VisitObjects | 354 friend class ObjectGraph; // VisitObjects |
| 355 friend class Unmarker; // VisitObjects | 355 friend class Unmarker; // VisitObjects |
| 356 friend class ServiceEvent; | 356 friend class ServiceEvent; |
| 357 friend class PageSpace; // VerifyGC | 357 friend class PageSpace; // VerifyGC |
| 358 friend class IsolateReloadContext; // VisitObjects | 358 friend class IsolateReloadContext; // VisitObjects |
| 359 friend class ClassFinalizer; // VisitObjects |
| 359 | 360 |
| 360 DISALLOW_COPY_AND_ASSIGN(Heap); | 361 DISALLOW_COPY_AND_ASSIGN(Heap); |
| 361 }; | 362 }; |
| 362 | 363 |
| 363 | 364 |
| 364 class HeapIterationScope : public StackResource { | 365 class HeapIterationScope : public StackResource { |
| 365 public: | 366 public: |
| 366 explicit HeapIterationScope(bool writable = false); | 367 explicit HeapIterationScope(bool writable = false); |
| 367 ~HeapIterationScope(); | 368 ~HeapIterationScope(); |
| 368 | 369 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 389 // Note: During this scope, the code pages are non-executable. | 390 // Note: During this scope, the code pages are non-executable. |
| 390 class WritableVMIsolateScope : StackResource { | 391 class WritableVMIsolateScope : StackResource { |
| 391 public: | 392 public: |
| 392 explicit WritableVMIsolateScope(Thread* thread); | 393 explicit WritableVMIsolateScope(Thread* thread); |
| 393 ~WritableVMIsolateScope(); | 394 ~WritableVMIsolateScope(); |
| 394 }; | 395 }; |
| 395 | 396 |
| 396 } // namespace dart | 397 } // namespace dart |
| 397 | 398 |
| 398 #endif // RUNTIME_VM_HEAP_H_ | 399 #endif // RUNTIME_VM_HEAP_H_ |
| OLD | NEW |