| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 26 matching lines...) Expand all Loading... |
| 37 // want to generate them on the simulator too so it makes snapshots that can | 37 // want to generate them on the simulator too so it makes snapshots that can |
| 38 // be used on real hardware. | 38 // be used on real hardware. |
| 39 #if defined(__THUMB_INTERWORK__) || !defined(__arm__) | 39 #if defined(__THUMB_INTERWORK__) || !defined(__arm__) |
| 40 # define USE_THUMB_INTERWORK 1 | 40 # define USE_THUMB_INTERWORK 1 |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 #if defined(__ARM_ARCH_7A__) || \ | 43 #if defined(__ARM_ARCH_7A__) || \ |
| 44 defined(__ARM_ARCH_7R__) || \ | 44 defined(__ARM_ARCH_7R__) || \ |
| 45 defined(__ARM_ARCH_7__) | 45 defined(__ARM_ARCH_7__) |
| 46 # define CAN_USE_ARMV7_INSTRUCTIONS 1 | 46 # define CAN_USE_ARMV7_INSTRUCTIONS 1 |
| 47 # define CAN_USE_VFP3_INSTRUCTIONS |
| 47 #endif | 48 #endif |
| 48 | 49 |
| 49 #if defined(__ARM_ARCH_6__) || \ | 50 #if defined(__ARM_ARCH_6__) || \ |
| 50 defined(__ARM_ARCH_6J__) || \ | 51 defined(__ARM_ARCH_6J__) || \ |
| 51 defined(__ARM_ARCH_6K__) || \ | 52 defined(__ARM_ARCH_6K__) || \ |
| 52 defined(__ARM_ARCH_6Z__) || \ | 53 defined(__ARM_ARCH_6Z__) || \ |
| 53 defined(__ARM_ARCH_6ZK__) || \ | 54 defined(__ARM_ARCH_6ZK__) || \ |
| 54 defined(__ARM_ARCH_6T2__) || \ | 55 defined(__ARM_ARCH_6T2__) || \ |
| 55 defined(CAN_USE_ARMV7_INSTRUCTIONS) | 56 defined(CAN_USE_ARMV7_INSTRUCTIONS) |
| 56 # define CAN_USE_ARMV6_INSTRUCTIONS 1 | 57 # define CAN_USE_ARMV6_INSTRUCTIONS 1 |
| 57 #endif | 58 #endif |
| 58 | 59 |
| 59 #if defined(__ARM_ARCH_5T__) || \ | 60 #if defined(__ARM_ARCH_5__) || \ |
| 60 defined(__ARM_ARCH_5TE__) || \ | 61 defined(__ARM_ARCH_5T__) || \ |
| 61 defined(__ARM_ARCH_5TEJ__) || \ | 62 defined(__ARM_ARCH_5TE__) || \ |
| 63 defined(__ARM_ARCH_5TEJ__) || \ |
| 62 defined(CAN_USE_ARMV6_INSTRUCTIONS) | 64 defined(CAN_USE_ARMV6_INSTRUCTIONS) |
| 63 # define CAN_USE_ARMV5_INSTRUCTIONS 1 | 65 # define CAN_USE_ARMV5_INSTRUCTIONS 1 |
| 64 # define CAN_USE_THUMB_INSTRUCTIONS 1 | 66 # define CAN_USE_THUMB_INSTRUCTIONS 1 |
| 65 #endif | 67 #endif |
| 66 | 68 |
| 67 // Simulator should support ARM5 instructions and unaligned access by default. | 69 // Simulator should support ARM5 instructions and unaligned access by default. |
| 68 #if !defined(__arm__) | 70 #if !defined(__arm__) |
| 69 # define CAN_USE_ARMV5_INSTRUCTIONS 1 | 71 # define CAN_USE_ARMV5_INSTRUCTIONS 1 |
| 70 # define CAN_USE_THUMB_INSTRUCTIONS 1 | 72 # define CAN_USE_THUMB_INSTRUCTIONS 1 |
| 71 | 73 |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 static int Number(const char* name, bool* is_double); | 781 static int Number(const char* name, bool* is_double); |
| 780 | 782 |
| 781 private: | 783 private: |
| 782 static const char* names_[kNumVFPRegisters]; | 784 static const char* names_[kNumVFPRegisters]; |
| 783 }; | 785 }; |
| 784 | 786 |
| 785 | 787 |
| 786 } } // namespace v8::internal | 788 } } // namespace v8::internal |
| 787 | 789 |
| 788 #endif // V8_ARM_CONSTANTS_ARM_H_ | 790 #endif // V8_ARM_CONSTANTS_ARM_H_ |
| OLD | NEW |