| 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 478 |
| 479 // Implementation to read an object. | 479 // Implementation to read an object. |
| 480 RawObject* ReadObjectImpl(bool as_reference, | 480 RawObject* ReadObjectImpl(bool as_reference, |
| 481 intptr_t patch_object_id = kInvalidPatchIndex, | 481 intptr_t patch_object_id = kInvalidPatchIndex, |
| 482 intptr_t patch_offset = 0); | 482 intptr_t patch_offset = 0); |
| 483 RawObject* ReadObjectImpl(intptr_t header, | 483 RawObject* ReadObjectImpl(intptr_t header, |
| 484 bool as_reference, | 484 bool as_reference, |
| 485 intptr_t patch_object_id, | 485 intptr_t patch_object_id, |
| 486 intptr_t patch_offset); | 486 intptr_t patch_offset); |
| 487 | 487 |
| 488 // Read an object reference from the stream. | 488 // Read a Dart Instance object. |
| 489 RawObject* ReadObjectRef(intptr_t object_id, | 489 RawObject* ReadInstance(intptr_t object_id, |
| 490 intptr_t class_header, | 490 intptr_t tags, |
| 491 intptr_t tags, | 491 bool as_reference); |
| 492 intptr_t patch_object_id = kInvalidPatchIndex, | |
| 493 intptr_t patch_offset = 0); | |
| 494 | |
| 495 // Read an inlined object from the stream. | |
| 496 RawObject* ReadInlinedObject(intptr_t object_id, | |
| 497 intptr_t class_header, | |
| 498 intptr_t tags, | |
| 499 intptr_t patch_object_id, | |
| 500 intptr_t patch_offset); | |
| 501 | 492 |
| 502 // Read a VM isolate object that was serialized as an Id. | 493 // Read a VM isolate object that was serialized as an Id. |
| 503 RawObject* ReadVMIsolateObject(intptr_t object_id); | 494 RawObject* ReadVMIsolateObject(intptr_t object_id); |
| 504 | 495 |
| 505 // Read an object that was serialized as an Id (singleton in object store, | 496 // Read an object that was serialized as an Id (singleton in object store, |
| 506 // or an object that was already serialized before). | 497 // or an object that was already serialized before). |
| 507 RawObject* ReadIndexedObject(intptr_t object_id, | 498 RawObject* ReadIndexedObject(intptr_t object_id, |
| 508 intptr_t patch_object_id, | 499 intptr_t patch_object_id, |
| 509 intptr_t patch_offset); | 500 intptr_t patch_offset); |
| 510 | 501 |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 private: | 1121 private: |
| 1131 SnapshotWriter* writer_; | 1122 SnapshotWriter* writer_; |
| 1132 bool as_references_; | 1123 bool as_references_; |
| 1133 | 1124 |
| 1134 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1125 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1135 }; | 1126 }; |
| 1136 | 1127 |
| 1137 } // namespace dart | 1128 } // namespace dart |
| 1138 | 1129 |
| 1139 #endif // VM_SNAPSHOT_H_ | 1130 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |