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

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

Issue 9209001: Move utils.h and utils.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
« runtime/vm/virtual_memory_macos.cc ('K') | « 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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "platform/utils.h"
6 #include "vm/flags.h" 7 #include "vm/flags.h"
7 #include "vm/isolate.h" 8 #include "vm/isolate.h"
8 #include "vm/os.h" 9 #include "vm/os.h"
9 #include "vm/utils.h"
10 #include "vm/zone.h" 10 #include "vm/zone.h"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 DEFINE_DEBUG_FLAG(bool, trace_zone_sizes, 14 DEFINE_DEBUG_FLAG(bool, trace_zone_sizes,
15 false, "Traces allocation sizes in the zone."); 15 false, "Traces allocation sizes in the zone.");
16 16
17 17
18 // Zone segments represent chunks of memory: They have starting 18 // Zone segments represent chunks of memory: They have starting
19 // address encoded in the this pointer and a size in bytes. They are 19 // address encoded in the this pointer and a size in bytes. They are
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 void Zone::VisitObjectPointers(ObjectPointerVisitor* visitor) { 237 void Zone::VisitObjectPointers(ObjectPointerVisitor* visitor) {
238 Zone* zone = this; 238 Zone* zone = this;
239 while (zone != NULL) { 239 while (zone != NULL) {
240 zone->handles()->VisitObjectPointers(visitor); 240 zone->handles()->VisitObjectPointers(visitor);
241 zone = zone->previous_; 241 zone = zone->previous_;
242 } 242 }
243 } 243 }
244 244
245 } // namespace dart 245 } // namespace dart
OLDNEW
« runtime/vm/virtual_memory_macos.cc ('K') | « runtime/vm/zone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698