| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 'mode:release': [], | 224 'mode:release': [], |
| 225 'mode:debug': [ | 225 'mode:debug': [ |
| 226 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' | 226 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' |
| 227 ] | 227 ] |
| 228 } | 228 } |
| 229 | 229 |
| 230 | 230 |
| 231 PREPARSER_SOURCES = { | 231 PREPARSER_SOURCES = { |
| 232 'all': Split(""" | 232 'all': Split(""" |
| 233 allocation.cc | 233 allocation.cc |
| 234 bignum.cc | |
| 235 cached-powers.cc | |
| 236 conversions.cc | |
| 237 hashmap.cc | 234 hashmap.cc |
| 238 preparse-data.cc | 235 preparse-data.cc |
| 239 preparser.cc | 236 preparser.cc |
| 240 preparser-api.cc | 237 preparser-api.cc |
| 241 scanner-base.cc | 238 scanner-base.cc |
| 242 strtod.cc | |
| 243 token.cc | 239 token.cc |
| 244 unicode.cc | 240 unicode.cc |
| 245 utils.cc | 241 utils.cc |
| 246 """) | 242 """) |
| 247 } | 243 } |
| 248 | 244 |
| 249 | 245 |
| 250 D8_FILES = { | 246 D8_FILES = { |
| 251 'all': [ | 247 'all': [ |
| 252 'd8.cc', 'd8-debug.cc' | 248 'd8.cc', 'd8-debug.cc' |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 def Abort(message): | 306 def Abort(message): |
| 311 print message | 307 print message |
| 312 sys.exit(1) | 308 sys.exit(1) |
| 313 | 309 |
| 314 | 310 |
| 315 def ConfigureObjectFiles(): | 311 def ConfigureObjectFiles(): |
| 316 env = Environment(tools=tools) | 312 env = Environment(tools=tools) |
| 317 env.Replace(**context.flags['v8']) | 313 env.Replace(**context.flags['v8']) |
| 318 context.ApplyEnvOverrides(env) | 314 context.ApplyEnvOverrides(env) |
| 319 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) | 315 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) |
| 320 if 'ENABLE_LOGGING_AND_PROFILING' in env['CPPDEFINES']: | 316 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF
ILE" --log-snapshot-positions') |
| 321 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LO
GFILE" --log-snapshot-positions') | |
| 322 else: | |
| 323 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET') | |
| 324 | 317 |
| 325 def BuildJS2CEnv(type): | 318 def BuildJS2CEnv(type): |
| 326 js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } | 319 js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } |
| 327 if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: | 320 if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: |
| 328 js2c_env['COMPRESSION'] = 'bz2' | 321 js2c_env['COMPRESSION'] = 'bz2' |
| 329 return js2c_env | 322 return js2c_env |
| 330 | 323 |
| 331 # Build the standard platform-independent source files. | 324 # Build the standard platform-independent source files. |
| 332 source_files = context.GetRelevantSources(SOURCES) | 325 source_files = context.GetRelevantSources(SOURCES) |
| 333 | 326 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 snapshot_cc = 'snapshot.cc' | 370 snapshot_cc = 'snapshot.cc' |
| 378 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) | 371 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) |
| 379 else: | 372 else: |
| 380 snapshot_obj = empty_snapshot_obj | 373 snapshot_obj = empty_snapshot_obj |
| 381 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj,
snapshot_obj] | 374 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj,
snapshot_obj] |
| 382 return (library_objs, d8_objs, [mksnapshot], preparser_objs) | 375 return (library_objs, d8_objs, [mksnapshot], preparser_objs) |
| 383 | 376 |
| 384 | 377 |
| 385 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() | 378 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() |
| 386 Return('library_objs d8_objs mksnapshot preparser_objs') | 379 Return('library_objs d8_objs mksnapshot preparser_objs') |
| OLD | NEW |