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