| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef VM_SNAPSHOT_H_ | 5 #ifndef VM_SNAPSHOT_H_ |
| 6 #define VM_SNAPSHOT_H_ | 6 #define VM_SNAPSHOT_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assert.h" | 9 #include "vm/assert.h" |
| 10 #include "vm/bitfield.h" | 10 #include "vm/bitfield.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 private: | 260 private: |
| 261 uint8_t** const buffer_; | 261 uint8_t** const buffer_; |
| 262 uint8_t* end_; | 262 uint8_t* end_; |
| 263 uint8_t* current_; | 263 uint8_t* current_; |
| 264 intptr_t current_size_; | 264 intptr_t current_size_; |
| 265 ReAlloc alloc_; | 265 ReAlloc alloc_; |
| 266 | 266 |
| 267 // MessageWriter and SnapshotWriter needs access to the private Raw | 267 // MessageWriter and SnapshotWriter needs access to the private Raw |
| 268 // classes. | 268 // classes. |
| 269 friend class MessageWriter; | 269 friend class BaseWriter; |
| 270 friend class SnapshotWriter; | |
| 271 DISALLOW_COPY_AND_ASSIGN(WriteStream); | 270 DISALLOW_COPY_AND_ASSIGN(WriteStream); |
| 272 }; | 271 }; |
| 273 | 272 |
| 274 | 273 |
| 275 // Reads a snapshot into objects. | 274 // Reads a snapshot into objects. |
| 276 class SnapshotReader { | 275 class SnapshotReader { |
| 277 public: | 276 public: |
| 278 SnapshotReader(const Snapshot* snapshot, | 277 SnapshotReader(const Snapshot* snapshot, |
| 279 Heap* heap, | 278 Heap* heap, |
| 280 ObjectStore* object_store) | 279 ObjectStore* object_store) |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 491 |
| 493 private: | 492 private: |
| 494 SnapshotWriter* writer_; | 493 SnapshotWriter* writer_; |
| 495 | 494 |
| 496 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 495 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 497 }; | 496 }; |
| 498 | 497 |
| 499 } // namespace dart | 498 } // namespace dart |
| 500 | 499 |
| 501 #endif // VM_SNAPSHOT_H_ | 500 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |