Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: vm/heap.h

Issue 10748006: Disable heap growth during weak handle processing unit test in order to avoid triggering of old spa… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« vm/dart_api_impl_test.cc ('K') | « vm/dart_api_impl_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 uword AllocateNew(intptr_t size); 131 uword AllocateNew(intptr_t size);
132 uword AllocateOld(intptr_t size); 132 uword AllocateOld(intptr_t size);
133 uword AllocateCode(PageSpace* space, intptr_t size); 133 uword AllocateCode(PageSpace* space, intptr_t size);
134 134
135 // The different spaces used for allocation. 135 // The different spaces used for allocation.
136 Scavenger* new_space_; 136 Scavenger* new_space_;
137 PageSpace* old_space_; 137 PageSpace* old_space_;
138 PageSpace* code_space_; 138 PageSpace* code_space_;
139 139
140 friend class GCTestHelper;
140 DISALLOW_COPY_AND_ASSIGN(Heap); 141 DISALLOW_COPY_AND_ASSIGN(Heap);
141 }; 142 };
142 143
143 144
144 #if defined(DEBUG) 145 #if defined(DEBUG)
145 class NoGCScope : public StackResource { 146 class NoGCScope : public StackResource {
146 public: 147 public:
147 NoGCScope(); 148 NoGCScope();
148 ~NoGCScope(); 149 ~NoGCScope();
149 private: 150 private:
150 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 151 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
151 }; 152 };
152 #else // defined(DEBUG) 153 #else // defined(DEBUG)
153 class NoGCScope : public ValueObject { 154 class NoGCScope : public ValueObject {
154 public: 155 public:
155 NoGCScope() {} 156 NoGCScope() {}
156 private: 157 private:
157 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 158 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
158 }; 159 };
159 #endif // defined(DEBUG) 160 #endif // defined(DEBUG)
160 161
161 } // namespace dart 162 } // namespace dart
162 163
163 #endif // VM_HEAP_H_ 164 #endif // VM_HEAP_H_
OLDNEW
« vm/dart_api_impl_test.cc ('K') | « vm/dart_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698