Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, 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 "platform/assert.h" |
| 6 | |
| 7 #include "vm/assert.h" | |
| 8 #include "vm/flags.h" | 6 #include "vm/flags.h" |
| 9 #include "vm/isolate.h" | 7 #include "vm/isolate.h" |
| 10 #include "vm/os.h" | 8 #include "vm/os.h" |
| 11 #include "vm/utils.h" | 9 #include "vm/utils.h" |
| 10 #include "vm/zone.h" | |
|
Ivan Posva
2012/01/13 23:22:06
First.
Søren Gjesse
2012/01/16 08:58:00
Done.
| |
| 12 | 11 |
| 13 namespace dart { | 12 namespace dart { |
| 14 | 13 |
| 15 DEFINE_DEBUG_FLAG(bool, trace_zone_sizes, | 14 DEFINE_DEBUG_FLAG(bool, trace_zone_sizes, |
| 16 false, "Traces allocation sizes in the zone."); | 15 false, "Traces allocation sizes in the zone."); |
| 17 | 16 |
| 18 | 17 |
| 19 // Zone segments represent chunks of memory: They have starting | 18 // Zone segments represent chunks of memory: They have starting |
| 20 // 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 |
| 21 // chained together to form the backing storage for an expanding zone. | 20 // chained together to form the backing storage for an expanding zone. |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 | 236 |
| 238 void Zone::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 237 void Zone::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
| 239 Zone* zone = this; | 238 Zone* zone = this; |
| 240 while (zone != NULL) { | 239 while (zone != NULL) { |
| 241 zone->handles()->VisitObjectPointers(visitor); | 240 zone->handles()->VisitObjectPointers(visitor); |
| 242 zone = zone->previous_; | 241 zone = zone->previous_; |
| 243 } | 242 } |
| 244 } | 243 } |
| 245 | 244 |
| 246 } // namespace dart | 245 } // namespace dart |
| OLD | NEW |