| 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 // ARM EABI is required. | 8 // ARM EABI is required. |
| 9 #if defined(__arm__) && !defined(__ARM_EABI__) | 9 #if defined(__arm__) && !defined(__ARM_EABI__) |
| 10 #error ARM EABI support is required. | 10 #error ARM EABI support is required. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // VFP support. | 36 // VFP support. |
| 37 const int kNumVFPSingleRegisters = 32; | 37 const int kNumVFPSingleRegisters = 32; |
| 38 const int kNumVFPDoubleRegisters = 32; | 38 const int kNumVFPDoubleRegisters = 32; |
| 39 const int kNumVFPRegisters = kNumVFPSingleRegisters + kNumVFPDoubleRegisters; | 39 const int kNumVFPRegisters = kNumVFPSingleRegisters + kNumVFPDoubleRegisters; |
| 40 | 40 |
| 41 // PC is register 15. | 41 // PC is register 15. |
| 42 const int kPCRegister = 15; | 42 const int kPCRegister = 15; |
| 43 const int kNoRegister = -1; | 43 const int kNoRegister = -1; |
| 44 | 44 |
| 45 // Used in embedded constant pool builder - max reach in bits for |
| 46 // various load instructions (unsigned) |
| 47 const int kLdrMaxReachBits = 12; |
| 48 const int kVldrMaxReachBits = 10; |
| 49 |
| 45 // ----------------------------------------------------------------------------- | 50 // ----------------------------------------------------------------------------- |
| 46 // Conditions. | 51 // Conditions. |
| 47 | 52 |
| 48 // Defines constants and accessor classes to assemble, disassemble and | 53 // Defines constants and accessor classes to assemble, disassemble and |
| 49 // simulate ARM instructions. | 54 // simulate ARM instructions. |
| 50 // | 55 // |
| 51 // Section references in the code refer to the "ARM Architecture Reference | 56 // Section references in the code refer to the "ARM Architecture Reference |
| 52 // Manual" from July 2005 (available at http://www.arm.com/miscPDFs/14128.pdf) | 57 // Manual" from July 2005 (available at http://www.arm.com/miscPDFs/14128.pdf) |
| 53 // | 58 // |
| 54 // Constants for specific fields are defined in their respective named enums. | 59 // Constants for specific fields are defined in their respective named enums. |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 static int Number(const char* name, bool* is_double); | 692 static int Number(const char* name, bool* is_double); |
| 688 | 693 |
| 689 private: | 694 private: |
| 690 static const char* names_[kNumVFPRegisters]; | 695 static const char* names_[kNumVFPRegisters]; |
| 691 }; | 696 }; |
| 692 | 697 |
| 693 | 698 |
| 694 } } // namespace v8::internal | 699 } } // namespace v8::internal |
| 695 | 700 |
| 696 #endif // V8_ARM_CONSTANTS_ARM_H_ | 701 #endif // V8_ARM_CONSTANTS_ARM_H_ |
| OLD | NEW |