| 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 20 matching lines...) Expand all Loading... |
| 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; | 39 class RawFourByteString; |
| 40 class RawClosureData; | 40 class RawClosureData; |
| 41 class RawRedirectionData; |
| 41 class RawFunction; | 42 class RawFunction; |
| 42 class RawGrowableObjectArray; | 43 class RawGrowableObjectArray; |
| 43 class RawImmutableArray; | 44 class RawImmutableArray; |
| 44 class RawLanguageError; | 45 class RawLanguageError; |
| 45 class RawLibrary; | 46 class RawLibrary; |
| 46 class RawLibraryPrefix; | 47 class RawLibraryPrefix; |
| 47 class RawLiteralToken; | 48 class RawLiteralToken; |
| 48 class RawMint; | 49 class RawMint; |
| 49 class RawObject; | 50 class RawObject; |
| 50 class RawOneByteString; | 51 class RawOneByteString; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 RawContext* NewContext(intptr_t num_variables); | 244 RawContext* NewContext(intptr_t num_variables); |
| 244 RawClass* NewClass(intptr_t class_id, bool is_signature_class); | 245 RawClass* NewClass(intptr_t class_id, bool is_signature_class); |
| 245 RawMint* NewMint(int64_t value); | 246 RawMint* NewMint(int64_t value); |
| 246 RawBigint* NewBigint(const char* hex_string); | 247 RawBigint* NewBigint(const char* hex_string); |
| 247 RawDouble* NewDouble(double value); | 248 RawDouble* NewDouble(double value); |
| 248 RawUnresolvedClass* NewUnresolvedClass(); | 249 RawUnresolvedClass* NewUnresolvedClass(); |
| 249 RawType* NewType(); | 250 RawType* NewType(); |
| 250 RawTypeParameter* NewTypeParameter(); | 251 RawTypeParameter* NewTypeParameter(); |
| 251 RawPatchClass* NewPatchClass(); | 252 RawPatchClass* NewPatchClass(); |
| 252 RawClosureData* NewClosureData(); | 253 RawClosureData* NewClosureData(); |
| 254 RawRedirectionData* NewRedirectionData(); |
| 253 RawFunction* NewFunction(); | 255 RawFunction* NewFunction(); |
| 254 RawField* NewField(); | 256 RawField* NewField(); |
| 255 RawLibrary* NewLibrary(); | 257 RawLibrary* NewLibrary(); |
| 256 RawLibraryPrefix* NewLibraryPrefix(); | 258 RawLibraryPrefix* NewLibraryPrefix(); |
| 257 RawScript* NewScript(); | 259 RawScript* NewScript(); |
| 258 RawLiteralToken* NewLiteralToken(); | 260 RawLiteralToken* NewLiteralToken(); |
| 259 RawGrowableObjectArray* NewGrowableObjectArray(); | 261 RawGrowableObjectArray* NewGrowableObjectArray(); |
| 260 RawApiError* NewApiError(); | 262 RawApiError* NewApiError(); |
| 261 RawLanguageError* NewLanguageError(); | 263 RawLanguageError* NewLanguageError(); |
| 262 | 264 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 ExternalUint8Array& data_; // Temporary stream data handle. | 314 ExternalUint8Array& data_; // Temporary stream data handle. |
| 313 GrowableArray<BackRefNode*> backward_references_; | 315 GrowableArray<BackRefNode*> backward_references_; |
| 314 | 316 |
| 315 friend class ApiError; | 317 friend class ApiError; |
| 316 friend class Array; | 318 friend class Array; |
| 317 friend class Class; | 319 friend class Class; |
| 318 friend class Context; | 320 friend class Context; |
| 319 friend class ContextScope; | 321 friend class ContextScope; |
| 320 friend class Field; | 322 friend class Field; |
| 321 friend class ClosureData; | 323 friend class ClosureData; |
| 324 friend class RedirectionData; |
| 322 friend class Function; | 325 friend class Function; |
| 323 friend class GrowableObjectArray; | 326 friend class GrowableObjectArray; |
| 324 friend class ImmutableArray; | 327 friend class ImmutableArray; |
| 325 friend class InstantiatedTypeArguments; | 328 friend class InstantiatedTypeArguments; |
| 326 friend class JSRegExp; | 329 friend class JSRegExp; |
| 327 friend class LanguageError; | 330 friend class LanguageError; |
| 328 friend class Library; | 331 friend class Library; |
| 329 friend class LibraryPrefix; | 332 friend class LibraryPrefix; |
| 330 friend class LiteralToken; | 333 friend class LiteralToken; |
| 331 friend class PatchClass; | 334 friend class PatchClass; |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 private: | 573 private: |
| 571 SnapshotWriter* writer_; | 574 SnapshotWriter* writer_; |
| 572 bool as_references_; | 575 bool as_references_; |
| 573 | 576 |
| 574 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 577 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 575 }; | 578 }; |
| 576 | 579 |
| 577 } // namespace dart | 580 } // namespace dart |
| 578 | 581 |
| 579 #endif // VM_SNAPSHOT_H_ | 582 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |