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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 185 } |
186 | 186 |
187 bool IsCompareBranch() const { | 187 bool IsCompareBranch() const { |
188 return Mask(CompareBranchFMask) == CompareBranchFixed; | 188 return Mask(CompareBranchFMask) == CompareBranchFixed; |
189 } | 189 } |
190 | 190 |
191 bool IsTestBranch() const { | 191 bool IsTestBranch() const { |
192 return Mask(TestBranchFMask) == TestBranchFixed; | 192 return Mask(TestBranchFMask) == TestBranchFixed; |
193 } | 193 } |
194 | 194 |
| 195 bool IsImmBranch() const { |
| 196 return BranchType() != UnknownBranchType; |
| 197 } |
| 198 |
195 bool IsLdrLiteral() const { | 199 bool IsLdrLiteral() const { |
196 return Mask(LoadLiteralFMask) == LoadLiteralFixed; | 200 return Mask(LoadLiteralFMask) == LoadLiteralFixed; |
197 } | 201 } |
198 | 202 |
199 bool IsLdrLiteralX() const { | 203 bool IsLdrLiteralX() const { |
200 return Mask(LoadLiteralMask) == LDR_x_lit; | 204 return Mask(LoadLiteralMask) == LDR_x_lit; |
201 } | 205 } |
202 | 206 |
203 bool IsPCRelAddressing() const { | 207 bool IsPCRelAddressing() const { |
204 return Mask(PCRelAddressingFMask) == PCRelAddressingFixed; | 208 return Mask(PCRelAddressingFMask) == PCRelAddressingFixed; |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 TRACE_ENABLE = 1 << 6, | 509 TRACE_ENABLE = 1 << 6, |
506 TRACE_DISABLE = 2 << 6, | 510 TRACE_DISABLE = 2 << 6, |
507 TRACE_OVERRIDE = 3 << 6 | 511 TRACE_OVERRIDE = 3 << 6 |
508 }; | 512 }; |
509 | 513 |
510 | 514 |
511 } } // namespace v8::internal | 515 } } // namespace v8::internal |
512 | 516 |
513 | 517 |
514 #endif // V8_ARM64_INSTRUCTIONS_ARM64_H_ | 518 #endif // V8_ARM64_INSTRUCTIONS_ARM64_H_ |
OLD | NEW |