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 RawFourByteString; | 37 class RawFourByteString; |
38 class RawFunction; | 38 class RawFunction; |
39 class RawGrowableObjectArray; | 39 class RawGrowableObjectArray; |
40 class RawImmutableArray; | 40 class RawImmutableArray; |
41 class RawLibrary; | 41 class RawLibrary; |
42 class RawLibraryPrefix; | 42 class RawLibraryPrefix; |
43 class RawLiteralToken; | 43 class RawLiteralToken; |
44 class RawMint; | 44 class RawMint; |
45 class RawObject; | 45 class RawObject; |
46 class RawOneByteString; | 46 class RawOneByteString; |
| 47 class RawPatchClass; |
47 class RawScript; | 48 class RawScript; |
48 class RawSmi; | 49 class RawSmi; |
49 class RawTokenStream; | 50 class RawTokenStream; |
50 class RawType; | 51 class RawType; |
51 class RawTypeParameter; | 52 class RawTypeParameter; |
52 class RawTypeArguments; | 53 class RawTypeArguments; |
53 class RawTwoByteString; | 54 class RawTwoByteString; |
54 class RawUnresolvedClass; | 55 class RawUnresolvedClass; |
55 class String; | 56 class String; |
56 | 57 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 RawTypeArguments* NewTypeArguments(intptr_t len); | 217 RawTypeArguments* NewTypeArguments(intptr_t len); |
217 RawTokenStream* NewTokenStream(intptr_t len); | 218 RawTokenStream* NewTokenStream(intptr_t len); |
218 RawContext* NewContext(intptr_t num_variables); | 219 RawContext* NewContext(intptr_t num_variables); |
219 RawClass* NewClass(intptr_t class_id, bool is_signature_class); | 220 RawClass* NewClass(intptr_t class_id, bool is_signature_class); |
220 RawMint* NewMint(int64_t value); | 221 RawMint* NewMint(int64_t value); |
221 RawBigint* NewBigint(const char* hex_string); | 222 RawBigint* NewBigint(const char* hex_string); |
222 RawDouble* NewDouble(double value); | 223 RawDouble* NewDouble(double value); |
223 RawUnresolvedClass* NewUnresolvedClass(); | 224 RawUnresolvedClass* NewUnresolvedClass(); |
224 RawType* NewType(); | 225 RawType* NewType(); |
225 RawTypeParameter* NewTypeParameter(); | 226 RawTypeParameter* NewTypeParameter(); |
| 227 RawPatchClass* NewPatchClass(); |
226 RawFunction* NewFunction(); | 228 RawFunction* NewFunction(); |
227 RawField* NewField(); | 229 RawField* NewField(); |
228 RawLibrary* NewLibrary(); | 230 RawLibrary* NewLibrary(); |
229 RawLibraryPrefix* NewLibraryPrefix(); | 231 RawLibraryPrefix* NewLibraryPrefix(); |
230 RawScript* NewScript(); | 232 RawScript* NewScript(); |
231 RawLiteralToken* NewLiteralToken(); | 233 RawLiteralToken* NewLiteralToken(); |
232 RawGrowableObjectArray* NewGrowableObjectArray(); | 234 RawGrowableObjectArray* NewGrowableObjectArray(); |
233 | 235 |
234 private: | 236 private: |
235 class BackRefNode : public ZoneAllocated { | 237 class BackRefNode : public ZoneAllocated { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 friend class ContextScope; | 289 friend class ContextScope; |
288 friend class Field; | 290 friend class Field; |
289 friend class Function; | 291 friend class Function; |
290 friend class GrowableObjectArray; | 292 friend class GrowableObjectArray; |
291 friend class ImmutableArray; | 293 friend class ImmutableArray; |
292 friend class InstantiatedTypeArguments; | 294 friend class InstantiatedTypeArguments; |
293 friend class JSRegExp; | 295 friend class JSRegExp; |
294 friend class Library; | 296 friend class Library; |
295 friend class LibraryPrefix; | 297 friend class LibraryPrefix; |
296 friend class LiteralToken; | 298 friend class LiteralToken; |
| 299 friend class PatchClass; |
297 friend class Script; | 300 friend class Script; |
298 friend class TokenStream; | 301 friend class TokenStream; |
299 friend class Type; | 302 friend class Type; |
300 friend class TypeArguments; | 303 friend class TypeArguments; |
301 friend class TypeParameter; | 304 friend class TypeParameter; |
302 friend class UnresolvedClass; | 305 friend class UnresolvedClass; |
303 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); | 306 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); |
304 }; | 307 }; |
305 | 308 |
306 | 309 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 private: | 506 private: |
504 SnapshotWriter* writer_; | 507 SnapshotWriter* writer_; |
505 bool as_references_; | 508 bool as_references_; |
506 | 509 |
507 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 510 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
508 }; | 511 }; |
509 | 512 |
510 } // namespace dart | 513 } // namespace dart |
511 | 514 |
512 #endif // VM_SNAPSHOT_H_ | 515 #endif // VM_SNAPSHOT_H_ |
OLD | NEW |