| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 UNIMPLEMENTED(); | 66 UNIMPLEMENTED(); |
| 67 return false; | 67 return false; |
| 68 } | 68 } |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 | 71 |
| 72 // Encodes Addressing Mode 1 - Data-processing operands. | 72 // Encodes Addressing Mode 1 - Data-processing operands. |
| 73 class ShifterOperand : public ValueObject { | 73 class ShifterOperand : public ValueObject { |
| 74 public: | 74 public: |
| 75 // Data-processing operands - Uninitialized. | 75 // Data-processing operands - Uninitialized. |
| 76 ShifterOperand() : type_(-1) { } | 76 ShifterOperand() : type_(-1), encoding_(-1) { } |
| 77 | 77 |
| 78 // Data-processing operands - Copy constructor. | 78 // Data-processing operands - Copy constructor. |
| 79 ShifterOperand(const ShifterOperand& other) | 79 ShifterOperand(const ShifterOperand& other) |
| 80 : ValueObject(), type_(other.type_), encoding_(other.encoding_) { } | 80 : ValueObject(), type_(other.type_), encoding_(other.encoding_) { } |
| 81 | 81 |
| 82 // Data-processing operands - Assignment operator. | 82 // Data-processing operands - Assignment operator. |
| 83 ShifterOperand& operator=(const ShifterOperand& other) { | 83 ShifterOperand& operator=(const ShifterOperand& other) { |
| 84 type_ = other.type_; | 84 type_ = other.type_; |
| 85 encoding_ = other.encoding_; | 85 encoding_ = other.encoding_; |
| 86 return *this; | 86 return *this; |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 return *reg1 - *reg2; | 638 return *reg1 - *reg2; |
| 639 } | 639 } |
| 640 | 640 |
| 641 DISALLOW_ALLOCATION(); | 641 DISALLOW_ALLOCATION(); |
| 642 DISALLOW_COPY_AND_ASSIGN(Assembler); | 642 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 643 }; | 643 }; |
| 644 | 644 |
| 645 } // namespace dart | 645 } // namespace dart |
| 646 | 646 |
| 647 #endif // VM_ASSEMBLER_ARM_H_ | 647 #endif // VM_ASSEMBLER_ARM_H_ |
| OLD | NEW |