OLD | NEW |
1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 arm/lithium-codegen-arm.cc | 156 arm/lithium-codegen-arm.cc |
157 arm/lithium-gap-resolver-arm.cc | 157 arm/lithium-gap-resolver-arm.cc |
158 arm/macro-assembler-arm.cc | 158 arm/macro-assembler-arm.cc |
159 arm/regexp-macro-assembler-arm.cc | 159 arm/regexp-macro-assembler-arm.cc |
160 arm/register-allocator-arm.cc | 160 arm/register-allocator-arm.cc |
161 arm/stub-cache-arm.cc | 161 arm/stub-cache-arm.cc |
162 arm/virtual-frame-arm.cc | 162 arm/virtual-frame-arm.cc |
163 arm/assembler-arm.cc | 163 arm/assembler-arm.cc |
164 """), | 164 """), |
165 'arch:mips': Split(""" | 165 'arch:mips': Split(""" |
| 166 jump-target-light.cc |
| 167 virtual-frame-light.cc |
166 mips/assembler-mips.cc | 168 mips/assembler-mips.cc |
167 mips/builtins-mips.cc | 169 mips/builtins-mips.cc |
| 170 mips/code-stubs-mips.cc |
168 mips/codegen-mips.cc | 171 mips/codegen-mips.cc |
169 mips/constants-mips.cc | 172 mips/constants-mips.cc |
170 mips/cpu-mips.cc | 173 mips/cpu-mips.cc |
171 mips/debug-mips.cc | 174 mips/debug-mips.cc |
| 175 mips/deoptimizer-mips.cc |
172 mips/disasm-mips.cc | 176 mips/disasm-mips.cc |
| 177 mips/frames-mips.cc |
173 mips/full-codegen-mips.cc | 178 mips/full-codegen-mips.cc |
174 mips/frames-mips.cc | |
175 mips/ic-mips.cc | 179 mips/ic-mips.cc |
176 mips/jump-target-mips.cc | 180 mips/jump-target-mips.cc |
177 mips/macro-assembler-mips.cc | 181 mips/macro-assembler-mips.cc |
| 182 mips/regexp-macro-assembler-mips.cc |
178 mips/register-allocator-mips.cc | 183 mips/register-allocator-mips.cc |
179 mips/stub-cache-mips.cc | 184 mips/stub-cache-mips.cc |
180 mips/virtual-frame-mips.cc | 185 mips/virtual-frame-mips.cc |
181 """), | 186 """), |
182 'arch:ia32': Split(""" | 187 'arch:ia32': Split(""" |
183 jump-target-heavy.cc | 188 jump-target-heavy.cc |
184 virtual-frame-heavy.cc | 189 virtual-frame-heavy.cc |
185 ia32/assembler-ia32.cc | 190 ia32/assembler-ia32.cc |
186 ia32/builtins-ia32.cc | 191 ia32/builtins-ia32.cc |
187 ia32/code-stubs-ia32.cc | 192 ia32/code-stubs-ia32.cc |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 'os:cygwin': ['platform-cygwin.cc', 'platform-posix.cc'], | 243 'os:cygwin': ['platform-cygwin.cc', 'platform-posix.cc'], |
239 'os:nullos': ['platform-nullos.cc'], | 244 'os:nullos': ['platform-nullos.cc'], |
240 'os:win32': ['platform-win32.cc'], | 245 'os:win32': ['platform-win32.cc'], |
241 'mode:release': [], | 246 'mode:release': [], |
242 'mode:debug': [ | 247 'mode:debug': [ |
243 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' | 248 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' |
244 ] | 249 ] |
245 } | 250 } |
246 | 251 |
247 | 252 |
| 253 PREPARSER_SOURCES = { |
| 254 'all': Split(""" |
| 255 allocation.cc |
| 256 hashmap.cc |
| 257 preparse-data.cc |
| 258 preparser.cc |
| 259 preparser-api.cc |
| 260 scanner-base.cc |
| 261 token.cc |
| 262 unicode.cc |
| 263 """) |
| 264 } |
| 265 |
| 266 |
248 D8_FILES = { | 267 D8_FILES = { |
249 'all': [ | 268 'all': [ |
250 'd8.cc', 'd8-debug.cc' | 269 'd8.cc', 'd8-debug.cc' |
251 ], | 270 ], |
252 'os:linux': [ | 271 'os:linux': [ |
253 'd8-posix.cc' | 272 'd8-posix.cc' |
254 ], | 273 ], |
255 'os:macos': [ | 274 'os:macos': [ |
256 'd8-posix.cc' | 275 'd8-posix.cc' |
257 ], | 276 ], |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 # Combine the JavaScript library files into a single C++ file and | 342 # Combine the JavaScript library files into a single C++ file and |
324 # compile it. | 343 # compile it. |
325 library_files = [s for s in LIBRARY_FILES] | 344 library_files = [s for s in LIBRARY_FILES] |
326 library_files.append('macros.py') | 345 library_files.append('macros.py') |
327 libraries_src, libraries_empty_src = env.JS2C(['libraries.cc', 'libraries-empt
y.cc'], library_files, TYPE='CORE') | 346 libraries_src, libraries_empty_src = env.JS2C(['libraries.cc', 'libraries-empt
y.cc'], library_files, TYPE='CORE') |
328 libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) | 347 libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) |
329 | 348 |
330 source_objs = context.ConfigureObject(env, source_files) | 349 source_objs = context.ConfigureObject(env, source_files) |
331 non_snapshot_files = [source_objs] | 350 non_snapshot_files = [source_objs] |
332 | 351 |
| 352 preparser_source_files = context.GetRelevantSources(PREPARSER_SOURCES) |
| 353 preparser_objs = context.ConfigureObject(env, preparser_source_files) |
| 354 |
333 # Create snapshot if necessary. For cross compilation you should either | 355 # Create snapshot if necessary. For cross compilation you should either |
334 # do without snapshots and take the performance hit or you should build a | 356 # do without snapshots and take the performance hit or you should build a |
335 # host VM with the simulator=arm and snapshot=on options and then take the | 357 # host VM with the simulator=arm and snapshot=on options and then take the |
336 # resulting snapshot.cc file from obj/release and put it in the src | 358 # resulting snapshot.cc file from obj/release and put it in the src |
337 # directory. Then rebuild the VM with the cross compiler and specify | 359 # directory. Then rebuild the VM with the cross compiler and specify |
338 # snapshot=nobuild on the scons command line. | 360 # snapshot=nobuild on the scons command line. |
339 empty_snapshot_obj = context.ConfigureObject(env, 'snapshot-empty.cc') | 361 empty_snapshot_obj = context.ConfigureObject(env, 'snapshot-empty.cc') |
340 mksnapshot_env = env.Copy() | 362 mksnapshot_env = env.Copy() |
341 mksnapshot_env.Replace(**context.flags['mksnapshot']) | 363 mksnapshot_env.Replace(**context.flags['mksnapshot']) |
342 mksnapshot_src = 'mksnapshot.cc' | 364 mksnapshot_src = 'mksnapshot.cc' |
343 mksnapshot = mksnapshot_env.Program('mksnapshot', [mksnapshot_src, libraries_o
bj, non_snapshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb') | 365 mksnapshot = mksnapshot_env.Program('mksnapshot', [mksnapshot_src, libraries_o
bj, non_snapshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb') |
344 if context.use_snapshot: | 366 if context.use_snapshot: |
345 if context.build_snapshot: | 367 if context.build_snapshot: |
346 snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot, LOGFILE=File('snapsh
ot.log').abspath) | 368 snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot, LOGFILE=File('snapsh
ot.log').abspath) |
347 else: | 369 else: |
348 snapshot_cc = 'snapshot.cc' | 370 snapshot_cc = 'snapshot.cc' |
349 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) | 371 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) |
350 else: | 372 else: |
351 snapshot_obj = empty_snapshot_obj | 373 snapshot_obj = empty_snapshot_obj |
352 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] | 374 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] |
353 return (library_objs, d8_objs, [mksnapshot]) | 375 return (library_objs, d8_objs, [mksnapshot], preparser_objs) |
354 | 376 |
355 | 377 |
356 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() | 378 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() |
357 Return('library_objs d8_objs mksnapshot') | 379 Return('library_objs d8_objs mksnapshot preparser_objs') |
OLD | NEW |