| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 RegList Bit() const; | 97 RegList Bit() const; |
| 98 unsigned SizeInBits() const; | 98 unsigned SizeInBits() const; |
| 99 int SizeInBytes() const; | 99 int SizeInBytes() const; |
| 100 bool Is32Bits() const; | 100 bool Is32Bits() const; |
| 101 bool Is64Bits() const; | 101 bool Is64Bits() const; |
| 102 bool IsValid() const; | 102 bool IsValid() const; |
| 103 bool IsValidRegister() const; | 103 bool IsValidRegister() const; |
| 104 bool IsValidFPRegister() const; | 104 bool IsValidFPRegister() const; |
| 105 bool IsNone() const; | 105 bool IsNone() const; |
| 106 bool Is(const CPURegister& other) const; | 106 bool Is(const CPURegister& other) const; |
| 107 bool is(const CPURegister& other) const; // V8 compatibility. | |
| 108 | 107 |
| 109 bool IsZero() const; | 108 bool IsZero() const; |
| 110 bool IsSP() const; | 109 bool IsSP() const; |
| 111 | 110 |
| 112 bool IsRegister() const; | 111 bool IsRegister() const; |
| 113 bool IsFPRegister() const; | 112 bool IsFPRegister() const; |
| 114 | 113 |
| 115 const Register& X(); | 114 const Register& X(); |
| 116 const Register& W(); | 115 const Register& W(); |
| 117 const FPRegister& D(); | 116 const FPRegister& D(); |
| 118 const FPRegister& S(); | 117 const FPRegister& S(); |
| 119 | 118 |
| 120 bool IsSameSizeAndType(const CPURegister& other) const; | 119 bool IsSameSizeAndType(const CPURegister& other) const; |
| 121 | 120 |
| 121 // V8 compatibility. |
| 122 bool is(const CPURegister& other) const { return Is(other); } |
| 123 bool is_valid() const { return IsValid(); } |
| 124 |
| 122 protected: | 125 protected: |
| 123 unsigned code_; | 126 unsigned code_; |
| 124 unsigned size_; | 127 unsigned size_; |
| 125 RegisterType type_; | 128 RegisterType type_; |
| 126 | 129 |
| 127 private: | 130 private: |
| 128 bool IsValidOrNone() const; | 131 bool IsValidOrNone() const; |
| 129 }; | 132 }; |
| 130 | 133 |
| 131 | 134 |
| (...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 class EnsureSpace BASE_EMBEDDED { | 2038 class EnsureSpace BASE_EMBEDDED { |
| 2036 public: | 2039 public: |
| 2037 explicit EnsureSpace(Assembler* assembler) { | 2040 explicit EnsureSpace(Assembler* assembler) { |
| 2038 assembler->CheckBuffer(); | 2041 assembler->CheckBuffer(); |
| 2039 } | 2042 } |
| 2040 }; | 2043 }; |
| 2041 | 2044 |
| 2042 } } // namespace v8::internal | 2045 } } // namespace v8::internal |
| 2043 | 2046 |
| 2044 #endif // V8_A64_ASSEMBLER_A64_H_ | 2047 #endif // V8_A64_ASSEMBLER_A64_H_ |
| OLD | NEW |