Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Side by Side Diff: runtime/vm/snapshot.h

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 class SnapshotReader : public BaseReader { 398 class SnapshotReader : public BaseReader {
399 public: 399 public:
400 Thread* thread() const { return thread_; } 400 Thread* thread() const { return thread_; }
401 Zone* zone() const { return zone_; } 401 Zone* zone() const { return zone_; }
402 Isolate* isolate() const { return thread_->isolate(); } 402 Isolate* isolate() const { return thread_->isolate(); }
403 Heap* heap() const { return heap_; } 403 Heap* heap() const { return heap_; }
404 ObjectStore* object_store() const { return isolate()->object_store(); } 404 ObjectStore* object_store() const { return isolate()->object_store(); }
405 ClassTable* class_table() const { return isolate()->class_table(); } 405 ClassTable* class_table() const { return isolate()->class_table(); }
406 PassiveObject* PassiveObjectHandle() { return &pobj_; } 406 PassiveObject* PassiveObjectHandle() { return &pobj_; }
407 Array* ArrayHandle() { return &array_; } 407 Array* ArrayHandle() { return &array_; }
408 Class* ClassHandle() { return &cls_; }
408 String* StringHandle() { return &str_; } 409 String* StringHandle() { return &str_; }
409 AbstractType* TypeHandle() { return &type_; } 410 AbstractType* TypeHandle() { return &type_; }
410 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } 411 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; }
411 GrowableObjectArray* TokensHandle() { return &tokens_; } 412 GrowableObjectArray* TokensHandle() { return &tokens_; }
412 TokenStream* StreamHandle() { return &stream_; } 413 TokenStream* StreamHandle() { return &stream_; }
413 ExternalTypedData* DataHandle() { return &data_; } 414 ExternalTypedData* DataHandle() { return &data_; }
414 TypedData* TypedDataHandle() { return &typed_data_; } 415 TypedData* TypedDataHandle() { return &typed_data_; }
415 Code* CodeHandle() { return &code_; } 416 Code* CodeHandle() { return &code_; }
416 Function* FunctionHandle() { return &function_; } 417 Function* FunctionHandle() { return &function_; }
417 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; } 418 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; }
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 friend class RawClass; 1082 friend class RawClass;
1082 friend class RawClosureData; 1083 friend class RawClosureData;
1083 friend class RawCode; 1084 friend class RawCode;
1084 friend class RawContextScope; 1085 friend class RawContextScope;
1085 friend class RawExceptionHandlers; 1086 friend class RawExceptionHandlers;
1086 friend class RawField; 1087 friend class RawField;
1087 friend class RawFunction; 1088 friend class RawFunction;
1088 friend class RawGrowableObjectArray; 1089 friend class RawGrowableObjectArray;
1089 friend class RawImmutableArray; 1090 friend class RawImmutableArray;
1090 friend class RawInstructions; 1091 friend class RawInstructions;
1091 friend class RawRegExp;
1092 friend class RawLibrary; 1092 friend class RawLibrary;
1093 friend class RawLinkedHashMap; 1093 friend class RawLinkedHashMap;
1094 friend class RawLiteralToken; 1094 friend class RawLiteralToken;
1095 friend class RawLocalVarDescriptors; 1095 friend class RawLocalVarDescriptors;
1096 friend class RawMirrorReference; 1096 friend class RawMirrorReference;
1097 friend class RawObjectPool; 1097 friend class RawObjectPool;
1098 friend class RawReceivePort; 1098 friend class RawReceivePort;
1099 friend class RawRegExp;
1099 friend class RawScript; 1100 friend class RawScript;
1100 friend class RawStacktrace; 1101 friend class RawStacktrace;
1101 friend class RawSubtypeTestCache; 1102 friend class RawSubtypeTestCache;
1102 friend class RawTokenStream; 1103 friend class RawTokenStream;
1104 friend class RawType;
1103 friend class RawTypeArguments; 1105 friend class RawTypeArguments;
1106 friend class RawTypeParameter;
1104 friend class RawUserTag; 1107 friend class RawUserTag;
1105 friend class SnapshotWriterVisitor; 1108 friend class SnapshotWriterVisitor;
1106 friend class WriteInlinedObjectVisitor; 1109 friend class WriteInlinedObjectVisitor;
1107 DISALLOW_COPY_AND_ASSIGN(SnapshotWriter); 1110 DISALLOW_COPY_AND_ASSIGN(SnapshotWriter);
1108 }; 1111 };
1109 1112
1110 1113
1111 class FullSnapshotWriter { 1114 class FullSnapshotWriter {
1112 public: 1115 public:
1113 static const intptr_t kInitialSize = 64 * KB; 1116 static const intptr_t kInitialSize = 64 * KB;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 private: 1213 private:
1211 SnapshotWriter* writer_; 1214 SnapshotWriter* writer_;
1212 bool as_references_; 1215 bool as_references_;
1213 1216
1214 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 1217 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
1215 }; 1218 };
1216 1219
1217 } // namespace dart 1220 } // namespace dart
1218 1221
1219 #endif // VM_SNAPSHOT_H_ 1222 #endif // VM_SNAPSHOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698