Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: src/globals.h

Issue 2133003: Allow build-time selection between ia32 and x86_64 in the GYP/Xcode Mac Chromium build (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/virtual-frame-arm.cc ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #if CAN_USE_UNALIGNED_ACCESSES 52 #if CAN_USE_UNALIGNED_ACCESSES
53 #define V8_HOST_CAN_READ_UNALIGNED 1 53 #define V8_HOST_CAN_READ_UNALIGNED 1
54 #endif 54 #endif
55 #elif defined(_MIPS_ARCH_MIPS32R2) 55 #elif defined(_MIPS_ARCH_MIPS32R2)
56 #define V8_HOST_ARCH_MIPS 1 56 #define V8_HOST_ARCH_MIPS 1
57 #define V8_HOST_ARCH_32_BIT 1 57 #define V8_HOST_ARCH_32_BIT 1
58 #else 58 #else
59 #error Host architecture was not detected as supported by v8 59 #error Host architecture was not detected as supported by v8
60 #endif 60 #endif
61 61
62 // Target architecture detection. This may be set externally. If not, detect
63 // in the same way as the host architecture, that is, target the native
64 // environment as presented by the compiler.
65 #if !defined(V8_TARGET_ARCH_X64) && !defined(V8_TARGET_ARCH_IA32) && \
66 !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_MIPS)
67 #if defined(_M_X64) || defined(__x86_64__)
68 #define V8_TARGET_ARCH_X64 1
69 #elif defined(_M_IX86) || defined(__i386__)
70 #define V8_TARGET_ARCH_IA32 1
71 #elif defined(__ARMEL__)
72 #define V8_TARGET_ARCH_ARM 1
73 #elif defined(_MIPS_ARCH_MIPS32R2)
74 #define V8_TARGET_ARCH_MIPS 1
75 #else
76 #error Target architecture was not detected as supported by v8
77 #endif
78 #endif
79
62 // Check for supported combinations of host and target architectures. 80 // Check for supported combinations of host and target architectures.
63 #if defined(V8_TARGET_ARCH_IA32) && !defined(V8_HOST_ARCH_IA32) 81 #if defined(V8_TARGET_ARCH_IA32) && !defined(V8_HOST_ARCH_IA32)
64 #error Target architecture ia32 is only supported on ia32 host 82 #error Target architecture ia32 is only supported on ia32 host
65 #endif 83 #endif
66 #if defined(V8_TARGET_ARCH_X64) && !defined(V8_HOST_ARCH_X64) 84 #if defined(V8_TARGET_ARCH_X64) && !defined(V8_HOST_ARCH_X64)
67 #error Target architecture x64 is only supported on x64 host 85 #error Target architecture x64 is only supported on x64 host
68 #endif 86 #endif
69 #if (defined(V8_TARGET_ARCH_ARM) && \ 87 #if (defined(V8_TARGET_ARCH_ARM) && \
70 !(defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_ARM))) 88 !(defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_ARM)))
71 #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
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 CMOV = 15, // x86 653 CMOV = 15, // x86
636 RDTSC = 4, // x86 654 RDTSC = 4, // x86
637 CPUID = 10, // x86 655 CPUID = 10, // x86
638 VFP3 = 1, // ARM 656 VFP3 = 1, // ARM
639 ARMv7 = 2, // ARM 657 ARMv7 = 2, // ARM
640 SAHF = 0}; // x86 658 SAHF = 0}; // x86
641 659
642 } } // namespace v8::internal 660 } } // namespace v8::internal
643 661
644 #endif // V8_GLOBALS_H_ 662 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/arm/virtual-frame-arm.cc ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698