| 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) { | 258 bool Equals(const Address& other) const { |
| 259 return (encoding_ == other.encoding_) && (kind_ == other.kind_); | 259 return (encoding_ == other.encoding_) && (kind_ == other.kind_); |
| 260 } | 260 } |
| 261 | 261 |
| 262 static bool CanHoldLoadOffset(OperandSize type, | 262 static bool CanHoldLoadOffset(OperandSize type, |
| 263 int32_t offset, | 263 int32_t offset, |
| 264 int32_t* offset_mask); | 264 int32_t* offset_mask); |
| 265 static bool CanHoldStoreOffset(OperandSize type, | 265 static bool CanHoldStoreOffset(OperandSize type, |
| 266 int32_t offset, | 266 int32_t offset, |
| 267 int32_t* offset_mask); | 267 int32_t* offset_mask); |
| 268 | 268 |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 Register value, | 827 Register value, |
| 828 Label* no_update); | 828 Label* no_update); |
| 829 | 829 |
| 830 DISALLOW_ALLOCATION(); | 830 DISALLOW_ALLOCATION(); |
| 831 DISALLOW_COPY_AND_ASSIGN(Assembler); | 831 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 832 }; | 832 }; |
| 833 | 833 |
| 834 } // namespace dart | 834 } // namespace dart |
| 835 | 835 |
| 836 #endif // VM_ASSEMBLER_ARM_H_ | 836 #endif // VM_ASSEMBLER_ARM_H_ |
| OLD | NEW |