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 #include "vm/zone.h" | 5 #include "vm/zone.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "platform/utils.h" | 8 #include "platform/utils.h" |
9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 return copy; | 191 return copy; |
192 } | 192 } |
193 | 193 |
194 | 194 |
195 #if defined(DEBUG) | 195 #if defined(DEBUG) |
196 void BaseZone::DumpZoneSizes() { | 196 void BaseZone::DumpZoneSizes() { |
197 intptr_t size = 0; | 197 intptr_t size = 0; |
198 for (Segment* s = large_segments_; s != NULL; s = s->next()) { | 198 for (Segment* s = large_segments_; s != NULL; s = s->next()) { |
199 size += s->size(); | 199 size += s->size(); |
200 } | 200 } |
201 OS::Print("Size in bytes allocated, Total = %d Large Segments = %d\n", | 201 OS::Print("Size in bytes allocated, Total = %"Pd" Large Segments = %"Pd"\n", |
202 SizeInBytes(), size); | 202 SizeInBytes(), size); |
203 } | 203 } |
204 #endif | 204 #endif |
205 | 205 |
206 | 206 |
207 Zone::Zone(BaseIsolate* isolate) | 207 Zone::Zone(BaseIsolate* isolate) |
208 : StackResource(isolate), | 208 : StackResource(isolate), |
209 zone_(), | 209 zone_(), |
210 handles_(), | 210 handles_(), |
211 previous_(NULL) { | 211 previous_(NULL) { |
(...skipping 30 matching lines...) Expand all Loading... |
242 va_list args2; | 242 va_list args2; |
243 va_start(args2, format); | 243 va_start(args2, format); |
244 OS::VSNPrint(buffer, (len + 1), format, args2); | 244 OS::VSNPrint(buffer, (len + 1), format, args2); |
245 va_end(args2); | 245 va_end(args2); |
246 | 246 |
247 return buffer; | 247 return buffer; |
248 } | 248 } |
249 | 249 |
250 | 250 |
251 } // namespace dart | 251 } // namespace dart |
OLD | NEW |