| 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 18 matching lines...) Expand all Loading... |
| 29 class Object; | 29 class Object; |
| 30 class ObjectStore; | 30 class ObjectStore; |
| 31 class RawAbstractTypeArguments; | 31 class RawAbstractTypeArguments; |
| 32 class RawApiError; | 32 class RawApiError; |
| 33 class RawArray; | 33 class RawArray; |
| 34 class RawBigint; | 34 class RawBigint; |
| 35 class RawClass; | 35 class RawClass; |
| 36 class RawContext; | 36 class RawContext; |
| 37 class RawDouble; | 37 class RawDouble; |
| 38 class RawField; | 38 class RawField; |
| 39 class RawFourByteString; | |
| 40 class RawClosureData; | 39 class RawClosureData; |
| 41 class RawRedirectionData; | 40 class RawRedirectionData; |
| 42 class RawFunction; | 41 class RawFunction; |
| 43 class RawGrowableObjectArray; | 42 class RawGrowableObjectArray; |
| 44 class RawImmutableArray; | 43 class RawImmutableArray; |
| 45 class RawLanguageError; | 44 class RawLanguageError; |
| 46 class RawLibrary; | 45 class RawLibrary; |
| 47 class RawLibraryPrefix; | 46 class RawLibraryPrefix; |
| 48 class RawNamespace; | 47 class RawNamespace; |
| 49 class RawLiteralToken; | 48 class RawLiteralToken; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // Read a full snap shot. | 231 // Read a full snap shot. |
| 233 void ReadFullSnapshot(); | 232 void ReadFullSnapshot(); |
| 234 | 233 |
| 235 // Helper functions for creating uninitialized versions | 234 // Helper functions for creating uninitialized versions |
| 236 // of various object types. These are used when reading a | 235 // of various object types. These are used when reading a |
| 237 // full snapshot. | 236 // full snapshot. |
| 238 RawArray* NewArray(intptr_t len); | 237 RawArray* NewArray(intptr_t len); |
| 239 RawImmutableArray* NewImmutableArray(intptr_t len); | 238 RawImmutableArray* NewImmutableArray(intptr_t len); |
| 240 RawOneByteString* NewOneByteString(intptr_t len); | 239 RawOneByteString* NewOneByteString(intptr_t len); |
| 241 RawTwoByteString* NewTwoByteString(intptr_t len); | 240 RawTwoByteString* NewTwoByteString(intptr_t len); |
| 242 RawFourByteString* NewFourByteString(intptr_t len); | |
| 243 RawTypeArguments* NewTypeArguments(intptr_t len); | 241 RawTypeArguments* NewTypeArguments(intptr_t len); |
| 244 RawTokenStream* NewTokenStream(intptr_t len); | 242 RawTokenStream* NewTokenStream(intptr_t len); |
| 245 RawContext* NewContext(intptr_t num_variables); | 243 RawContext* NewContext(intptr_t num_variables); |
| 246 RawClass* NewClass(intptr_t class_id); | 244 RawClass* NewClass(intptr_t class_id); |
| 247 RawMint* NewMint(int64_t value); | 245 RawMint* NewMint(int64_t value); |
| 248 RawBigint* NewBigint(const char* hex_string); | 246 RawBigint* NewBigint(const char* hex_string); |
| 249 RawDouble* NewDouble(double value); | 247 RawDouble* NewDouble(double value); |
| 250 RawUnresolvedClass* NewUnresolvedClass(); | 248 RawUnresolvedClass* NewUnresolvedClass(); |
| 251 RawType* NewType(); | 249 RawType* NewType(); |
| 252 RawTypeParameter* NewTypeParameter(); | 250 RawTypeParameter* NewTypeParameter(); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 private: | 574 private: |
| 577 SnapshotWriter* writer_; | 575 SnapshotWriter* writer_; |
| 578 bool as_references_; | 576 bool as_references_; |
| 579 | 577 |
| 580 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 578 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 581 }; | 579 }; |
| 582 | 580 |
| 583 } // namespace dart | 581 } // namespace dart |
| 584 | 582 |
| 585 #endif // VM_SNAPSHOT_H_ | 583 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |