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

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

Issue 1314973003: Add support for analyzing individual URIs. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment Created 5 years, 3 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 25 matching lines...) Expand all
36 } 36 }
37 sw.stop(); 37 sw.stop();
38 print(sw.elapsedMilliseconds); 38 print(sw.elapsedMilliseconds);
39 compileTests(sources); 39 compileTests(sources);
40 } 40 }
41 41
42 void compileTests(Map<String, String> sources) { 42 void compileTests(Map<String, String> sources) {
43 int testCount = 0; 43 int testCount = 0;
44 int skipCount = 0; 44 int skipCount = 0;
45 Set<String> crashes = new Set<String>(); 45 Set<String> crashes = new Set<String>();
46 Compiler memoryCompiler = compilerFor(sources); 46 Compiler 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.packageRoot,
(...skipping 112 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

Powered by Google App Engine
This is Rietveld 408576698