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

Side by Side Diff: tests/compiler/dart2js/exit_code_test.dart

Issue 226953003: Revert "Compute frontend/backend specific constants." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Test the exit code of dart2js in case of exceptions, fatal errors, errors, 5 // Test the exit code of dart2js in case of exceptions, fatal errors, errors,
6 // warnings, etc. 6 // warnings, etc.
7 7
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:io' show Platform; 10 import 'dart:io' show Platform;
(...skipping 21 matching lines...) Expand all
32 Uri libraryRoot, 32 Uri libraryRoot,
33 Uri packageRoot, 33 Uri packageRoot,
34 List<String> options, 34 List<String> options,
35 Map<String, dynamic> environment, 35 Map<String, dynamic> environment,
36 String this.testMarker, 36 String this.testMarker,
37 String this.testType, 37 String this.testType,
38 Function this.onTest) 38 Function this.onTest)
39 : super(inputProvider, outputProvider, handler, libraryRoot, 39 : super(inputProvider, outputProvider, handler, libraryRoot,
40 packageRoot, options, environment) { 40 packageRoot, options, environment) {
41 scanner = new TestScanner(this); 41 scanner = new TestScanner(this);
42 resolver = new TestResolver(this, backend.constantCompilerTask); 42 resolver = new TestResolver(this);
43 test('Compiler'); 43 test('Compiler');
44 } 44 }
45 45
46 Future<bool> run(Uri uri) { 46 Future<bool> run(Uri uri) {
47 test('Compiler.run'); 47 test('Compiler.run');
48 return super.run(uri); 48 return super.run(uri);
49 } 49 }
50 50
51 Future scanBuiltinLibraries() { 51 Future scanBuiltinLibraries() {
52 test('Compiler.scanBuiltinLibraries'); 52 test('Compiler.scanBuiltinLibraries');
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 TestCompiler get compiler => super.compiler; 123 TestCompiler get compiler => super.compiler;
124 124
125 void scanElements(CompilationUnitElement compilationUnit) { 125 void scanElements(CompilationUnitElement compilationUnit) {
126 compiler.test('ScannerTask.scanElements'); 126 compiler.test('ScannerTask.scanElements');
127 super.scanElements(compilationUnit); 127 super.scanElements(compilationUnit);
128 } 128 }
129 } 129 }
130 130
131 class TestResolver extends ResolverTask { 131 class TestResolver extends ResolverTask {
132 TestResolver(TestCompiler compiler, ConstantCompiler constantCompiler) 132 TestResolver(TestCompiler compiler) : super(compiler);
133 : super(compiler, constantCompiler);
134 133
135 TestCompiler get compiler => super.compiler; 134 TestCompiler get compiler => super.compiler;
136 135
137 void computeClassMembers(ClassElement element) { 136 void computeClassMembers(ClassElement element) {
138 compiler.test('ResolverTask.computeClassMembers'); 137 compiler.test('ResolverTask.computeClassMembers');
139 super.computeClassMembers(element); 138 super.computeClassMembers(element);
140 } 139 }
141 } 140 }
142 141
143 int checkedResults = 0; 142 int checkedResults = 0;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 int countResults(Map runType) { 263 int countResults(Map runType) {
265 return runType.length * 264 return runType.length *
266 tests.values.where((r) => r == runType).length; 265 tests.values.where((r) => r == runType).length;
267 } 266 }
268 267
269 Expect.equals(countResults(beforeRun) + countResults(duringRun), 268 Expect.equals(countResults(beforeRun) + countResults(duringRun),
270 checkedResults); 269 checkedResults);
271 asyncEnd(); 270 asyncEnd();
272 }); 271 });
273 } 272 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/codegen.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698