| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2008 the V8 project authors. All rights reserved. | 3 # Copyright 2008 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 options.scons_flags.append("snapshot=on") | 1266 options.scons_flags.append("snapshot=on") |
| 1267 global VARIANT_FLAGS | 1267 global VARIANT_FLAGS |
| 1268 if options.stress_only: | 1268 if options.stress_only: |
| 1269 VARIANT_FLAGS = [['--stress-opt', '--always-opt']] | 1269 VARIANT_FLAGS = [['--stress-opt', '--always-opt']] |
| 1270 if options.nostress: | 1270 if options.nostress: |
| 1271 VARIANT_FLAGS = [[],['--nocrankshaft']] | 1271 VARIANT_FLAGS = [[],['--nocrankshaft']] |
| 1272 if options.crankshaft: | 1272 if options.crankshaft: |
| 1273 if options.special_command: | 1273 if options.special_command: |
| 1274 options.special_command += " --crankshaft" | 1274 options.special_command += " --crankshaft" |
| 1275 else: | 1275 else: |
| 1276 options.special_command = "@--crankshaft" | 1276 options.special_command = "@ --crankshaft" |
| 1277 if options.shell == "d8": | 1277 if options.shell.endswith("d8"): |
| 1278 if options.special_command: | 1278 if options.special_command: |
| 1279 options.special_command += " --test" | 1279 options.special_command += " --test" |
| 1280 else: | 1280 else: |
| 1281 options.special_command = "@--test" | 1281 options.special_command = "@ --test" |
| 1282 if options.noprof: | 1282 if options.noprof: |
| 1283 options.scons_flags.append("prof=off") | 1283 options.scons_flags.append("prof=off") |
| 1284 options.scons_flags.append("profilingsupport=off") | 1284 options.scons_flags.append("profilingsupport=off") |
| 1285 if options.build_system == 'gyp': | 1285 if options.build_system == 'gyp': |
| 1286 if options.build_only: | 1286 if options.build_only: |
| 1287 print "--build-only not supported for gyp, please build manually." | 1287 print "--build-only not supported for gyp, please build manually." |
| 1288 options.build_only = False | 1288 options.build_only = False |
| 1289 return True | 1289 return True |
| 1290 | 1290 |
| 1291 | 1291 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 for entry in timed_tests[:20]: | 1521 for entry in timed_tests[:20]: |
| 1522 t = FormatTime(entry.duration) | 1522 t = FormatTime(entry.duration) |
| 1523 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1523 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
| 1524 index += 1 | 1524 index += 1 |
| 1525 | 1525 |
| 1526 return result | 1526 return result |
| 1527 | 1527 |
| 1528 | 1528 |
| 1529 if __name__ == '__main__': | 1529 if __name__ == '__main__': |
| 1530 sys.exit(Main()) | 1530 sys.exit(Main()) |
| OLD | NEW |