| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 #if (defined(V8_TARGET_ARCH_ARM) && \ | 87 #if (defined(V8_TARGET_ARCH_ARM) && \ |
| 88 !(defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_ARM))) | 88 !(defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_ARM))) |
| 89 #error Target architecture arm is only supported on arm and ia32 host | 89 #error Target architecture arm is only supported on arm and ia32 host |
| 90 #endif | 90 #endif |
| 91 #if (defined(V8_TARGET_ARCH_MIPS) && \ | 91 #if (defined(V8_TARGET_ARCH_MIPS) && \ |
| 92 !(defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_MIPS))) | 92 !(defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_MIPS))) |
| 93 #error Target architecture mips is only supported on mips and ia32 host | 93 #error Target architecture mips is only supported on mips and ia32 host |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 // Determine whether we are running in a simulated environment. | 96 // Determine whether we are running in a simulated environment. |
| 97 // Setting USE_SIMULATOR explicitly from the build script will force |
| 98 // the use of a simulated environment. |
| 99 #if !defined(USE_SIMULATOR) |
| 97 #if (defined(V8_TARGET_ARCH_ARM) && !defined(V8_HOST_ARCH_ARM)) | 100 #if (defined(V8_TARGET_ARCH_ARM) && !defined(V8_HOST_ARCH_ARM)) |
| 98 #define USE_SIMULATOR 1 | 101 #define USE_SIMULATOR 1 |
| 99 #endif | 102 #endif |
| 100 #if (defined(V8_TARGET_ARCH_MIPS) && !defined(V8_HOST_ARCH_MIPS)) | 103 #if (defined(V8_TARGET_ARCH_MIPS) && !defined(V8_HOST_ARCH_MIPS)) |
| 101 #define USE_SIMULATOR 1 | 104 #define USE_SIMULATOR 1 |
| 102 #endif | 105 #endif |
| 106 #endif |
| 103 | 107 |
| 104 // Define unaligned read for the target architectures supporting it. | 108 // Define unaligned read for the target architectures supporting it. |
| 105 #if defined(V8_TARGET_ARCH_X64) || defined(V8_TARGET_ARCH_IA32) | 109 #if defined(V8_TARGET_ARCH_X64) || defined(V8_TARGET_ARCH_IA32) |
| 106 #define V8_TARGET_CAN_READ_UNALIGNED 1 | 110 #define V8_TARGET_CAN_READ_UNALIGNED 1 |
| 107 #elif V8_TARGET_ARCH_ARM | 111 #elif V8_TARGET_ARCH_ARM |
| 108 // Some CPU-OS combinations allow unaligned access on ARM. We assume | 112 // Some CPU-OS combinations allow unaligned access on ARM. We assume |
| 109 // that unaligned accesses are not allowed unless the build system | 113 // that unaligned accesses are not allowed unless the build system |
| 110 // defines the CAN_USE_UNALIGNED_ACCESSES macro to be non-zero. | 114 // defines the CAN_USE_UNALIGNED_ACCESSES macro to be non-zero. |
| 111 #if CAN_USE_UNALIGNED_ACCESSES | 115 #if CAN_USE_UNALIGNED_ACCESSES |
| 112 #define V8_TARGET_CAN_READ_UNALIGNED 1 | 116 #define V8_TARGET_CAN_READ_UNALIGNED 1 |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 CMOV = 15, // x86 | 721 CMOV = 15, // x86 |
| 718 RDTSC = 4, // x86 | 722 RDTSC = 4, // x86 |
| 719 CPUID = 10, // x86 | 723 CPUID = 10, // x86 |
| 720 VFP3 = 1, // ARM | 724 VFP3 = 1, // ARM |
| 721 ARMv7 = 2, // ARM | 725 ARMv7 = 2, // ARM |
| 722 SAHF = 0}; // x86 | 726 SAHF = 0}; // x86 |
| 723 | 727 |
| 724 } } // namespace v8::internal | 728 } } // namespace v8::internal |
| 725 | 729 |
| 726 #endif // V8_GLOBALS_H_ | 730 #endif // V8_GLOBALS_H_ |
| OLD | NEW |