OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 } | 575 } |
576 inline Condition ConditionField() const { | 576 inline Condition ConditionField() const { |
577 return static_cast<Condition>(BitField(31, 28)); | 577 return static_cast<Condition>(BitField(31, 28)); |
578 } | 578 } |
579 DECLARE_STATIC_TYPED_ACCESSOR(Condition, ConditionValue); | 579 DECLARE_STATIC_TYPED_ACCESSOR(Condition, ConditionValue); |
580 DECLARE_STATIC_TYPED_ACCESSOR(Condition, ConditionField); | 580 DECLARE_STATIC_TYPED_ACCESSOR(Condition, ConditionField); |
581 | 581 |
582 inline int TypeValue() const { return Bits(27, 25); } | 582 inline int TypeValue() const { return Bits(27, 25); } |
583 | 583 |
584 inline int RnValue() const { return Bits(19, 16); } | 584 inline int RnValue() const { return Bits(19, 16); } |
| 585 DECLARE_STATIC_ACCESSOR(RnValue); |
585 inline int RdValue() const { return Bits(15, 12); } | 586 inline int RdValue() const { return Bits(15, 12); } |
586 DECLARE_STATIC_ACCESSOR(RdValue); | 587 DECLARE_STATIC_ACCESSOR(RdValue); |
587 | 588 |
588 inline int CoprocessorValue() const { return Bits(11, 8); } | 589 inline int CoprocessorValue() const { return Bits(11, 8); } |
589 // Support for VFP. | 590 // Support for VFP. |
590 // Vn(19-16) | Vd(15-12) | Vm(3-0) | 591 // Vn(19-16) | Vd(15-12) | Vm(3-0) |
591 inline int VnValue() const { return Bits(19, 16); } | 592 inline int VnValue() const { return Bits(19, 16); } |
592 inline int VmValue() const { return Bits(3, 0); } | 593 inline int VmValue() const { return Bits(3, 0); } |
593 inline int VdValue() const { return Bits(15, 12); } | 594 inline int VdValue() const { return Bits(15, 12); } |
594 inline int NValue() const { return Bit(7); } | 595 inline int NValue() const { return Bit(7); } |
(...skipping 23 matching lines...) Expand all Loading... |
618 // Fields used in Data processing instructions | 619 // Fields used in Data processing instructions |
619 inline int OpcodeValue() const { | 620 inline int OpcodeValue() const { |
620 return static_cast<Opcode>(Bits(24, 21)); | 621 return static_cast<Opcode>(Bits(24, 21)); |
621 } | 622 } |
622 inline Opcode OpcodeField() const { | 623 inline Opcode OpcodeField() const { |
623 return static_cast<Opcode>(BitField(24, 21)); | 624 return static_cast<Opcode>(BitField(24, 21)); |
624 } | 625 } |
625 inline int SValue() const { return Bit(20); } | 626 inline int SValue() const { return Bit(20); } |
626 // with register | 627 // with register |
627 inline int RmValue() const { return Bits(3, 0); } | 628 inline int RmValue() const { return Bits(3, 0); } |
| 629 DECLARE_STATIC_ACCESSOR(RmValue); |
628 inline int ShiftValue() const { return static_cast<ShiftOp>(Bits(6, 5)); } | 630 inline int ShiftValue() const { return static_cast<ShiftOp>(Bits(6, 5)); } |
629 inline ShiftOp ShiftField() const { | 631 inline ShiftOp ShiftField() const { |
630 return static_cast<ShiftOp>(BitField(6, 5)); | 632 return static_cast<ShiftOp>(BitField(6, 5)); |
631 } | 633 } |
632 inline int RegShiftValue() const { return Bit(4); } | 634 inline int RegShiftValue() const { return Bit(4); } |
633 inline int RsValue() const { return Bits(11, 8); } | 635 inline int RsValue() const { return Bits(11, 8); } |
634 inline int ShiftAmountValue() const { return Bits(11, 7); } | 636 inline int ShiftAmountValue() const { return Bits(11, 7); } |
635 // with immediate | 637 // with immediate |
636 inline int RotateValue() const { return Bits(11, 8); } | 638 inline int RotateValue() const { return Bits(11, 8); } |
637 inline int Immed8Value() const { return Bits(7, 0); } | 639 inline int Immed8Value() const { return Bits(7, 0); } |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 static int Number(const char* name, bool* is_double); | 752 static int Number(const char* name, bool* is_double); |
751 | 753 |
752 private: | 754 private: |
753 static const char* names_[kNumVFPRegisters]; | 755 static const char* names_[kNumVFPRegisters]; |
754 }; | 756 }; |
755 | 757 |
756 | 758 |
757 } } // namespace v8::internal | 759 } } // namespace v8::internal |
758 | 760 |
759 #endif // V8_ARM_CONSTANTS_ARM_H_ | 761 #endif // V8_ARM_CONSTANTS_ARM_H_ |
OLD | NEW |