| 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 26 matching lines...) Expand all Loading... |
| 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 RawFunction; | 41 class RawFunction; |
| 42 class RawGrowableObjectArray; | 42 class RawGrowableObjectArray; |
| 43 class RawImmutableArray; | 43 class RawImmutableArray; |
| 44 class RawLanguageError; | 44 class RawLanguageError; |
| 45 class RawLibrary; | 45 class RawLibrary; |
| 46 class RawLibraryPrefix; | 46 class RawLibraryPrefix; |
| 47 class RawNamespace; |
| 47 class RawLiteralToken; | 48 class RawLiteralToken; |
| 48 class RawMint; | 49 class RawMint; |
| 49 class RawObject; | 50 class RawObject; |
| 50 class RawOneByteString; | 51 class RawOneByteString; |
| 51 class RawPatchClass; | 52 class RawPatchClass; |
| 52 class RawScript; | 53 class RawScript; |
| 53 class RawSmi; | 54 class RawSmi; |
| 54 class RawTokenStream; | 55 class RawTokenStream; |
| 55 class RawType; | 56 class RawType; |
| 56 class RawTypeParameter; | 57 class RawTypeParameter; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); |
| 253 RawFunction* NewFunction(); | 254 RawFunction* NewFunction(); |
| 254 RawField* NewField(); | 255 RawField* NewField(); |
| 255 RawLibrary* NewLibrary(); | 256 RawLibrary* NewLibrary(); |
| 256 RawLibraryPrefix* NewLibraryPrefix(); | 257 RawLibraryPrefix* NewLibraryPrefix(); |
| 258 RawNamespace* NewNamespace(); |
| 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 |
| 263 private: | 265 private: |
| 264 class BackRefNode : public ZoneAllocated { | 266 class BackRefNode : public ZoneAllocated { |
| 265 public: | 267 public: |
| 266 BackRefNode(Object* reference, DeserializeState state) | 268 BackRefNode(Object* reference, DeserializeState state) |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 friend class Field; | 322 friend class Field; |
| 321 friend class ClosureData; | 323 friend class ClosureData; |
| 322 friend class Function; | 324 friend class Function; |
| 323 friend class GrowableObjectArray; | 325 friend class GrowableObjectArray; |
| 324 friend class ImmutableArray; | 326 friend class ImmutableArray; |
| 325 friend class InstantiatedTypeArguments; | 327 friend class InstantiatedTypeArguments; |
| 326 friend class JSRegExp; | 328 friend class JSRegExp; |
| 327 friend class LanguageError; | 329 friend class LanguageError; |
| 328 friend class Library; | 330 friend class Library; |
| 329 friend class LibraryPrefix; | 331 friend class LibraryPrefix; |
| 332 friend class Namespace; |
| 330 friend class LiteralToken; | 333 friend class LiteralToken; |
| 331 friend class PatchClass; | 334 friend class PatchClass; |
| 332 friend class Script; | 335 friend class Script; |
| 333 friend class TokenStream; | 336 friend class TokenStream; |
| 334 friend class Type; | 337 friend class Type; |
| 335 friend class TypeArguments; | 338 friend class TypeArguments; |
| 336 friend class TypeParameter; | 339 friend class TypeParameter; |
| 337 friend class UnresolvedClass; | 340 friend class UnresolvedClass; |
| 338 friend class WeakProperty; | 341 friend class WeakProperty; |
| 339 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); | 342 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); |
| (...skipping 230 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 |