| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 class SnapshotReader : public BaseReader { | 403 class SnapshotReader : public BaseReader { |
| 404 public: | 404 public: |
| 405 Thread* thread() const { return thread_; } | 405 Thread* thread() const { return thread_; } |
| 406 Zone* zone() const { return zone_; } | 406 Zone* zone() const { return zone_; } |
| 407 Isolate* isolate() const { return thread_->isolate(); } | 407 Isolate* isolate() const { return thread_->isolate(); } |
| 408 Heap* heap() const { return heap_; } | 408 Heap* heap() const { return heap_; } |
| 409 ObjectStore* object_store() const { return isolate()->object_store(); } | 409 ObjectStore* object_store() const { return isolate()->object_store(); } |
| 410 ClassTable* class_table() const { return isolate()->class_table(); } | 410 ClassTable* class_table() const { return isolate()->class_table(); } |
| 411 PassiveObject* PassiveObjectHandle() { return &pobj_; } | 411 PassiveObject* PassiveObjectHandle() { return &pobj_; } |
| 412 Array* ArrayHandle() { return &array_; } | 412 Array* ArrayHandle() { return &array_; } |
| 413 Class* ClassHandle() { return &cls_; } |
| 413 String* StringHandle() { return &str_; } | 414 String* StringHandle() { return &str_; } |
| 414 AbstractType* TypeHandle() { return &type_; } | 415 AbstractType* TypeHandle() { return &type_; } |
| 415 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } | 416 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } |
| 416 GrowableObjectArray* TokensHandle() { return &tokens_; } | 417 GrowableObjectArray* TokensHandle() { return &tokens_; } |
| 417 TokenStream* StreamHandle() { return &stream_; } | 418 TokenStream* StreamHandle() { return &stream_; } |
| 418 ExternalTypedData* DataHandle() { return &data_; } | 419 ExternalTypedData* DataHandle() { return &data_; } |
| 419 TypedData* TypedDataHandle() { return &typed_data_; } | 420 TypedData* TypedDataHandle() { return &typed_data_; } |
| 420 Code* CodeHandle() { return &code_; } | 421 Code* CodeHandle() { return &code_; } |
| 421 Function* FunctionHandle() { return &function_; } | 422 Function* FunctionHandle() { return &function_; } |
| 422 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; } | 423 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; } |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 friend class RawClass; | 1087 friend class RawClass; |
| 1087 friend class RawClosureData; | 1088 friend class RawClosureData; |
| 1088 friend class RawCode; | 1089 friend class RawCode; |
| 1089 friend class RawContextScope; | 1090 friend class RawContextScope; |
| 1090 friend class RawExceptionHandlers; | 1091 friend class RawExceptionHandlers; |
| 1091 friend class RawField; | 1092 friend class RawField; |
| 1092 friend class RawFunction; | 1093 friend class RawFunction; |
| 1093 friend class RawGrowableObjectArray; | 1094 friend class RawGrowableObjectArray; |
| 1094 friend class RawImmutableArray; | 1095 friend class RawImmutableArray; |
| 1095 friend class RawInstructions; | 1096 friend class RawInstructions; |
| 1096 friend class RawRegExp; | |
| 1097 friend class RawLibrary; | 1097 friend class RawLibrary; |
| 1098 friend class RawLinkedHashMap; | 1098 friend class RawLinkedHashMap; |
| 1099 friend class RawLiteralToken; | 1099 friend class RawLiteralToken; |
| 1100 friend class RawLocalVarDescriptors; | 1100 friend class RawLocalVarDescriptors; |
| 1101 friend class RawMirrorReference; | 1101 friend class RawMirrorReference; |
| 1102 friend class RawObjectPool; | 1102 friend class RawObjectPool; |
| 1103 friend class RawReceivePort; | 1103 friend class RawReceivePort; |
| 1104 friend class RawRegExp; |
| 1104 friend class RawScript; | 1105 friend class RawScript; |
| 1105 friend class RawStacktrace; | 1106 friend class RawStacktrace; |
| 1106 friend class RawSubtypeTestCache; | 1107 friend class RawSubtypeTestCache; |
| 1107 friend class RawTokenStream; | 1108 friend class RawTokenStream; |
| 1109 friend class RawType; |
| 1108 friend class RawTypeArguments; | 1110 friend class RawTypeArguments; |
| 1111 friend class RawTypeParameter; |
| 1109 friend class RawUserTag; | 1112 friend class RawUserTag; |
| 1110 friend class SnapshotWriterVisitor; | 1113 friend class SnapshotWriterVisitor; |
| 1111 friend class WriteInlinedObjectVisitor; | 1114 friend class WriteInlinedObjectVisitor; |
| 1112 DISALLOW_COPY_AND_ASSIGN(SnapshotWriter); | 1115 DISALLOW_COPY_AND_ASSIGN(SnapshotWriter); |
| 1113 }; | 1116 }; |
| 1114 | 1117 |
| 1115 | 1118 |
| 1116 class FullSnapshotWriter { | 1119 class FullSnapshotWriter { |
| 1117 public: | 1120 public: |
| 1118 static const intptr_t kInitialSize = 64 * KB; | 1121 static const intptr_t kInitialSize = 64 * KB; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 private: | 1218 private: |
| 1216 SnapshotWriter* writer_; | 1219 SnapshotWriter* writer_; |
| 1217 bool as_references_; | 1220 bool as_references_; |
| 1218 | 1221 |
| 1219 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1222 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1220 }; | 1223 }; |
| 1221 | 1224 |
| 1222 } // namespace dart | 1225 } // namespace dart |
| 1223 | 1226 |
| 1224 #endif // VM_SNAPSHOT_H_ | 1227 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |