| OLD | NEW |
| 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 #ifndef VM_SNAPSHOT_H_ | 5 #ifndef VM_SNAPSHOT_H_ |
| 6 #define VM_SNAPSHOT_H_ | 6 #define VM_SNAPSHOT_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/bitfield.h" | 10 #include "vm/bitfield.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 friend class Library; | 296 friend class Library; |
| 297 friend class LibraryPrefix; | 297 friend class LibraryPrefix; |
| 298 friend class LiteralToken; | 298 friend class LiteralToken; |
| 299 friend class PatchClass; | 299 friend class PatchClass; |
| 300 friend class Script; | 300 friend class Script; |
| 301 friend class TokenStream; | 301 friend class TokenStream; |
| 302 friend class Type; | 302 friend class Type; |
| 303 friend class TypeArguments; | 303 friend class TypeArguments; |
| 304 friend class TypeParameter; | 304 friend class TypeParameter; |
| 305 friend class UnresolvedClass; | 305 friend class UnresolvedClass; |
| 306 friend class WeakProperty; |
| 306 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); | 307 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); |
| 307 }; | 308 }; |
| 308 | 309 |
| 309 | 310 |
| 310 class BaseWriter { | 311 class BaseWriter { |
| 311 public: | 312 public: |
| 312 // Size of the snapshot. | 313 // Size of the snapshot. |
| 313 intptr_t BytesWritten() const { return stream_.bytes_written(); } | 314 intptr_t BytesWritten() const { return stream_.bytes_written(); } |
| 314 | 315 |
| 315 // Writes raw data to the stream (basic type). | 316 // Writes raw data to the stream (basic type). |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 private: | 507 private: |
| 507 SnapshotWriter* writer_; | 508 SnapshotWriter* writer_; |
| 508 bool as_references_; | 509 bool as_references_; |
| 509 | 510 |
| 510 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 511 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 511 }; | 512 }; |
| 512 | 513 |
| 513 } // namespace dart | 514 } // namespace dart |
| 514 | 515 |
| 515 #endif // VM_SNAPSHOT_H_ | 516 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |