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 10 matching lines...) Expand all Loading... |
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_ARM_CONSTANTS_ARM_H_ | 28 #ifndef V8_ARM_CONSTANTS_ARM_H_ |
29 #define V8_ARM_CONSTANTS_ARM_H_ | 29 #define V8_ARM_CONSTANTS_ARM_H_ |
30 | 30 |
31 // The simulator emulates the EABI so we define the USE_ARM_EABI macro if we | 31 // ARM EABI is required. |
32 // are not running on real ARM hardware. One reason for this is that the | 32 #if defined(__arm__) && !defined(__ARM_EABI__) |
33 // old ABI uses fp registers in the calling convention and the simulator does | 33 #error ARM EABI support is required. |
34 // not simulate fp registers or coroutine instructions. | |
35 #if defined(__ARM_EABI__) || !defined(__arm__) | |
36 # define USE_ARM_EABI 1 | |
37 #endif | 34 #endif |
38 | 35 |
39 // This means that interwork-compatible jump instructions are generated. We | 36 // This means that interwork-compatible jump instructions are generated. We |
40 // 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 |
41 // be used on real hardware. | 38 // be used on real hardware. |
42 #if defined(__THUMB_INTERWORK__) || !defined(__arm__) | 39 #if defined(__THUMB_INTERWORK__) || !defined(__arm__) |
43 # define USE_THUMB_INTERWORK 1 | 40 # define USE_THUMB_INTERWORK 1 |
44 #endif | 41 #endif |
45 | 42 |
46 #if defined(__ARM_ARCH_7A__) || \ | 43 #if defined(__ARM_ARCH_7A__) || \ |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 static int Number(const char* name, bool* is_double); | 766 static int Number(const char* name, bool* is_double); |
770 | 767 |
771 private: | 768 private: |
772 static const char* names_[kNumVFPRegisters]; | 769 static const char* names_[kNumVFPRegisters]; |
773 }; | 770 }; |
774 | 771 |
775 | 772 |
776 } } // namespace v8::internal | 773 } } // namespace v8::internal |
777 | 774 |
778 #endif // V8_ARM_CONSTANTS_ARM_H_ | 775 #endif // V8_ARM_CONSTANTS_ARM_H_ |
OLD | NEW |