| 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/snapshot.h" | 5 #include "vm/snapshot.h" |
| 6 | 6 |
| 7 #include "vm/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "vm/bootstrap.h" | 8 #include "vm/bootstrap.h" |
| 9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| 11 #include "vm/object_store.h" | 11 #include "vm/object_store.h" |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 | 14 |
| 15 enum { | 15 enum { |
| 16 kInstanceId = ObjectStore::kMaxId, | 16 kInstanceId = ObjectStore::kMaxId, |
| 17 kMaxPredefinedObjectIds, | 17 kMaxPredefinedObjectIds, |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 454 |
| 455 | 455 |
| 456 void SnapshotWriterVisitor::VisitPointers(RawObject** first, RawObject** last) { | 456 void SnapshotWriterVisitor::VisitPointers(RawObject** first, RawObject** last) { |
| 457 for (RawObject** current = first; current <= last; current++) { | 457 for (RawObject** current = first; current <= last; current++) { |
| 458 RawObject* raw_obj = *current; | 458 RawObject* raw_obj = *current; |
| 459 writer_->WriteObject(raw_obj); | 459 writer_->WriteObject(raw_obj); |
| 460 } | 460 } |
| 461 } | 461 } |
| 462 | 462 |
| 463 } // namespace dart | 463 } // namespace dart |
| OLD | NEW |