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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // Read a VM isolate object that was serialized as an Id. | 354 // Read a VM isolate object that was serialized as an Id. |
355 RawObject* ReadVMIsolateObject(intptr_t object_id); | 355 RawObject* ReadVMIsolateObject(intptr_t object_id); |
356 | 356 |
357 // Read an object that was serialized as an Id (singleton in object store, | 357 // Read an object that was serialized as an Id (singleton in object store, |
358 // or an object that was already serialized before). | 358 // or an object that was already serialized before). |
359 RawObject* ReadIndexedObject(intptr_t object_id); | 359 RawObject* ReadIndexedObject(intptr_t object_id); |
360 | 360 |
361 // Read an inlined object from the stream. | 361 // Read an inlined object from the stream. |
362 RawObject* ReadInlinedObject(intptr_t object_id); | 362 RawObject* ReadInlinedObject(intptr_t object_id); |
363 | 363 |
364 // Based on header field check to see if it is an internal VM class. | 364 // Decode class id from the header field. |
365 RawClass* LookupInternalClass(intptr_t class_header); | 365 intptr_t LookupInternalClass(intptr_t class_header); |
366 | 366 |
367 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags); | 367 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags); |
368 | 368 |
369 intptr_t NextAvailableObjectId() const; | 369 intptr_t NextAvailableObjectId() const; |
370 | 370 |
371 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). | 371 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). |
372 Isolate* isolate_; // Current isolate. | 372 Isolate* isolate_; // Current isolate. |
373 Heap* heap_; // Heap of the current isolate. | 373 Heap* heap_; // Heap of the current isolate. |
374 PageSpace* old_space_; // Old space of the current isolate. | 374 PageSpace* old_space_; // Old space of the current isolate. |
375 Class& cls_; // Temporary Class handle. | 375 Class& cls_; // Temporary Class handle. |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 private: | 727 private: |
728 SnapshotWriter* writer_; | 728 SnapshotWriter* writer_; |
729 bool as_references_; | 729 bool as_references_; |
730 | 730 |
731 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 731 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
732 }; | 732 }; |
733 | 733 |
734 } // namespace dart | 734 } // namespace dart |
735 | 735 |
736 #endif // VM_SNAPSHOT_H_ | 736 #endif // VM_SNAPSHOT_H_ |
OLD | NEW |