OLD | NEW |
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 ], | 148 ], |
149 'outputs': [ | 149 'outputs': [ |
150 '<(INTERMEDIATE_DIR)/snapshot.cc', | 150 '<(INTERMEDIATE_DIR)/snapshot.cc', |
151 ], | 151 ], |
152 'variables': { | 152 'variables': { |
153 'mksnapshot_flags': [ | 153 'mksnapshot_flags': [ |
154 '--log-snapshot-positions', | 154 '--log-snapshot-positions', |
155 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', | 155 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', |
156 ], | 156 ], |
157 }, | 157 }, |
158 'conditions': [ | |
159 ['v8_target_arch=="arm"', { | |
160 # The following rules should be consistent with chromium's | |
161 # common.gypi and V8's runtime rule to ensure they all generat
e | |
162 # the same correct machine code. The following issue is about | |
163 # V8's runtime rule about vfpv3 and neon: | |
164 # http://code.google.com/p/v8/issues/detail?id=914 | |
165 'conditions': [ | |
166 ['armv7==1', { | |
167 # The ARM Architecture Manual mandates VFPv3 if NEON is | |
168 # available. | |
169 # V8 does not use d16-d31 unless explicitly enabled | |
170 # (--enable_32dregs) or detected at run-time, so for vfpv3
-d16, | |
171 # we can also enable vfp3 for the better performance. | |
172 'conditions': [ | |
173 ['arm_neon!=1 and arm_fpu!="vfpv3" and arm_fpu!="vfpv3-d
16"', { | |
174 'variables': { | |
175 'mksnapshot_flags': [ | |
176 '--noenable_vfp3', | |
177 ], | |
178 }, | |
179 }], | |
180 ], | |
181 },{ # else: armv7!=1 | |
182 'variables': { | |
183 'mksnapshot_flags': [ | |
184 '--noenable_armv7', | |
185 '--noenable_vfp3', | |
186 ], | |
187 }, | |
188 }], | |
189 ], | |
190 }], | |
191 ], | |
192 'action': [ | 158 'action': [ |
193 '<@(_inputs)', | 159 '<@(_inputs)', |
194 '<@(mksnapshot_flags)', | 160 '<@(mksnapshot_flags)', |
195 '<@(_outputs)' | 161 '<@(_outputs)' |
196 ], | 162 ], |
197 }, | 163 }, |
198 ], | 164 ], |
199 }, | 165 }, |
200 { | 166 { |
201 'target_name': 'v8_nosnapshot.<(v8_target_arch)', | 167 'target_name': 'v8_nosnapshot.<(v8_target_arch)', |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 }], | 977 }], |
1012 ], | 978 ], |
1013 'dependencies': [ | 979 'dependencies': [ |
1014 'v8' | 980 'v8' |
1015 ], | 981 ], |
1016 }, | 982 }, |
1017 ], | 983 ], |
1018 }], | 984 }], |
1019 ], | 985 ], |
1020 } | 986 } |
OLD | NEW |