| 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 void WriteClassId(RawClass* cls); | 497 void WriteClassId(RawClass* cls); |
| 498 void WriteObjectImpl(RawObject* raw); | 498 void WriteObjectImpl(RawObject* raw); |
| 499 void WriteInlinedObject(RawObject* raw); | 499 void WriteInlinedObject(RawObject* raw); |
| 500 void WriteForwardedObjects(); | 500 void WriteForwardedObjects(); |
| 501 void ArrayWriteTo(intptr_t object_id, | 501 void ArrayWriteTo(intptr_t object_id, |
| 502 intptr_t array_kind, | 502 intptr_t array_kind, |
| 503 intptr_t tags, | 503 intptr_t tags, |
| 504 RawSmi* length, | 504 RawSmi* length, |
| 505 RawAbstractTypeArguments* type_arguments, | 505 RawAbstractTypeArguments* type_arguments, |
| 506 RawObject* data[]); | 506 RawObject* data[]); |
| 507 void CheckIfSerializable(RawClass* cls); |
| 508 void WriteInstance(intptr_t object_id, |
| 509 RawObject* raw, |
| 510 RawClass* cls, |
| 511 intptr_t tags); |
| 512 void WriteInstanceRef(RawObject* raw, RawClass* cls); |
| 507 | 513 |
| 508 ObjectStore* object_store() const { return object_store_; } | 514 ObjectStore* object_store() const { return object_store_; } |
| 509 | 515 |
| 510 private: | 516 private: |
| 511 Snapshot::Kind kind_; | 517 Snapshot::Kind kind_; |
| 512 ObjectStore* object_store_; // Object store for common classes. | 518 ObjectStore* object_store_; // Object store for common classes. |
| 513 ClassTable* class_table_; // Class table for the class index to class lookup. | 519 ClassTable* class_table_; // Class table for the class index to class lookup. |
| 514 GrowableArray<ForwardObjectNode*> forward_list_; | 520 GrowableArray<ForwardObjectNode*> forward_list_; |
| 515 Exceptions::ExceptionType exception_type_; // Exception type. | 521 Exceptions::ExceptionType exception_type_; // Exception type. |
| 516 const char* exception_msg_; // Message associated with exception. | 522 const char* exception_msg_; // Message associated with exception. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 private: | 610 private: |
| 605 SnapshotWriter* writer_; | 611 SnapshotWriter* writer_; |
| 606 bool as_references_; | 612 bool as_references_; |
| 607 | 613 |
| 608 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 614 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 609 }; | 615 }; |
| 610 | 616 |
| 611 } // namespace dart | 617 } // namespace dart |
| 612 | 618 |
| 613 #endif // VM_SNAPSHOT_H_ | 619 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |