Allow build-time selection between ia32 and x86_64 in the GYP/Xcode Mac
authormark@chromium.org <mark@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 17 May 2010 15:41:35 +0000 (15:41 +0000)
committermark@chromium.org <mark@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 17 May 2010 15:41:35 +0000 (15:41 +0000)
commite9b5d7855bf910858def5587f748e5c039fa13d4
tree4b6c69f0f2b829607ccef5312a6456f5acd26513
parent6046ae7bcdcce9e4b6a869a5b2d4b07ca294ec69
Allow build-time selection between ia32 and x86_64 in the GYP/Xcode Mac
Chromium build.

v8.gyp no longer sets any V8_TARGET_ARCH_* macro on the Mac. Instead, the
proper V8_TARGET_ARCH_* macro will be set by src/globals.h in the same way as
the V8_HOST_ARCH_* macro when it detects that no target macro is currently
defined. The Mac build will attempt to compile all ia32 and x86_64 .cc files.
#ifdef guards in each of these target-specific source files prevent their
compilation when the associated target is not selected. For completeness,
these #ifdef guards are also provided for the arm and mips .cc files.

BUG=706
TEST=x86_64 Mac GYP/Xcode-based Chromium build (still depends on other changes)
Review URL: http://codereview.chromium.org/2133003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4666 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
70 files changed:
src/arm/assembler-arm.cc
src/arm/assembler-thumb2.cc
src/arm/builtins-arm.cc
src/arm/codegen-arm.cc
src/arm/constants-arm.cc
src/arm/cpu-arm.cc
src/arm/debug-arm.cc
src/arm/disasm-arm.cc
src/arm/fast-codegen-arm.cc
src/arm/frames-arm.cc
src/arm/full-codegen-arm.cc
src/arm/ic-arm.cc
src/arm/jump-target-arm.cc
src/arm/macro-assembler-arm.cc
src/arm/regexp-macro-assembler-arm.cc
src/arm/register-allocator-arm.cc
src/arm/simulator-arm.cc
src/arm/stub-cache-arm.cc
src/arm/virtual-frame-arm.cc
src/globals.h
src/ia32/assembler-ia32.cc
src/ia32/builtins-ia32.cc
src/ia32/codegen-ia32.cc
src/ia32/cpu-ia32.cc
src/ia32/debug-ia32.cc
src/ia32/disasm-ia32.cc
src/ia32/fast-codegen-ia32.cc
src/ia32/frames-ia32.cc
src/ia32/full-codegen-ia32.cc
src/ia32/ic-ia32.cc
src/ia32/jump-target-ia32.cc
src/ia32/macro-assembler-ia32.cc
src/ia32/regexp-macro-assembler-ia32.cc
src/ia32/register-allocator-ia32.cc
src/ia32/stub-cache-ia32.cc
src/ia32/virtual-frame-ia32.cc
src/mips/assembler-mips.cc
src/mips/builtins-mips.cc
src/mips/codegen-mips.cc
src/mips/constants-mips.cc
src/mips/cpu-mips.cc
src/mips/debug-mips.cc
src/mips/disasm-mips.cc
src/mips/fast-codegen-mips.cc
src/mips/frames-mips.cc
src/mips/full-codegen-mips.cc
src/mips/ic-mips.cc
src/mips/jump-target-mips.cc
src/mips/macro-assembler-mips.cc
src/mips/register-allocator-mips.cc
src/mips/simulator-mips.cc
src/mips/stub-cache-mips.cc
src/mips/virtual-frame-mips.cc
src/x64/assembler-x64.cc
src/x64/builtins-x64.cc
src/x64/codegen-x64.cc
src/x64/cpu-x64.cc
src/x64/debug-x64.cc
src/x64/disasm-x64.cc
src/x64/fast-codegen-x64.cc
src/x64/frames-x64.cc
src/x64/full-codegen-x64.cc
src/x64/ic-x64.cc
src/x64/jump-target-x64.cc
src/x64/macro-assembler-x64.cc
src/x64/regexp-macro-assembler-x64.cc
src/x64/register-allocator-x64.cc
src/x64/stub-cache-x64.cc
src/x64/virtual-frame-x64.cc
tools/gyp/v8.gyp