Prepare switch from a64 to arm64
authorjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 21 Mar 2014 08:47:03 +0000 (08:47 +0000)
committerjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 21 Mar 2014 08:47:03 +0000 (08:47 +0000)
BUG=354405
R=machenbach@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/207793002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20147 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

build/standalone.gypi
build/toolchain.gypi
test/cctest/cctest.gyp
tools/gyp/v8.gyp
tools/run-tests.py

index 48f1873..8a5b7cf 100644 (file)
     'conditions': [
       ['(v8_target_arch=="arm" and host_arch!="arm") or \
         (v8_target_arch=="a64" and host_arch!="a64") or \
+        (v8_target_arch=="arm64" and host_arch!="arm64") or \
         (v8_target_arch=="mipsel" and host_arch!="mipsel") or \
         (v8_target_arch=="x64" and host_arch!="x64") or \
         (OS=="android" or OS=="qnx")', {
index c2a3300..539a4db 100644 (file)
           }],  # _toolset=="target"
         ],
       }],  # v8_target_arch=="arm"
-      ['v8_target_arch=="a64"', {
+      ['v8_target_arch=="a64" or v8_target_arch=="arm64"', {
         'defines': [
           'V8_TARGET_ARCH_A64',
         ],
         ],
       }],
       ['(OS=="linux" or OS=="android") and \
-        (v8_target_arch=="x64" or v8_target_arch=="a64")', {
+        (v8_target_arch=="x64" or v8_target_arch=="a64" or \
+         v8_target_arch=="arm64")', {
         # Check whether the host compiler and target compiler support the
         # '-m64' option and set it if so.
         'target_conditions': [
index 252fdf7..b1869e8 100644 (file)
             'test-macro-assembler-arm.cc'
           ],
         }],
-        ['v8_target_arch=="a64"', {
+        ['v8_target_arch=="a64" or v8_target_arch=="arm64"', {
           'sources': [
             'test-utils-a64.cc',
             'test-assembler-a64.cc',
index 5967bfe..9274348 100644 (file)
             '../../src/arm/stub-cache-arm.cc',
           ],
         }],
-        ['v8_target_arch=="a64"', {
+        ['v8_target_arch=="a64" or v8_target_arch=="arm64"', {
           'sources': [  ### gcmole(arch:a64) ###
             '../../src/a64/assembler-a64.cc',
             '../../src/a64/assembler-a64.h',
index 46f5db0..25dfeb2 100755 (executable)
@@ -82,7 +82,8 @@ SUPPORTED_ARCHS = ["android_arm",
                    "nacl_ia32",
                    "nacl_x64",
                    "x64",
-                   "a64"]
+                   "a64",
+                   "arm64"]
 # Double the timeout for these:
 SLOW_ARCHS = ["android_arm",
               "android_ia32",
@@ -352,6 +353,8 @@ def Main():
 
   for (arch, mode) in options.arch_and_mode:
     try:
+      if arch == "arm64":
+        arch = "a64"
       code = Execute(arch, mode, args, options, suites, workspace)
     except KeyboardInterrupt:
       return 2