OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 DISALLOW_COPY_AND_ASSIGN(Heap); | 81 DISALLOW_COPY_AND_ASSIGN(Heap); |
82 }; | 82 }; |
83 | 83 |
84 | 84 |
85 #if defined(DEBUG) | 85 #if defined(DEBUG) |
86 class NoGCScope : public StackResource { | 86 class NoGCScope : public StackResource { |
87 public: | 87 public: |
88 NoGCScope(); | 88 NoGCScope(); |
89 ~NoGCScope(); | 89 ~NoGCScope(); |
90 private: | 90 private: |
91 Isolate* isolate_; | |
92 | |
93 DISALLOW_COPY_AND_ASSIGN(NoGCScope); | 91 DISALLOW_COPY_AND_ASSIGN(NoGCScope); |
94 }; | 92 }; |
95 #else // defined(DEBUG) | 93 #else // defined(DEBUG) |
96 class NoGCScope : public ValueObject { | 94 class NoGCScope : public ValueObject { |
97 public: | 95 public: |
98 NoGCScope() {} | 96 NoGCScope() {} |
99 private: | 97 private: |
100 DISALLOW_COPY_AND_ASSIGN(NoGCScope); | 98 DISALLOW_COPY_AND_ASSIGN(NoGCScope); |
101 }; | 99 }; |
102 #endif // defined(DEBUG) | 100 #endif // defined(DEBUG) |
103 | 101 |
104 } // namespace dart | 102 } // namespace dart |
105 | 103 |
106 #endif // VM_HEAP_H_ | 104 #endif // VM_HEAP_H_ |
OLD | NEW |