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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 bool gc_old_space_in_progress_; | 353 bool gc_old_space_in_progress_; |
354 | 354 |
355 friend class Become; // VisitObjectPointers | 355 friend class Become; // VisitObjectPointers |
356 friend class Precompiler; // VisitObjects | 356 friend class Precompiler; // VisitObjects |
357 friend class Unmarker; // VisitObjects | 357 friend class Unmarker; // VisitObjects |
358 friend class ServiceEvent; | 358 friend class ServiceEvent; |
359 friend class PageSpace; // VerifyGC | 359 friend class PageSpace; // VerifyGC |
360 friend class IsolateReloadContext; // VisitObjects | 360 friend class IsolateReloadContext; // VisitObjects |
361 friend class ClassFinalizer; // VisitObjects | 361 friend class ClassFinalizer; // VisitObjects |
362 friend class HeapIterationScope; // VisitObjects | 362 friend class HeapIterationScope; // VisitObjects |
| 363 friend class ProgramVisitor; // VisitObjectsImagePages |
| 364 friend class Serializer; // VisitObjectsImagePages |
363 | 365 |
364 DISALLOW_COPY_AND_ASSIGN(Heap); | 366 DISALLOW_COPY_AND_ASSIGN(Heap); |
365 }; | 367 }; |
366 | 368 |
367 class HeapIterationScope : public StackResource { | 369 class HeapIterationScope : public StackResource { |
368 public: | 370 public: |
369 explicit HeapIterationScope(Thread* thread, bool writable = false); | 371 explicit HeapIterationScope(Thread* thread, bool writable = false); |
370 ~HeapIterationScope(); | 372 ~HeapIterationScope(); |
371 | 373 |
372 void IterateObjects(ObjectVisitor* visitor) const; | 374 void IterateObjects(ObjectVisitor* visitor) const; |
(...skipping 29 matching lines...) Expand all Loading... |
402 // Note: During this scope, the code pages are non-executable. | 404 // Note: During this scope, the code pages are non-executable. |
403 class WritableVMIsolateScope : StackResource { | 405 class WritableVMIsolateScope : StackResource { |
404 public: | 406 public: |
405 explicit WritableVMIsolateScope(Thread* thread); | 407 explicit WritableVMIsolateScope(Thread* thread); |
406 ~WritableVMIsolateScope(); | 408 ~WritableVMIsolateScope(); |
407 }; | 409 }; |
408 | 410 |
409 } // namespace dart | 411 } // namespace dart |
410 | 412 |
411 #endif // RUNTIME_VM_HEAP_H_ | 413 #endif // RUNTIME_VM_HEAP_H_ |
OLD | NEW |