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 | |
50 // ----------------------------------------------------------------------------- | 45 // ----------------------------------------------------------------------------- |
51 // Conditions. | 46 // Conditions. |
52 | 47 |
53 // Defines constants and accessor classes to assemble, disassemble and | 48 // Defines constants and accessor classes to assemble, disassemble and |
54 // simulate ARM instructions. | 49 // simulate ARM instructions. |
55 // | 50 // |
56 // Section references in the code refer to the "ARM Architecture Reference | 51 // Section references in the code refer to the "ARM Architecture Reference |
57 // Manual" from July 2005 (available at http://www.arm.com/miscPDFs/14128.pdf) | 52 // Manual" from July 2005 (available at http://www.arm.com/miscPDFs/14128.pdf) |
58 // | 53 // |
59 // Constants for specific fields are defined in their respective named enums. | 54 // Constants for specific fields are defined in their respective named enums. |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 static int Number(const char* name, bool* is_double); | 687 static int Number(const char* name, bool* is_double); |
693 | 688 |
694 private: | 689 private: |
695 static const char* names_[kNumVFPRegisters]; | 690 static const char* names_[kNumVFPRegisters]; |
696 }; | 691 }; |
697 | 692 |
698 | 693 |
699 } } // namespace v8::internal | 694 } } // namespace v8::internal |
700 | 695 |
701 #endif // V8_ARM_CONSTANTS_ARM_H_ | 696 #endif // V8_ARM_CONSTANTS_ARM_H_ |
OLD | NEW |