| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 // Coprocessor load/store operand size. | 321 // Coprocessor load/store operand size. |
| 322 enum LFlag { | 322 enum LFlag { |
| 323 Long = 1 << 22, // Long load/store coprocessor. | 323 Long = 1 << 22, // Long load/store coprocessor. |
| 324 Short = 0 << 22 // Short load/store coprocessor. | 324 Short = 0 << 22 // Short load/store coprocessor. |
| 325 }; | 325 }; |
| 326 | 326 |
| 327 | 327 |
| 328 // NEON data type | 328 // NEON data type |
| 329 enum NeonDataType { | 329 enum NeonDataType { |
| 330 NeonS8 = 0x1, // U = 0, imm3 = 0b001 | 330 NeonS8 = 0, |
| 331 NeonS16 = 0x2, // U = 0, imm3 = 0b010 | 331 NeonS16 = 1, |
| 332 NeonS32 = 0x4, // U = 0, imm3 = 0b100 | 332 NeonS32 = 2, |
| 333 NeonU8 = 1 << 24 | 0x1, // U = 1, imm3 = 0b001 | 333 // Gap to make it easier to extract U and size. |
| 334 NeonU16 = 1 << 24 | 0x2, // U = 1, imm3 = 0b010 | 334 NeonU8 = 4, |
| 335 NeonU32 = 1 << 24 | 0x4, // U = 1, imm3 = 0b100 | 335 NeonU16 = 5, |
| 336 NeonDataTypeSizeMask = 0x7, | 336 NeonU32 = 6 |
| 337 NeonDataTypeUMask = 1 << 24 | |
| 338 }; | 337 }; |
| 339 | 338 |
| 339 inline int NeonU(NeonDataType dt) { return static_cast<int>(dt) >> 2; } |
| 340 inline int NeonSz(NeonDataType dt) { return static_cast<int>(dt) & 0x3; } |
| 341 |
| 340 enum NeonListType { | 342 enum NeonListType { |
| 341 nlt_1 = 0x7, | 343 nlt_1 = 0x7, |
| 342 nlt_2 = 0xA, | 344 nlt_2 = 0xA, |
| 343 nlt_3 = 0x6, | 345 nlt_3 = 0x6, |
| 344 nlt_4 = 0x2 | 346 nlt_4 = 0x2 |
| 345 }; | 347 }; |
| 346 | 348 |
| 347 enum NeonSize { | 349 enum NeonSize { |
| 348 Neon8 = 0x0, | 350 Neon8 = 0x0, |
| 349 Neon16 = 0x1, | 351 Neon16 = 0x1, |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 | 724 |
| 723 private: | 725 private: |
| 724 static const char* names_[kNumVFPRegisters]; | 726 static const char* names_[kNumVFPRegisters]; |
| 725 }; | 727 }; |
| 726 | 728 |
| 727 | 729 |
| 728 } // namespace internal | 730 } // namespace internal |
| 729 } // namespace v8 | 731 } // namespace v8 |
| 730 | 732 |
| 731 #endif // V8_ARM_CONSTANTS_ARM_H_ | 733 #endif // V8_ARM_CONSTANTS_ARM_H_ |
| OLD | NEW |