| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ASSEMBLER_ARM_H_ | 5 #ifndef VM_ASSEMBLER_ARM_H_ |
| 6 #define VM_ASSEMBLER_ARM_H_ | 6 #define VM_ASSEMBLER_ARM_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_arm.h directly; use assembler.h instead. | 9 #error Do not include assembler_arm.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 prologue_offset_(-1), | 296 prologue_offset_(-1), |
| 297 use_far_branches_(use_far_branches), | 297 use_far_branches_(use_far_branches), |
| 298 comments_(), | 298 comments_(), |
| 299 allow_constant_pool_(true) { } | 299 allow_constant_pool_(true) { } |
| 300 | 300 |
| 301 ~Assembler() { } | 301 ~Assembler() { } |
| 302 | 302 |
| 303 void PopRegister(Register r) { Pop(r); } | 303 void PopRegister(Register r) { Pop(r); } |
| 304 | 304 |
| 305 void Bind(Label* label); | 305 void Bind(Label* label); |
| 306 void Jump(Label* label) { b(label); } |
| 306 | 307 |
| 307 // Misc. functionality | 308 // Misc. functionality |
| 308 intptr_t CodeSize() const { return buffer_.Size(); } | 309 intptr_t CodeSize() const { return buffer_.Size(); } |
| 309 intptr_t prologue_offset() const { return prologue_offset_; } | 310 intptr_t prologue_offset() const { return prologue_offset_; } |
| 310 | 311 |
| 311 // Count the fixups that produce a pointer offset, without processing | 312 // Count the fixups that produce a pointer offset, without processing |
| 312 // the fixups. On ARM there are no pointers in code. | 313 // the fixups. On ARM there are no pointers in code. |
| 313 intptr_t CountPointerOffsets() const { return 0; } | 314 intptr_t CountPointerOffsets() const { return 0; } |
| 314 | 315 |
| 315 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 316 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 Register value, | 993 Register value, |
| 993 Label* no_update); | 994 Label* no_update); |
| 994 | 995 |
| 995 DISALLOW_ALLOCATION(); | 996 DISALLOW_ALLOCATION(); |
| 996 DISALLOW_COPY_AND_ASSIGN(Assembler); | 997 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 997 }; | 998 }; |
| 998 | 999 |
| 999 } // namespace dart | 1000 } // namespace dart |
| 1000 | 1001 |
| 1001 #endif // VM_ASSEMBLER_ARM_H_ | 1002 #endif // VM_ASSEMBLER_ARM_H_ |
| OLD | NEW |