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

Side by Side Diff: build/common.gypi

Issue 14263018: ARM: Makefile/gyp update allowing better control of ARM specific options. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Review comments Created 7 years, 8 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 | « Makefile ('k') | src/arm/assembler-arm.h » ('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 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 ['v8_enable_verify_heap==1', { 129 ['v8_enable_verify_heap==1', {
130 'defines': ['VERIFY_HEAP',], 130 'defines': ['VERIFY_HEAP',],
131 }], 131 }],
132 ['v8_interpreted_regexp==1', { 132 ['v8_interpreted_regexp==1', {
133 'defines': ['V8_INTERPRETED_REGEXP',], 133 'defines': ['V8_INTERPRETED_REGEXP',],
134 }], 134 }],
135 ['v8_target_arch=="arm"', { 135 ['v8_target_arch=="arm"', {
136 'defines': [ 136 'defines': [
137 'V8_TARGET_ARCH_ARM', 137 'V8_TARGET_ARCH_ARM',
138 ], 138 ],
139 'variables': {
140 'armsimulator': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: arm" && echo "no" || echo "yes")',
141 },
139 'conditions': [ 142 'conditions': [
140 ['armv7==1', {
141 'defines': [
142 'CAN_USE_ARMV7_INSTRUCTIONS=1',
143 ],
144 }],
145 [ 'v8_can_use_unaligned_accesses=="true"', { 143 [ 'v8_can_use_unaligned_accesses=="true"', {
146 'defines': [ 144 'defines': [
147 'CAN_USE_UNALIGNED_ACCESSES=1', 145 'CAN_USE_UNALIGNED_ACCESSES=1',
148 ], 146 ],
149 }], 147 }, {
150 [ 'v8_can_use_unaligned_accesses=="false"', {
151 'defines': [ 148 'defines': [
152 'CAN_USE_UNALIGNED_ACCESSES=0', 149 'CAN_USE_UNALIGNED_ACCESSES=0',
153 ], 150 ],
154 }], 151 }],
155 # NEON implies VFP3 and VFP3 implies VFP2. 152 ['armsimulator=="no"', {
156 [ 'v8_can_use_vfp2_instructions=="true" or arm_neon==1 or \ 153 'target_conditions': [
157 arm_fpu=="vfpv3" or arm_fpu=="vfpv3-d16"', { 154 ['_toolset=="target"', {
158 'defines': [ 155 'conditions': [
159 'CAN_USE_VFP2_INSTRUCTIONS', 156 [ 'armv7==1', {
157 'cflags': ['-march=armv7-a',],
158 }],
159 [ 'armv7==1 or armv7=="default"', {
160 'conditions': [
161 [ 'arm_neon==1', {
162 'cflags': ['-mfpu=neon',],
163 },
164 {
165 'conditions': [
166 [ 'arm_fpu!="default"', {
167 'cflags': ['-mfpu=<(arm_fpu)',],
168 }],
169 ]
170 }],
171 ]
172 }],
173 [ 'arm_float_abi!="default"', {
174 'cflags': ['-mfloat-abi=<(arm_float_abi)',],
175 }],
176 [ 'arm_thumb==1', {
177 'cflags': ['-mthumb',],
178 }],
179 [ 'arm_thumb==0', {
180 'cflags': ['-marm',],
181 }],
182 ],
183 }],
184 ],
185 'conditions': [
186 [ 'arm_test=="on"', {
187 'defines': [
188 'ARM_TEST',
189 ],
190 }],
160 ], 191 ],
161 }], 192 }],
162 # NEON implies VFP3. 193 ['armsimulator=="yes"', {
163 [ 'v8_can_use_vfp3_instructions=="true" or arm_neon==1 or \
164 arm_fpu=="vfpv3" or arm_fpu=="vfpv3-d16"', {
165 'defines': [ 194 'defines': [
166 'CAN_USE_VFP3_INSTRUCTIONS', 195 'ARM_TEST',
167 ], 196 ],
168 }], 197 'conditions': [
169 [ 'v8_use_arm_eabi_hardfloat=="true"', { 198 [ 'armv7==1 or armv7=="default"', {
170 'defines': [ 199 'defines': [
171 'USE_EABI_HARDFLOAT=1', 200 'CAN_USE_ARMV7_INSTRUCTIONS=1',
172 'CAN_USE_VFP2_INSTRUCTIONS', 201 ],
173 ], 202 'conditions': [
174 'target_conditions': [ 203 [ 'arm_fpu=="default"', {
175 ['_toolset=="target"', { 204 'defines': [
176 'cflags': ['-mfloat-abi=hard',], 205 'CAN_USE_VFP3_INSTRUCTIONS',
206 ],
207 }],
208 [ 'arm_fpu=="vfpv3-d16"', {
209 'defines': [
210 'CAN_USE_VFP3_INSTRUCTIONS',
211 ],
212 }],
213 [ 'arm_fpu=="vfpv3"', {
214 'defines': [
215 'CAN_USE_VFP3_INSTRUCTIONS',
216 'CAN_USE_VFP32DREGS',
217 ],
218 }],
219 [ 'arm_fpu=="neon" or arm_neon==1', {
220 'defines': [
221 'CAN_USE_VFP3_INSTRUCTIONS',
222 'CAN_USE_VFP32DREGS',
223 ],
224 }],
225 ],
177 }], 226 }],
178 ], 227 [ 'arm_float_abi=="hard"', {
179 }, { 228 'defines': [
180 'defines': [ 229 'USE_EABI_HARDFLOAT=1',
181 'USE_EABI_HARDFLOAT=0', 230 ],
182 ], 231 }],
183 }], 232 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', {
184 [ 'v8_can_use_vfp32dregs=="true"', { 233 'defines': [
185 'defines': [ 234 'USE_EABI_HARDFLOAT=0',
186 'CAN_USE_VFP32DREGS', 235 ],
187 ], 236 }],
237 ]
188 }], 238 }],
189 ], 239 ],
190 }], # v8_target_arch=="arm" 240 }], # v8_target_arch=="arm"
191 ['v8_target_arch=="ia32"', { 241 ['v8_target_arch=="ia32"', {
192 'defines': [ 242 'defines': [
193 'V8_TARGET_ARCH_IA32', 243 'V8_TARGET_ARCH_IA32',
194 ], 244 ],
195 }], # v8_target_arch=="ia32" 245 }], # v8_target_arch=="ia32"
196 ['v8_target_arch=="mipsel"', { 246 ['v8_target_arch=="mipsel"', {
197 'defines': [ 247 'defines': [
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 'OptimizeReferences': '2', 513 'OptimizeReferences': '2',
464 'EnableCOMDATFolding': '2', 514 'EnableCOMDATFolding': '2',
465 }, 515 },
466 }, 516 },
467 }], # OS=="win" 517 }], # OS=="win"
468 ], # conditions 518 ], # conditions
469 }, # Release 519 }, # Release
470 }, # configurations 520 }, # configurations
471 }, # target_defaults 521 }, # target_defaults
472 } 522 }
OLDNEW
« no previous file with comments | « Makefile ('k') | src/arm/assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698