| 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 RawObject* raw() const { return raw_; } | 525 RawObject* raw() const { return raw_; } |
| 526 uword tags() const { return tags_; } | 526 uword tags() const { return tags_; } |
| 527 | 527 |
| 528 private: | 528 private: |
| 529 RawObject* raw_; | 529 RawObject* raw_; |
| 530 uword tags_; | 530 uword tags_; |
| 531 | 531 |
| 532 DISALLOW_COPY_AND_ASSIGN(ForwardObjectNode); | 532 DISALLOW_COPY_AND_ASSIGN(ForwardObjectNode); |
| 533 }; | 533 }; |
| 534 | 534 |
| 535 intptr_t MarkObject(RawObject* raw, RawClass* cls); | 535 intptr_t MarkObject(RawObject* raw); |
| 536 |
| 537 bool CheckAndWritePredefinedObject(RawObject* raw); |
| 536 | 538 |
| 537 void WriteInlinedObject(RawObject* raw); | 539 void WriteInlinedObject(RawObject* raw); |
| 538 | 540 |
| 539 ObjectStore* object_store() const { return object_store_; } | 541 ObjectStore* object_store() const { return object_store_; } |
| 540 | 542 |
| 541 Snapshot::Kind kind_; | 543 Snapshot::Kind kind_; |
| 542 ObjectStore* object_store_; // Object store for common classes. | 544 ObjectStore* object_store_; // Object store for common classes. |
| 543 ClassTable* class_table_; // Class table for the class index to class lookup. | 545 ClassTable* class_table_; // Class table for the class index to class lookup. |
| 544 GrowableArray<ForwardObjectNode*> forward_list_; | 546 GrowableArray<ForwardObjectNode*> forward_list_; |
| 545 | 547 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 574 | 576 |
| 575 private: | 577 private: |
| 576 SnapshotWriter* writer_; | 578 SnapshotWriter* writer_; |
| 577 | 579 |
| 578 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 580 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 579 }; | 581 }; |
| 580 | 582 |
| 581 } // namespace dart | 583 } // namespace dart |
| 582 | 584 |
| 583 #endif // VM_SNAPSHOT_H_ | 585 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |