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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 friend class RawImmutableArray; | 547 friend class RawImmutableArray; |
548 friend class RawJSRegExp; | 548 friend class RawJSRegExp; |
549 friend class RawLibrary; | 549 friend class RawLibrary; |
550 friend class RawLiteralToken; | 550 friend class RawLiteralToken; |
551 friend class RawScript; | 551 friend class RawScript; |
552 friend class RawStacktrace; | 552 friend class RawStacktrace; |
553 friend class RawTokenStream; | 553 friend class RawTokenStream; |
554 friend class RawTypeArguments; | 554 friend class RawTypeArguments; |
555 friend class RawMirrorReference; | 555 friend class RawMirrorReference; |
556 friend class SnapshotWriterVisitor; | 556 friend class SnapshotWriterVisitor; |
| 557 friend class RawUserTag; |
557 DISALLOW_COPY_AND_ASSIGN(SnapshotWriter); | 558 DISALLOW_COPY_AND_ASSIGN(SnapshotWriter); |
558 }; | 559 }; |
559 | 560 |
560 | 561 |
561 class FullSnapshotWriter : public SnapshotWriter { | 562 class FullSnapshotWriter : public SnapshotWriter { |
562 public: | 563 public: |
563 static const intptr_t kInitialSize = 64 * KB; | 564 static const intptr_t kInitialSize = 64 * KB; |
564 FullSnapshotWriter(uint8_t** buffer, ReAlloc alloc) | 565 FullSnapshotWriter(uint8_t** buffer, ReAlloc alloc) |
565 : SnapshotWriter(Snapshot::kFull, buffer, alloc, kInitialSize) { | 566 : SnapshotWriter(Snapshot::kFull, buffer, alloc, kInitialSize) { |
566 ASSERT(buffer != NULL); | 567 ASSERT(buffer != NULL); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 private: | 631 private: |
631 SnapshotWriter* writer_; | 632 SnapshotWriter* writer_; |
632 bool as_references_; | 633 bool as_references_; |
633 | 634 |
634 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 635 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
635 }; | 636 }; |
636 | 637 |
637 } // namespace dart | 638 } // namespace dart |
638 | 639 |
639 #endif // VM_SNAPSHOT_H_ | 640 #endif // VM_SNAPSHOT_H_ |
OLD | NEW |