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 RUNTIME_VM_SNAPSHOT_H_ | 5 #ifndef RUNTIME_VM_SNAPSHOT_H_ |
6 #define RUNTIME_VM_SNAPSHOT_H_ | 6 #define RUNTIME_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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 | 728 |
729 int32_t GetObjectOffsetFor(RawObject* raw_object); | 729 int32_t GetObjectOffsetFor(RawObject* raw_object); |
730 | 730 |
731 virtual void Write(uint8_t* vmisolate_buffer, | 731 virtual void Write(uint8_t* vmisolate_buffer, |
732 intptr_t vmisolate_length, | 732 intptr_t vmisolate_length, |
733 uint8_t* isolate_buffer, | 733 uint8_t* isolate_buffer, |
734 intptr_t isolate_length) = 0; | 734 intptr_t isolate_length) = 0; |
735 virtual intptr_t text_size() = 0; | 735 virtual intptr_t text_size() = 0; |
736 virtual intptr_t data_size() = 0; | 736 virtual intptr_t data_size() = 0; |
737 | 737 |
| 738 void DumpCombinedCodeStatistics() const; |
| 739 |
738 protected: | 740 protected: |
739 struct InstructionsData { | 741 struct InstructionsData { |
740 explicit InstructionsData(RawInstructions* insns, | 742 explicit InstructionsData(RawInstructions* insns, |
741 RawCode* code, | 743 RawCode* code, |
742 intptr_t offset) | 744 intptr_t offset) |
743 : raw_insns_(insns), raw_code_(code), offset_(offset) {} | 745 : raw_insns_(insns), raw_code_(code), offset_(offset) {} |
744 | 746 |
745 union { | 747 union { |
746 RawInstructions* raw_insns_; | 748 RawInstructions* raw_insns_; |
747 const Instructions* insns_; | 749 const Instructions* insns_; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 private: | 1018 private: |
1017 SnapshotWriter* writer_; | 1019 SnapshotWriter* writer_; |
1018 bool as_references_; | 1020 bool as_references_; |
1019 | 1021 |
1020 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1022 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
1021 }; | 1023 }; |
1022 | 1024 |
1023 } // namespace dart | 1025 } // namespace dart |
1024 | 1026 |
1025 #endif // RUNTIME_VM_SNAPSHOT_H_ | 1027 #endif // RUNTIME_VM_SNAPSHOT_H_ |
OLD | NEW |