OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_ASSEMBLER_DBC_H_ | 5 #ifndef RUNTIME_VM_ASSEMBLER_DBC_H_ |
6 #define RUNTIME_VM_ASSEMBLER_DBC_H_ | 6 #define RUNTIME_VM_ASSEMBLER_DBC_H_ |
7 | 7 |
8 #ifndef RUNTIME_VM_ASSEMBLER_H_ | 8 #ifndef RUNTIME_VM_ASSEMBLER_H_ |
9 #error Do not include assembler_dbc.h directly; use assembler.h instead. | 9 #error Do not include assembler_dbc.h directly; use assembler.h instead. |
10 #endif | 10 #endif |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 79 } |
80 | 80 |
81 ~Assembler() { } | 81 ~Assembler() { } |
82 | 82 |
83 void Bind(Label* label); | 83 void Bind(Label* label); |
84 void Jump(Label* label); | 84 void Jump(Label* label); |
85 | 85 |
86 // Misc. functionality | 86 // Misc. functionality |
87 intptr_t CodeSize() const { return buffer_.Size(); } | 87 intptr_t CodeSize() const { return buffer_.Size(); } |
88 intptr_t prologue_offset() const { return 0; } | 88 intptr_t prologue_offset() const { return 0; } |
| 89 bool has_single_entry_point() const { return true; } |
89 | 90 |
90 // Count the fixups that produce a pointer offset, without processing | 91 // Count the fixups that produce a pointer offset, without processing |
91 // the fixups. | 92 // the fixups. |
92 intptr_t CountPointerOffsets() const { return 0; } | 93 intptr_t CountPointerOffsets() const { return 0; } |
93 | 94 |
94 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 95 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
95 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. | 96 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. |
96 return buffer_.pointer_offsets(); | 97 return buffer_.pointer_offsets(); |
97 } | 98 } |
98 | 99 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 GrowableArray<CodeComment*> comments_; | 191 GrowableArray<CodeComment*> comments_; |
191 | 192 |
192 DISALLOW_ALLOCATION(); | 193 DISALLOW_ALLOCATION(); |
193 DISALLOW_COPY_AND_ASSIGN(Assembler); | 194 DISALLOW_COPY_AND_ASSIGN(Assembler); |
194 }; | 195 }; |
195 | 196 |
196 | 197 |
197 } // namespace dart | 198 } // namespace dart |
198 | 199 |
199 #endif // RUNTIME_VM_ASSEMBLER_DBC_H_ | 200 #endif // RUNTIME_VM_ASSEMBLER_DBC_H_ |
OLD | NEW |