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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 int pretenure_policy_; | 367 int pretenure_policy_; |
368 | 368 |
| 369 friend class Become; // VisitObjectPointers |
369 friend class ServiceEvent; | 370 friend class ServiceEvent; |
370 friend class PageSpace; // VerifyGC | 371 friend class PageSpace; // VerifyGC |
| 372 friend class IsolateReloadContext; // VisitObjects |
| 373 |
371 DISALLOW_COPY_AND_ASSIGN(Heap); | 374 DISALLOW_COPY_AND_ASSIGN(Heap); |
372 }; | 375 }; |
373 | 376 |
374 | 377 |
375 class HeapIterationScope : public StackResource { | 378 class HeapIterationScope : public StackResource { |
376 public: | 379 public: |
377 HeapIterationScope(); | 380 HeapIterationScope(); |
378 ~HeapIterationScope(); | 381 ~HeapIterationScope(); |
379 private: | 382 private: |
380 NoSafepointScope no_safepoint_scope_; | 383 NoSafepointScope no_safepoint_scope_; |
(...skipping 16 matching lines...) Expand all Loading... |
397 // Note: During this scope, the code pages are non-executable. | 400 // Note: During this scope, the code pages are non-executable. |
398 class WritableVMIsolateScope : StackResource { | 401 class WritableVMIsolateScope : StackResource { |
399 public: | 402 public: |
400 explicit WritableVMIsolateScope(Thread* thread); | 403 explicit WritableVMIsolateScope(Thread* thread); |
401 ~WritableVMIsolateScope(); | 404 ~WritableVMIsolateScope(); |
402 }; | 405 }; |
403 | 406 |
404 } // namespace dart | 407 } // namespace dart |
405 | 408 |
406 #endif // VM_HEAP_H_ | 409 #endif // VM_HEAP_H_ |
OLD | NEW |