| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_ARM_CONSTANTS_ARM_H_ | 5 #ifndef V8_ARM_CONSTANTS_ARM_H_ |
| 6 #define V8_ARM_CONSTANTS_ARM_H_ | 6 #define V8_ARM_CONSTANTS_ARM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 // Special accessors that test for existence of a value. | 647 // Special accessors that test for existence of a value. |
| 648 inline bool HasS() const { return SValue() == 1; } | 648 inline bool HasS() const { return SValue() == 1; } |
| 649 inline bool HasB() const { return BValue() == 1; } | 649 inline bool HasB() const { return BValue() == 1; } |
| 650 inline bool HasW() const { return WValue() == 1; } | 650 inline bool HasW() const { return WValue() == 1; } |
| 651 inline bool HasL() const { return LValue() == 1; } | 651 inline bool HasL() const { return LValue() == 1; } |
| 652 inline bool HasU() const { return UValue() == 1; } | 652 inline bool HasU() const { return UValue() == 1; } |
| 653 inline bool HasSign() const { return SignValue() == 1; } | 653 inline bool HasSign() const { return SignValue() == 1; } |
| 654 inline bool HasH() const { return HValue() == 1; } | 654 inline bool HasH() const { return HValue() == 1; } |
| 655 inline bool HasLink() const { return LinkValue() == 1; } | 655 inline bool HasLink() const { return LinkValue() == 1; } |
| 656 | 656 |
| 657 // Decoding the double immediate in the vmov instruction. | 657 // Decode the double immediate from a vmov instruction. |
| 658 double DoubleImmedVmov() const; | 658 double DoubleImmedVmov() const; |
| 659 | 659 |
| 660 // Instructions are read of out a code stream. The only way to get a | 660 // Instructions are read of out a code stream. The only way to get a |
| 661 // reference to an instruction is to convert a pointer. There is no way | 661 // reference to an instruction is to convert a pointer. There is no way |
| 662 // to allocate or create instances of class Instruction. | 662 // to allocate or create instances of class Instruction. |
| 663 // Use the At(pc) function to create references to Instruction. | 663 // Use the At(pc) function to create references to Instruction. |
| 664 static Instruction* At(byte* pc) { | 664 static Instruction* At(byte* pc) { |
| 665 return reinterpret_cast<Instruction*>(pc); | 665 return reinterpret_cast<Instruction*>(pc); |
| 666 } | 666 } |
| 667 | 667 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 | 715 |
| 716 private: | 716 private: |
| 717 static const char* names_[kNumVFPRegisters]; | 717 static const char* names_[kNumVFPRegisters]; |
| 718 }; | 718 }; |
| 719 | 719 |
| 720 | 720 |
| 721 } // namespace internal | 721 } // namespace internal |
| 722 } // namespace v8 | 722 } // namespace v8 |
| 723 | 723 |
| 724 #endif // V8_ARM_CONSTANTS_ARM_H_ | 724 #endif // V8_ARM_CONSTANTS_ARM_H_ |
| OLD | NEW |