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

Side by Side Diff: runtime/vm/zone.cc

Issue 10869063: Add attributions so printf like functions can have their arguments checked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 years, 3 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
« no previous file with comments | « runtime/vm/zone.h ('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 #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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/zone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698