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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 # define CAN_USE_ARMV6_INSTRUCTIONS 1 | 59 # define CAN_USE_ARMV6_INSTRUCTIONS 1 |
60 #endif | 60 #endif |
61 | 61 |
62 #if defined(__ARM_ARCH_5T__) || \ | 62 #if defined(__ARM_ARCH_5T__) || \ |
63 defined(__ARM_ARCH_5TE__) || \ | 63 defined(__ARM_ARCH_5TE__) || \ |
64 defined(CAN_USE_ARMV6_INSTRUCTIONS) | 64 defined(CAN_USE_ARMV6_INSTRUCTIONS) |
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 and unaligned access by default. |
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 |
| 74 # ifndef CAN_USE_UNALIGNED_ACCESSES |
| 75 # define CAN_USE_UNALIGNED_ACCESSES 1 |
| 76 # endif |
| 77 |
73 #endif | 78 #endif |
74 | 79 |
75 #if CAN_USE_UNALIGNED_ACCESSES | 80 #if CAN_USE_UNALIGNED_ACCESSES |
76 #define V8_TARGET_CAN_READ_UNALIGNED 1 | 81 #define V8_TARGET_CAN_READ_UNALIGNED 1 |
77 #endif | 82 #endif |
78 | 83 |
79 // Using blx may yield better code, so use it when required or when available | 84 // Using blx may yield better code, so use it when required or when available |
80 #if defined(USE_THUMB_INTERWORK) || defined(CAN_USE_ARMV5_INSTRUCTIONS) | 85 #if defined(USE_THUMB_INTERWORK) || defined(CAN_USE_ARMV5_INSTRUCTIONS) |
81 #define USE_BLX 1 | 86 #define USE_BLX 1 |
82 #endif | 87 #endif |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 static int Number(const char* name, bool* is_double); | 373 static int Number(const char* name, bool* is_double); |
369 | 374 |
370 private: | 375 private: |
371 static const char* names_[kNumVFPRegisters]; | 376 static const char* names_[kNumVFPRegisters]; |
372 }; | 377 }; |
373 | 378 |
374 | 379 |
375 } } // namespace assembler::arm | 380 } } // namespace assembler::arm |
376 | 381 |
377 #endif // V8_ARM_CONSTANTS_ARM_H_ | 382 #endif // V8_ARM_CONSTANTS_ARM_H_ |
OLD | NEW |