| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 | 314 |
| 315 class Assembler : public ValueObject { | 315 class Assembler : public ValueObject { |
| 316 public: | 316 public: |
| 317 explicit Assembler(bool use_far_branches = false) | 317 explicit Assembler(bool use_far_branches = false) |
| 318 : buffer_(), | 318 : buffer_(), |
| 319 prologue_offset_(-1), | 319 prologue_offset_(-1), |
| 320 use_far_branches_(use_far_branches), | 320 use_far_branches_(use_far_branches), |
| 321 comments_(), | 321 comments_(), |
| 322 constant_pool_allowed_(true) { } | 322 constant_pool_allowed_(false) { } |
| 323 | 323 |
| 324 ~Assembler() { } | 324 ~Assembler() { } |
| 325 | 325 |
| 326 void PopRegister(Register r) { Pop(r); } | 326 void PopRegister(Register r) { Pop(r); } |
| 327 | 327 |
| 328 void Bind(Label* label); | 328 void Bind(Label* label); |
| 329 void Jump(Label* label) { b(label); } | 329 void Jump(Label* label) { b(label); } |
| 330 | 330 |
| 331 // Misc. functionality | 331 // Misc. functionality |
| 332 intptr_t CodeSize() const { return buffer_.Size(); } | 332 intptr_t CodeSize() const { return buffer_.Size(); } |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 Register scratch, | 748 Register scratch, |
| 749 Label* miss); | 749 Label* miss); |
| 750 | 750 |
| 751 void UpdateRangeFeedback(Register value, | 751 void UpdateRangeFeedback(Register value, |
| 752 intptr_t idx, | 752 intptr_t idx, |
| 753 Register ic_data, | 753 Register ic_data, |
| 754 Register scratch1, | 754 Register scratch1, |
| 755 Register scratch2, | 755 Register scratch2, |
| 756 Label* miss); | 756 Label* miss); |
| 757 | 757 |
| 758 intptr_t FindImmediate(int32_t imm); |
| 758 void LoadWordFromPoolOffset(Register rd, int32_t offset, Condition cond = AL); | 759 void LoadWordFromPoolOffset(Register rd, int32_t offset, Condition cond = AL); |
| 759 void LoadFromOffset(OperandSize type, | 760 void LoadFromOffset(OperandSize type, |
| 760 Register reg, | 761 Register reg, |
| 761 Register base, | 762 Register base, |
| 762 int32_t offset, | 763 int32_t offset, |
| 763 Condition cond = AL); | 764 Condition cond = AL); |
| 764 void LoadFieldFromOffset(OperandSize type, | 765 void LoadFieldFromOffset(OperandSize type, |
| 765 Register reg, | 766 Register reg, |
| 766 Register base, | 767 Register base, |
| 767 int32_t offset, | 768 int32_t offset, |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 Register new_value, | 1142 Register new_value, |
| 1142 FieldContent old_content); | 1143 FieldContent old_content); |
| 1143 | 1144 |
| 1144 DISALLOW_ALLOCATION(); | 1145 DISALLOW_ALLOCATION(); |
| 1145 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1146 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1146 }; | 1147 }; |
| 1147 | 1148 |
| 1148 } // namespace dart | 1149 } // namespace dart |
| 1149 | 1150 |
| 1150 #endif // VM_ASSEMBLER_ARM_H_ | 1151 #endif // VM_ASSEMBLER_ARM_H_ |
| OLD | NEW |