| 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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 RawCode* raw_code_; | 848 RawCode* raw_code_; |
| 849 const Code* code_; | 849 const Code* code_; |
| 850 }; | 850 }; |
| 851 }; | 851 }; |
| 852 | 852 |
| 853 void WriteWordLiteral(uword value) { | 853 void WriteWordLiteral(uword value) { |
| 854 // Padding is helpful for comparing the .S with --disassemble. | 854 // Padding is helpful for comparing the .S with --disassemble. |
| 855 #if defined(ARCH_IS_64_BIT) | 855 #if defined(ARCH_IS_64_BIT) |
| 856 stream_.Print(".quad 0x%0.16" Px "\n", value); | 856 stream_.Print(".quad 0x%0.16" Px "\n", value); |
| 857 #else | 857 #else |
| 858 stream_.Print(".word 0x%0.8" Px "\n", value); | 858 stream_.Print(".long 0x%0.8" Px "\n", value); |
| 859 #endif | 859 #endif |
| 860 } | 860 } |
| 861 | 861 |
| 862 WriteStream stream_; | 862 WriteStream stream_; |
| 863 intptr_t next_offset_; | 863 intptr_t next_offset_; |
| 864 GrowableArray<InstructionsData> instructions_; | 864 GrowableArray<InstructionsData> instructions_; |
| 865 | 865 |
| 866 DISALLOW_COPY_AND_ASSIGN(InstructionsWriter); | 866 DISALLOW_COPY_AND_ASSIGN(InstructionsWriter); |
| 867 }; | 867 }; |
| 868 | 868 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 private: | 1130 private: |
| 1131 SnapshotWriter* writer_; | 1131 SnapshotWriter* writer_; |
| 1132 bool as_references_; | 1132 bool as_references_; |
| 1133 | 1133 |
| 1134 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1134 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1135 }; | 1135 }; |
| 1136 | 1136 |
| 1137 } // namespace dart | 1137 } // namespace dart |
| 1138 | 1138 |
| 1139 #endif // VM_SNAPSHOT_H_ | 1139 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |