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

Side by Side Diff: tests/compiler/dart2js/incremental/compile_all.dart

Issue 1803303002: Move all flags to CompilerOptions (first step to stop passing the compiler to (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Helper file that can be used to manually test the stability of incremental 5 // Helper file that can be used to manually test the stability of incremental
6 // compilation. Currently this test is not run automatically. 6 // compilation. Currently this test is not run automatically.
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CompilerImpl memoryCompiler = compilerFor(memorySourceFiles: sources); 46 CompilerImpl memoryCompiler = compilerFor(memorySourceFiles: sources);
47 FormattingDiagnosticHandler handler = memoryCompiler.handler; 47 FormattingDiagnosticHandler handler = memoryCompiler.handler;
48 handler.verbose = verbose; 48 handler.verbose = verbose;
49 var options = ['--analyze-main']; 49 var options = ['--analyze-main'];
50 if (true || verbose) options.add('--verbose'); 50 if (true || verbose) options.add('--verbose');
51 IncrementalCompiler compiler = new IncrementalCompiler( 51 IncrementalCompiler compiler = new IncrementalCompiler(
52 libraryRoot: memoryCompiler.libraryRoot, 52 libraryRoot: memoryCompiler.libraryRoot,
53 inputProvider: memoryCompiler.provider, 53 inputProvider: memoryCompiler.provider,
54 outputProvider: memoryCompiler.userOutputProvider, 54 outputProvider: memoryCompiler.userOutputProvider,
55 diagnosticHandler: memoryCompiler.handler, 55 diagnosticHandler: memoryCompiler.handler,
56 packageRoot: memoryCompiler.packageRoot, 56 packageRoot: memoryCompiler.options.packageRoot,
57 options: options); 57 options: options);
58 Future.forEach(sources.keys, (String path) { 58 Future.forEach(sources.keys, (String path) {
59 UserTag.defaultTag.makeCurrent(); 59 UserTag.defaultTag.makeCurrent();
60 if (!path.endsWith('_test.dart')) return new Future.value(null); 60 if (!path.endsWith('_test.dart')) return new Future.value(null);
61 testCount++; 61 testCount++;
62 for (String brokenTest in brokenTests) { 62 for (String brokenTest in brokenTests) {
63 if (path.endsWith(brokenTest)) { 63 if (path.endsWith(brokenTest)) {
64 print('Skipped broken test $path'); 64 print('Skipped broken test $path');
65 skipCount++; 65 skipCount++;
66 return new Future.value(null); 66 return new Future.value(null);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 "/language/setter_declaration2_negative_test.dart", 169 "/language/setter_declaration2_negative_test.dart",
170 "/language/source_self_negative_test.dart", 170 "/language/source_self_negative_test.dart",
171 "/language/syntax_test.dart", 171 "/language/syntax_test.dart",
172 "/language/type_variable_bounds2_test.dart", 172 "/language/type_variable_bounds2_test.dart",
173 "/language/type_variable_conflict2_test.dart", 173 "/language/type_variable_conflict2_test.dart",
174 "/language/type_variable_field_initializer_test.dart", 174 "/language/type_variable_field_initializer_test.dart",
175 "/language/type_variable_nested_test.dart", 175 "/language/type_variable_nested_test.dart",
176 "/language/vm/reflect_core_vm_test.dart", 176 "/language/vm/reflect_core_vm_test.dart",
177 "/language/vm/regress_14903_test.dart", 177 "/language/vm/regress_14903_test.dart",
178 ]); 178 ]);
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/field_type_simple_inferer_test.dart ('k') | tests/compiler/dart2js/library_env_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698