| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 ShifterOperand so(rm, shift, shift_imm); | 248 ShifterOperand so(rm, shift, shift_imm); |
| 249 | 249 |
| 250 if ((shift == LSL) && (shift_imm == 0)) { | 250 if ((shift == LSL) && (shift_imm == 0)) { |
| 251 kind_ = IndexRegister; | 251 kind_ = IndexRegister; |
| 252 } else { | 252 } else { |
| 253 kind_ = ScaledIndexRegister; | 253 kind_ = ScaledIndexRegister; |
| 254 } | 254 } |
| 255 encoding_ = so.encoding() | am | (static_cast<uint32_t>(rn) << kRnShift); | 255 encoding_ = so.encoding() | am | (static_cast<uint32_t>(rn) << kRnShift); |
| 256 } | 256 } |
| 257 | 257 |
| 258 bool Equals(const Address& other) { | |
| 259 return (encoding_ == other.encoding_) && (kind_ == other.kind_); | |
| 260 } | |
| 261 | |
| 262 static bool CanHoldLoadOffset(OperandSize type, | 258 static bool CanHoldLoadOffset(OperandSize type, |
| 263 int32_t offset, | 259 int32_t offset, |
| 264 int32_t* offset_mask); | 260 int32_t* offset_mask); |
| 265 static bool CanHoldStoreOffset(OperandSize type, | 261 static bool CanHoldStoreOffset(OperandSize type, |
| 266 int32_t offset, | 262 int32_t offset, |
| 267 int32_t* offset_mask); | 263 int32_t* offset_mask); |
| 268 | 264 |
| 269 private: | 265 private: |
| 270 uint32_t encoding() const { return encoding_; } | 266 uint32_t encoding() const { return encoding_; } |
| 271 | 267 |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 Register value, | 823 Register value, |
| 828 Label* no_update); | 824 Label* no_update); |
| 829 | 825 |
| 830 DISALLOW_ALLOCATION(); | 826 DISALLOW_ALLOCATION(); |
| 831 DISALLOW_COPY_AND_ASSIGN(Assembler); | 827 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 832 }; | 828 }; |
| 833 | 829 |
| 834 } // namespace dart | 830 } // namespace dart |
| 835 | 831 |
| 836 #endif // VM_ASSEMBLER_ARM_H_ | 832 #endif // VM_ASSEMBLER_ARM_H_ |
| OLD | NEW |