| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  306 def Abort(message): |  306 def Abort(message): | 
|  307   print message |  307   print message | 
|  308   sys.exit(1) |  308   sys.exit(1) | 
|  309  |  309  | 
|  310  |  310  | 
|  311 def ConfigureObjectFiles(): |  311 def ConfigureObjectFiles(): | 
|  312   env = Environment(tools=tools) |  312   env = Environment(tools=tools) | 
|  313   env.Replace(**context.flags['v8']) |  313   env.Replace(**context.flags['v8']) | 
|  314   context.ApplyEnvOverrides(env) |  314   context.ApplyEnvOverrides(env) | 
|  315   env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) |  315   env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) | 
|  316   if 'ENABLE_LOGGING_AND_PROFILING' in env['CPPDEFINES']: |  316   env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF
     ILE" --log-snapshot-positions') | 
|  317     env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LO
     GFILE" --log-snapshot-positions') |  | 
|  318   else: |  | 
|  319     env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET') |  | 
|  320  |  317  | 
|  321   def BuildJS2CEnv(type): |  318   def BuildJS2CEnv(type): | 
|  322     js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } |  319     js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } | 
|  323     if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: |  320     if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: | 
|  324       js2c_env['COMPRESSION'] = 'bz2' |  321       js2c_env['COMPRESSION'] = 'bz2' | 
|  325     return js2c_env |  322     return js2c_env | 
|  326  |  323  | 
|  327   # Build the standard platform-independent source files. |  324   # Build the standard platform-independent source files. | 
|  328   source_files = context.GetRelevantSources(SOURCES) |  325   source_files = context.GetRelevantSources(SOURCES) | 
|  329  |  326  | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  373       snapshot_cc = 'snapshot.cc' |  370       snapshot_cc = 'snapshot.cc' | 
|  374     snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) |  371     snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) | 
|  375   else: |  372   else: | 
|  376     snapshot_obj = empty_snapshot_obj |  373     snapshot_obj = empty_snapshot_obj | 
|  377   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] | 
|  378   return (library_objs, d8_objs, [mksnapshot], preparser_objs) |  375   return (library_objs, d8_objs, [mksnapshot], preparser_objs) | 
|  379  |  376  | 
|  380  |  377  | 
|  381 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() |  378 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() | 
|  382 Return('library_objs d8_objs mksnapshot preparser_objs') |  379 Return('library_objs d8_objs mksnapshot preparser_objs') | 
| OLD | NEW |