OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 # define CAN_USE_ARMV5_INSTRUCTIONS 1 | 65 # define CAN_USE_ARMV5_INSTRUCTIONS 1 |
66 # define CAN_USE_THUMB_INSTRUCTIONS 1 | 66 # define CAN_USE_THUMB_INSTRUCTIONS 1 |
67 #endif | 67 #endif |
68 | 68 |
69 // Simulator should support ARM5 instructions. | 69 // Simulator should support ARM5 instructions. |
70 #if !defined(__arm__) | 70 #if !defined(__arm__) |
71 # define CAN_USE_ARMV5_INSTRUCTIONS 1 | 71 # define CAN_USE_ARMV5_INSTRUCTIONS 1 |
72 # define CAN_USE_THUMB_INSTRUCTIONS 1 | 72 # define CAN_USE_THUMB_INSTRUCTIONS 1 |
73 #endif | 73 #endif |
74 | 74 |
| 75 // Using blx may yield better code, so use it when required or when available |
| 76 #if defined(USE_THUMB_INTERWORK) || defined(CAN_USE_ARMV5_INSTRUCTIONS) |
| 77 #define USE_BLX 1 |
| 78 #endif |
| 79 |
75 namespace assembler { | 80 namespace assembler { |
76 namespace arm { | 81 namespace arm { |
77 | 82 |
78 // Number of registers in normal ARM mode. | 83 // Number of registers in normal ARM mode. |
79 static const int kNumRegisters = 16; | 84 static const int kNumRegisters = 16; |
80 | 85 |
81 // VFP support. | 86 // VFP support. |
82 static const int kNumVFPRegisters = 48; | 87 static const int kNumVFPRegisters = 48; |
83 | 88 |
84 // PC is register 15. | 89 // PC is register 15. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 static const char* Name(int reg); | 347 static const char* Name(int reg); |
343 | 348 |
344 private: | 349 private: |
345 static const char* names_[kNumVFPRegisters]; | 350 static const char* names_[kNumVFPRegisters]; |
346 }; | 351 }; |
347 | 352 |
348 | 353 |
349 } } // namespace assembler::arm | 354 } } // namespace assembler::arm |
350 | 355 |
351 #endif // V8_ARM_CONSTANTS_ARM_H_ | 356 #endif // V8_ARM_CONSTANTS_ARM_H_ |
OLD | NEW |