Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: tools/bots/compiler.py

Issue 1064053005: Use --use-cps-ir compiler option in the test script to run dart2js with the new backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/testing/dart/compiler_configuration.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Dart2js buildbot steps 8 Dart2js buildbot steps
9 9
10 Runs tests for the dart2js compiler. 10 Runs tests for the dart2js compiler.
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 [os.environ['PATH'], tools_dir, platform_tools_dir]) 352 [os.environ['PATH'], tools_dir, platform_tools_dir])
353 353
354 def RunCompilerTests(build_info): 354 def RunCompilerTests(build_info):
355 test_flags = [] 355 test_flags = []
356 if build_info.shard_index: 356 if build_info.shard_index:
357 test_flags = ['--shards=%s' % build_info.total_shards, 357 test_flags = ['--shards=%s' % build_info.total_shards,
358 '--shard=%s' % build_info.shard_index] 358 '--shard=%s' % build_info.shard_index]
359 if build_info.checked: test_flags += ['--checked'] 359 if build_info.checked: test_flags += ['--checked']
360 if build_info.minified: test_flags += ['--minified'] 360 if build_info.minified: test_flags += ['--minified']
361 if build_info.host_checked: test_flags += ['--host-checked'] 361 if build_info.host_checked: test_flags += ['--host-checked']
362 # cps backend does not work with batch mode due to the environment variable 362 if build_info.batch: test_flags += ['--dart2js-batch']
363 # setting.
364 if build_info.batch and not build_info.cps_ir:
365 test_flags += ['--dart2js-batch']
366 if build_info.builder_tag: test_flags += ['--builder-tag=' + 363 if build_info.builder_tag: test_flags += ['--builder-tag=' +
367 build_info.builder_tag] 364 build_info.builder_tag]
368 if build_info.cps_ir: test_flags += ['--cps-ir'] 365 if build_info.cps_ir: test_flags += ['--cps-ir']
369 366
370 if build_info.dart2js_full: 367 if build_info.dart2js_full:
371 compiler = build_info.compiler 368 compiler = build_info.compiler
372 assert compiler == 'dart2js' 369 assert compiler == 'dart2js'
373 system = build_info.system 370 system = build_info.system
374 arch = build_info.arch 371 arch = build_info.arch
375 mode = build_info.mode 372 mode = build_info.mode
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 if build_info.mode == 'debug': 412 if build_info.mode == 'debug':
416 target = 'dart2js_bot_debug' 413 target = 'dart2js_bot_debug'
417 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 414 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
418 '--arch=' + build_info.arch, target] 415 '--arch=' + build_info.arch, target]
419 print 'Build SDK and d8: %s' % (' '.join(args)) 416 print 'Build SDK and d8: %s' % (' '.join(args))
420 bot.RunProcess(args) 417 bot.RunProcess(args)
421 418
422 419
423 if __name__ == '__main__': 420 if __name__ == '__main__':
424 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 421 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler)
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/compiler_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698