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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 friend class LiteralToken; | 352 friend class LiteralToken; |
353 friend class PatchClass; | 353 friend class PatchClass; |
354 friend class Script; | 354 friend class Script; |
355 friend class Stacktrace; | 355 friend class Stacktrace; |
356 friend class TokenStream; | 356 friend class TokenStream; |
357 friend class Type; | 357 friend class Type; |
358 friend class TypeArguments; | 358 friend class TypeArguments; |
359 friend class TypeParameter; | 359 friend class TypeParameter; |
360 friend class UnresolvedClass; | 360 friend class UnresolvedClass; |
361 friend class WeakProperty; | 361 friend class WeakProperty; |
| 362 friend class VMReference; |
362 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); | 363 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); |
363 }; | 364 }; |
364 | 365 |
365 | 366 |
366 class BaseWriter { | 367 class BaseWriter { |
367 public: | 368 public: |
368 // Size of the snapshot. | 369 // Size of the snapshot. |
369 intptr_t BytesWritten() const { return stream_.bytes_written(); } | 370 intptr_t BytesWritten() const { return stream_.bytes_written(); } |
370 | 371 |
371 // Writes raw data to the stream (basic type). | 372 // Writes raw data to the stream (basic type). |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 private: | 611 private: |
611 SnapshotWriter* writer_; | 612 SnapshotWriter* writer_; |
612 bool as_references_; | 613 bool as_references_; |
613 | 614 |
614 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 615 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
615 }; | 616 }; |
616 | 617 |
617 } // namespace dart | 618 } // namespace dart |
618 | 619 |
619 #endif // VM_SNAPSHOT_H_ | 620 #endif // VM_SNAPSHOT_H_ |
OLD | NEW |