| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Because standalone V8 builds are not supported, assume this is part of a | 5 # Because standalone V8 builds are not supported, assume this is part of a |
| 6 # Chromium build. | 6 # Chromium build. |
| 7 import("//build/module_args/v8.gni") | 7 import("//build/module_args/v8.gni") |
| 8 | 8 |
| 9 # TODO(jochen): These will need to be user-settable to support standalone V8 | 9 # TODO(jochen): These will need to be user-settable to support standalone V8 |
| 10 # builds. | 10 # builds. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] | 89 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 | 92 |
| 93 config("toolchain") { | 93 config("toolchain") { |
| 94 visibility = [ ":*" ] # Only targets in this file can depend on this. | 94 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 95 | 95 |
| 96 defines = [] | 96 defines = [] |
| 97 cflags = [] | 97 cflags = [] |
| 98 | 98 |
| 99 # TODO(jochen): Add support for arm, mips, mipsel. | 99 # TODO(jochen): Add support for arm subarchs, mips, mipsel. |
| 100 | 100 |
| 101 if (v8_target_arch == "arm") { |
| 102 defines += [ "V8_TARGET_ARCH_ARM" ] |
| 103 if (arm_verson == 7) { |
| 104 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ] |
| 105 } |
| 106 if (arm_fpu == "vfpv3-d16") { |
| 107 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ] |
| 108 } |
| 109 if (arm_fpu == "vfpv3") { |
| 110 defines += [ |
| 111 "CAN_USE_VFP3_INSTRUCTIONS", |
| 112 "CAN_USE_VFP32DREGS", |
| 113 ] |
| 114 } |
| 115 if (arm_fpu == "neon") { |
| 116 defines += [ |
| 117 "CAN_USE_VFP3_INSTRUCTIONS", |
| 118 "CAN_USE_VFP32DREGS", |
| 119 "CAN_USE_NEON", |
| 120 ] |
| 121 } |
| 122 |
| 123 # TODO(jochen): Add support for arm_test_noprobe. |
| 124 |
| 125 # TODO(jochen): Add support for cpu_arch != v8_target_arch/ |
| 126 } |
| 101 if (v8_target_arch == "arm64") { | 127 if (v8_target_arch == "arm64") { |
| 102 defines += [ "V8_TARGET_ARCH_ARM64" ] | 128 defines += [ "V8_TARGET_ARCH_ARM64" ] |
| 103 } | 129 } |
| 104 if (v8_target_arch == "x86") { | 130 if (v8_target_arch == "x86") { |
| 105 defines += [ "V8_TARGET_ARCH_IA32" ] | 131 defines += [ "V8_TARGET_ARCH_IA32" ] |
| 106 } | 132 } |
| 107 if (v8_target_arch == "x64") { | 133 if (v8_target_arch == "x64") { |
| 108 defines += [ "V8_TARGET_ARCH_X64" ] | 134 defines += [ "V8_TARGET_ARCH_X64" ] |
| 109 } | 135 } |
| 110 if (is_win) { | 136 if (is_win) { |
| (...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1529 sources += [ | 1555 sources += [ |
| 1530 "src/d8-debug.cc", | 1556 "src/d8-debug.cc", |
| 1531 "$target_gen_dir/d8-js.cc", | 1557 "$target_gen_dir/d8-js.cc", |
| 1532 ] | 1558 ] |
| 1533 } | 1559 } |
| 1534 if (v8_enable_i18n_support) { | 1560 if (v8_enable_i18n_support) { |
| 1535 deps += [ "//third_party/icu" ] | 1561 deps += [ "//third_party/icu" ] |
| 1536 } | 1562 } |
| 1537 } | 1563 } |
| 1538 } | 1564 } |
| OLD | NEW |