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

Side by Side Diff: BUILD.gn

Issue 1963583004: [turbofan] Initial version of allocation folding and write barrier elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Jaros comments; Created 4 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
« no previous file with comments | « no previous file | src/arm/builtins-arm.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 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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/mips.gni") 7 import("//build/config/mips.gni")
8 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 "CAN_USE_VFP3_INSTRUCTIONS", 187 "CAN_USE_VFP3_INSTRUCTIONS",
188 "CAN_USE_VFP32DREGS", 188 "CAN_USE_VFP32DREGS",
189 ] 189 ]
190 } else if (arm_fpu == "neon") { 190 } else if (arm_fpu == "neon") {
191 defines += [ 191 defines += [
192 "CAN_USE_VFP3_INSTRUCTIONS", 192 "CAN_USE_VFP3_INSTRUCTIONS",
193 "CAN_USE_VFP32DREGS", 193 "CAN_USE_VFP32DREGS",
194 "CAN_USE_NEON", 194 "CAN_USE_NEON",
195 ] 195 ]
196 } 196 }
197
197 # TODO(jochen): Add support for arm_test_noprobe. 198 # TODO(jochen): Add support for arm_test_noprobe.
198 199
199 if (current_cpu != "arm") { 200 if (current_cpu != "arm") {
200 # These defines ares used for the ARM simulator. 201 # These defines ares used for the ARM simulator.
201 if (arm_float_abi == "hard") { 202 if (arm_float_abi == "hard") {
202 defines += [ "USE_EABI_HARDFLOAT=1" ] 203 defines += [ "USE_EABI_HARDFLOAT=1" ]
203 } else if (arm_float_abi == "softfp") { 204 } else if (arm_float_abi == "softfp") {
204 defines += [ "USE_EABI_HARDFLOAT=0" ] 205 defines += [ "USE_EABI_HARDFLOAT=0" ]
205 } 206 }
206 } 207 }
207 } 208 }
208 if (v8_target_arch == "arm64") { 209 if (v8_target_arch == "arm64") {
209 defines += [ "V8_TARGET_ARCH_ARM64" ] 210 defines += [ "V8_TARGET_ARCH_ARM64" ]
210 } 211 }
212
211 # TODO(jochen): Add support for mips. 213 # TODO(jochen): Add support for mips.
212 if (v8_target_arch == "mipsel") { 214 if (v8_target_arch == "mipsel") {
213 defines += [ "V8_TARGET_ARCH_MIPS" ] 215 defines += [ "V8_TARGET_ARCH_MIPS" ]
214 if (v8_can_use_fpu_instructions) { 216 if (v8_can_use_fpu_instructions) {
215 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ] 217 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
216 } 218 }
217 if (v8_use_mips_abi_hardfloat) { 219 if (v8_use_mips_abi_hardfloat) {
218 defines += [ 220 defines += [
219 "__mips_hard_float=1", 221 "__mips_hard_float=1",
220 "CAN_USE_FPU_INSTRUCTIONS", 222 "CAN_USE_FPU_INSTRUCTIONS",
(...skipping 11 matching lines...) Expand all
232 if (mips_fpu_mode == "fp64") { 234 if (mips_fpu_mode == "fp64") {
233 defines += [ "FPU_MODE_FP64" ] 235 defines += [ "FPU_MODE_FP64" ]
234 } else if (mips_fpu_mode == "fpxx") { 236 } else if (mips_fpu_mode == "fpxx") {
235 defines += [ "FPU_MODE_FPXX" ] 237 defines += [ "FPU_MODE_FPXX" ]
236 } else if (mips_fpu_mode == "fp32") { 238 } else if (mips_fpu_mode == "fp32") {
237 defines += [ "FPU_MODE_FP32" ] 239 defines += [ "FPU_MODE_FP32" ]
238 } 240 }
239 } else if (mips_arch_variant == "r1") { 241 } else if (mips_arch_variant == "r1") {
240 defines += [ "FPU_MODE_FP32" ] 242 defines += [ "FPU_MODE_FP32" ]
241 } 243 }
244
242 # TODO(jochen): Add support for mips_arch_variant rx and loongson. 245 # TODO(jochen): Add support for mips_arch_variant rx and loongson.
243 } 246 }
247
244 # TODO(jochen): Add support for mips64. 248 # TODO(jochen): Add support for mips64.
245 if (v8_target_arch == "mips64el") { 249 if (v8_target_arch == "mips64el") {
246 defines += [ "V8_TARGET_ARCH_MIPS64" ] 250 defines += [ "V8_TARGET_ARCH_MIPS64" ]
247 if (v8_can_use_fpu_instructions) { 251 if (v8_can_use_fpu_instructions) {
248 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ] 252 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
249 } 253 }
254
250 # TODO(jochen): Add support for big endian host byteorder. 255 # TODO(jochen): Add support for big endian host byteorder.
251 defines += [ "V8_TARGET_ARCH_MIPS64_LE" ] 256 defines += [ "V8_TARGET_ARCH_MIPS64_LE" ]
252 if (v8_use_mips_abi_hardfloat) { 257 if (v8_use_mips_abi_hardfloat) {
253 defines += [ 258 defines += [
254 "__mips_hard_float=1", 259 "__mips_hard_float=1",
255 "CAN_USE_FPU_INSTRUCTIONS", 260 "CAN_USE_FPU_INSTRUCTIONS",
256 ] 261 ]
257 } else { 262 } else {
258 defines += [ "__mips_soft_float=1" ] 263 defines += [ "__mips_soft_float=1" ]
259 } 264 }
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 "src/compiler/ast-loop-assignment-analyzer.h", 833 "src/compiler/ast-loop-assignment-analyzer.h",
829 "src/compiler/basic-block-instrumentor.cc", 834 "src/compiler/basic-block-instrumentor.cc",
830 "src/compiler/basic-block-instrumentor.h", 835 "src/compiler/basic-block-instrumentor.h",
831 "src/compiler/branch-elimination.cc", 836 "src/compiler/branch-elimination.cc",
832 "src/compiler/branch-elimination.h", 837 "src/compiler/branch-elimination.h",
833 "src/compiler/bytecode-branch-analysis.cc", 838 "src/compiler/bytecode-branch-analysis.cc",
834 "src/compiler/bytecode-branch-analysis.h", 839 "src/compiler/bytecode-branch-analysis.h",
835 "src/compiler/bytecode-graph-builder.cc", 840 "src/compiler/bytecode-graph-builder.cc",
836 "src/compiler/bytecode-graph-builder.h", 841 "src/compiler/bytecode-graph-builder.h",
837 "src/compiler/c-linkage.cc", 842 "src/compiler/c-linkage.cc",
838 "src/compiler/change-lowering.cc",
839 "src/compiler/change-lowering.h",
840 "src/compiler/coalesced-live-ranges.cc", 843 "src/compiler/coalesced-live-ranges.cc",
841 "src/compiler/coalesced-live-ranges.h", 844 "src/compiler/coalesced-live-ranges.h",
842 "src/compiler/code-assembler.cc", 845 "src/compiler/code-assembler.cc",
843 "src/compiler/code-assembler.h", 846 "src/compiler/code-assembler.h",
844 "src/compiler/code-generator-impl.h", 847 "src/compiler/code-generator-impl.h",
845 "src/compiler/code-generator.cc", 848 "src/compiler/code-generator.cc",
846 "src/compiler/code-generator.h", 849 "src/compiler/code-generator.h",
847 "src/compiler/common-node-cache.cc", 850 "src/compiler/common-node-cache.cc",
848 "src/compiler/common-node-cache.h", 851 "src/compiler/common-node-cache.h",
849 "src/compiler/common-operator-reducer.cc", 852 "src/compiler/common-operator-reducer.cc",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 "src/compiler/liveness-analyzer.h", 936 "src/compiler/liveness-analyzer.h",
934 "src/compiler/load-elimination.cc", 937 "src/compiler/load-elimination.cc",
935 "src/compiler/load-elimination.h", 938 "src/compiler/load-elimination.h",
936 "src/compiler/loop-analysis.cc", 939 "src/compiler/loop-analysis.cc",
937 "src/compiler/loop-analysis.h", 940 "src/compiler/loop-analysis.h",
938 "src/compiler/loop-peeling.cc", 941 "src/compiler/loop-peeling.cc",
939 "src/compiler/machine-operator-reducer.cc", 942 "src/compiler/machine-operator-reducer.cc",
940 "src/compiler/machine-operator-reducer.h", 943 "src/compiler/machine-operator-reducer.h",
941 "src/compiler/machine-operator.cc", 944 "src/compiler/machine-operator.cc",
942 "src/compiler/machine-operator.h", 945 "src/compiler/machine-operator.h",
946 "src/compiler/memory-optimizer.cc",
947 "src/compiler/memory-optimizer.h",
943 "src/compiler/move-optimizer.cc", 948 "src/compiler/move-optimizer.cc",
944 "src/compiler/move-optimizer.h", 949 "src/compiler/move-optimizer.h",
945 "src/compiler/node-aux-data.h", 950 "src/compiler/node-aux-data.h",
946 "src/compiler/node-cache.cc", 951 "src/compiler/node-cache.cc",
947 "src/compiler/node-cache.h", 952 "src/compiler/node-cache.h",
948 "src/compiler/node-marker.cc", 953 "src/compiler/node-marker.cc",
949 "src/compiler/node-marker.h", 954 "src/compiler/node-marker.h",
950 "src/compiler/node-matchers.cc", 955 "src/compiler/node-matchers.cc",
951 "src/compiler/node-matchers.h", 956 "src/compiler/node-matchers.h",
952 "src/compiler/node-properties.cc", 957 "src/compiler/node-properties.cc",
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 2126
2122 if (!is_component_build) { 2127 if (!is_component_build) {
2123 sources += [ "$target_gen_dir/d8-js.cc" ] 2128 sources += [ "$target_gen_dir/d8-js.cc" ]
2124 } 2129 }
2125 if (v8_enable_i18n_support) { 2130 if (v8_enable_i18n_support) {
2126 deps += [ "//third_party/icu" ] 2131 deps += [ "//third_party/icu" ]
2127 } 2132 }
2128 } 2133 }
2129 } 2134 }
2130 2135
2131 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || 2136 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || ( current_toolchain == snapshot_toolchain && v8_toolset_for_shell == "host") || (c urrent_toolchain != host_toolchain && v8_toolset_for_shell == "target")) {
2132 (current_toolchain == snapshot_toolchain && v8_toolset_for_shell == "host") ||
2133 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) {
2134 executable("shell") { 2137 executable("shell") {
2135 sources = [ 2138 sources = [
2136 "samples/shell.cc", 2139 "samples/shell.cc",
2137 ] 2140 ]
2138 2141
2139 configs -= [ "//build/config/compiler:chromium_code" ] 2142 configs -= [ "//build/config/compiler:chromium_code" ]
2140 configs += [ "//build/config/compiler:no_chromium_code" ] 2143 configs += [ "//build/config/compiler:no_chromium_code" ]
2141 configs += [ 2144 configs += [
2142 # Note: don't use :internal_config here because this target will get 2145 # Note: don't use :internal_config here because this target will get
2143 # the :external_config applied to it by virtue of depending on :v8, and 2146 # the :external_config applied to it by virtue of depending on :v8, and
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 2250
2248 configs -= [ "//build/config/compiler:chromium_code" ] 2251 configs -= [ "//build/config/compiler:chromium_code" ]
2249 configs += [ "//build/config/compiler:no_chromium_code" ] 2252 configs += [ "//build/config/compiler:no_chromium_code" ]
2250 configs += [ 2253 configs += [
2251 ":internal_config", 2254 ":internal_config",
2252 ":libplatform_config", 2255 ":libplatform_config",
2253 ":features", 2256 ":features",
2254 ":toolchain", 2257 ":toolchain",
2255 ] 2258 ]
2256 } 2259 }
OLDNEW
« no previous file with comments | « no previous file | src/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698