| 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 14 matching lines...) Expand all Loading... |
| 25 class Code; | 25 class Code; |
| 26 class ExternalTypedData; | 26 class ExternalTypedData; |
| 27 class GrowableObjectArray; | 27 class GrowableObjectArray; |
| 28 class Heap; | 28 class Heap; |
| 29 class Instructions; | 29 class Instructions; |
| 30 class LanguageError; | 30 class LanguageError; |
| 31 class Library; | 31 class Library; |
| 32 class Object; | 32 class Object; |
| 33 class PassiveObject; | 33 class PassiveObject; |
| 34 class ObjectStore; | 34 class ObjectStore; |
| 35 class MegamorphicCache; |
| 35 class PageSpace; | 36 class PageSpace; |
| 36 class RawApiError; | 37 class RawApiError; |
| 37 class RawArray; | 38 class RawArray; |
| 38 class RawBigint; | 39 class RawBigint; |
| 39 class RawBoundedType; | 40 class RawBoundedType; |
| 40 class RawCapability; | 41 class RawCapability; |
| 41 class RawClass; | 42 class RawClass; |
| 42 class RawClosureData; | 43 class RawClosureData; |
| 43 class RawContext; | 44 class RawContext; |
| 44 class RawContextScope; | 45 class RawContextScope; |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 PassiveObject* PassiveObjectHandle() { return &pobj_; } | 333 PassiveObject* PassiveObjectHandle() { return &pobj_; } |
| 333 Array* ArrayHandle() { return &array_; } | 334 Array* ArrayHandle() { return &array_; } |
| 334 String* StringHandle() { return &str_; } | 335 String* StringHandle() { return &str_; } |
| 335 AbstractType* TypeHandle() { return &type_; } | 336 AbstractType* TypeHandle() { return &type_; } |
| 336 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } | 337 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } |
| 337 Array* TokensHandle() { return &tokens_; } | 338 Array* TokensHandle() { return &tokens_; } |
| 338 TokenStream* StreamHandle() { return &stream_; } | 339 TokenStream* StreamHandle() { return &stream_; } |
| 339 ExternalTypedData* DataHandle() { return &data_; } | 340 ExternalTypedData* DataHandle() { return &data_; } |
| 340 TypedData* TypedDataHandle() { return &typed_data_; } | 341 TypedData* TypedDataHandle() { return &typed_data_; } |
| 341 Code* CodeHandle() { return &code_; } | 342 Code* CodeHandle() { return &code_; } |
| 343 Function* FunctionHandle() { return &function_; } |
| 344 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; } |
| 342 Snapshot::Kind kind() const { return kind_; } | 345 Snapshot::Kind kind() const { return kind_; } |
| 343 bool snapshot_code() const { return snapshot_code_; } | 346 bool snapshot_code() const { return snapshot_code_; } |
| 344 | 347 |
| 345 // Reads an object. | 348 // Reads an object. |
| 346 RawObject* ReadObject(); | 349 RawObject* ReadObject(); |
| 347 | 350 |
| 348 // Add object to backward references. | 351 // Add object to backward references. |
| 349 void AddBackRef(intptr_t id, | 352 void AddBackRef(intptr_t id, |
| 350 Object* obj, | 353 Object* obj, |
| 351 DeserializeState state, | 354 DeserializeState state, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 Field& field_; // Temporary Field handle. | 517 Field& field_; // Temporary Field handle. |
| 515 String& str_; // Temporary String handle. | 518 String& str_; // Temporary String handle. |
| 516 Library& library_; // Temporary library handle. | 519 Library& library_; // Temporary library handle. |
| 517 AbstractType& type_; // Temporary type handle. | 520 AbstractType& type_; // Temporary type handle. |
| 518 TypeArguments& type_arguments_; // Temporary type argument handle. | 521 TypeArguments& type_arguments_; // Temporary type argument handle. |
| 519 Array& tokens_; // Temporary tokens handle. | 522 Array& tokens_; // Temporary tokens handle. |
| 520 TokenStream& stream_; // Temporary token stream handle. | 523 TokenStream& stream_; // Temporary token stream handle. |
| 521 ExternalTypedData& data_; // Temporary stream data handle. | 524 ExternalTypedData& data_; // Temporary stream data handle. |
| 522 TypedData& typed_data_; // Temporary typed data handle. | 525 TypedData& typed_data_; // Temporary typed data handle. |
| 523 Code& code_; // Temporary code handle. | 526 Code& code_; // Temporary code handle. |
| 527 Function& function_; // Temporary function handle. |
| 528 MegamorphicCache& megamorphic_cache_; // Temporary megamorphic cache handle. |
| 524 UnhandledException& error_; // Error handle. | 529 UnhandledException& error_; // Error handle. |
| 525 intptr_t max_vm_isolate_object_id_; | 530 intptr_t max_vm_isolate_object_id_; |
| 526 ZoneGrowableArray<BackRefNode>* backward_references_; | 531 ZoneGrowableArray<BackRefNode>* backward_references_; |
| 527 InstructionsReader* instructions_reader_; | 532 InstructionsReader* instructions_reader_; |
| 528 | 533 |
| 529 friend class ApiError; | 534 friend class ApiError; |
| 530 friend class Array; | 535 friend class Array; |
| 531 friend class Bigint; | 536 friend class Bigint; |
| 532 friend class BoundedType; | 537 friend class BoundedType; |
| 533 friend class Class; | 538 friend class Class; |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 private: | 1093 private: |
| 1089 SnapshotWriter* writer_; | 1094 SnapshotWriter* writer_; |
| 1090 bool as_references_; | 1095 bool as_references_; |
| 1091 | 1096 |
| 1092 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1097 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1093 }; | 1098 }; |
| 1094 | 1099 |
| 1095 } // namespace dart | 1100 } // namespace dart |
| 1096 | 1101 |
| 1097 #endif // VM_SNAPSHOT_H_ | 1102 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |