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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 friend class JSRegExp; | 293 friend class JSRegExp; |
294 friend class Library; | 294 friend class Library; |
295 friend class LibraryPrefix; | 295 friend class LibraryPrefix; |
296 friend class LiteralToken; | 296 friend class LiteralToken; |
297 friend class Script; | 297 friend class Script; |
298 friend class TokenStream; | 298 friend class TokenStream; |
299 friend class Type; | 299 friend class Type; |
300 friend class TypeArguments; | 300 friend class TypeArguments; |
301 friend class TypeParameter; | 301 friend class TypeParameter; |
302 friend class UnresolvedClass; | 302 friend class UnresolvedClass; |
| 303 friend class WeakProperty; |
303 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); | 304 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); |
304 }; | 305 }; |
305 | 306 |
306 | 307 |
307 class BaseWriter { | 308 class BaseWriter { |
308 public: | 309 public: |
309 // Size of the snapshot. | 310 // Size of the snapshot. |
310 intptr_t BytesWritten() const { return stream_.bytes_written(); } | 311 intptr_t BytesWritten() const { return stream_.bytes_written(); } |
311 | 312 |
312 // Writes raw data to the stream (basic type). | 313 // Writes raw data to the stream (basic type). |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 private: | 504 private: |
504 SnapshotWriter* writer_; | 505 SnapshotWriter* writer_; |
505 bool as_references_; | 506 bool as_references_; |
506 | 507 |
507 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 508 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
508 }; | 509 }; |
509 | 510 |
510 } // namespace dart | 511 } // namespace dart |
511 | 512 |
512 #endif // VM_SNAPSHOT_H_ | 513 #endif // VM_SNAPSHOT_H_ |
OLD | NEW |