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

Side by Side Diff: vm/zone.cc

Issue 10008030: Inline the StackResource constructor/destructor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | « 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 intptr_t size = 0; 209 intptr_t size = 0;
210 for (Segment* s = large_segments_; s != NULL; s = s->next()) { 210 for (Segment* s = large_segments_; s != NULL; s = s->next()) {
211 size += s->size(); 211 size += s->size();
212 } 212 }
213 OS::Print("Size in bytes allocated, Total = %d Large Segments = %d\n", 213 OS::Print("Size in bytes allocated, Total = %d Large Segments = %d\n",
214 SizeInBytes(), size); 214 SizeInBytes(), size);
215 } 215 }
216 #endif 216 #endif
217 217
218 218
219 Zone::Zone(Isolate* isolate) 219 Zone::Zone(BaseIsolate* isolate)
220 : StackResource(isolate), 220 : StackResource(isolate),
221 zone_(), 221 zone_(),
222 handles_(), 222 handles_(),
223 previous_(NULL) { 223 previous_(NULL) {
224 // Assert that there is no current zone as we only want to scope 224 // Assert that there is no current zone as we only want to scope
225 // zones when transitioning from generated dart code to dart VM 225 // zones when transitioning from generated dart code to dart VM
226 // runtime code. 226 // runtime code.
227 previous_ = isolate->current_zone(); 227 previous_ = isolate->current_zone();
228 isolate->set_current_zone(this); 228 isolate->set_current_zone(this);
229 } 229 }
(...skipping 24 matching lines...) Expand all
254 va_list args2; 254 va_list args2;
255 va_start(args2, format); 255 va_start(args2, format);
256 OS::VSNPrint(buffer, (len + 1), format, args2); 256 OS::VSNPrint(buffer, (len + 1), format, args2);
257 va_end(args2); 257 va_end(args2);
258 258
259 return buffer; 259 return buffer;
260 } 260 }
261 261
262 262
263 } // namespace dart 263 } // namespace dart
OLDNEW
« no previous file with comments | « vm/zone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698