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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import '../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da rt'; 6 import '../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da rt';
7 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; 7 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart';
8 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'; 8 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart';
9 9
10 import "parser_helper.dart"; 10 import "parser_helper.dart";
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 abstract class Map<K, V> {} 166 abstract class Map<K, V> {}
167 class Closure {} 167 class Closure {}
168 class Null {} 168 class Null {}
169 class Type {} 169 class Type {}
170 class StackTrace {} 170 class StackTrace {}
171 class Dynamic_ {} 171 class Dynamic_ {}
172 bool identical(Object a, Object b) {}'''; 172 bool identical(Object a, Object b) {}''';
173 173
174 AnalysisResult analyze(String code, {int maxConcreteTypeSize: 1000}) { 174 AnalysisResult analyze(String code, {int maxConcreteTypeSize: 1000}) {
175 Uri uri = new Uri.fromComponents(scheme: 'source'); 175 Uri uri = new Uri(scheme: 'source');
176 MockCompiler compiler = new MockCompiler( 176 MockCompiler compiler = new MockCompiler(
177 coreSource: CORELIB, 177 coreSource: CORELIB,
178 enableConcreteTypeInference: true, 178 enableConcreteTypeInference: true,
179 maxConcreteTypeSize: maxConcreteTypeSize); 179 maxConcreteTypeSize: maxConcreteTypeSize);
180 compiler.sourceFiles[uri.toString()] = new SourceFile(uri.toString(), code); 180 compiler.sourceFiles[uri.toString()] = new SourceFile(uri.toString(), code);
181 compiler.typesTask.concreteTypesInferrer.testMode = true; 181 compiler.typesTask.concreteTypesInferrer.testMode = true;
182 compiler.runCompiler(uri); 182 compiler.runCompiler(uri);
183 return new AnalysisResult(compiler); 183 return new AnalysisResult(compiler);
184 } 184 }
185 185
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 testListWithCapacity(); 1400 testListWithCapacity();
1401 testEmptyList(); 1401 testEmptyList();
1402 testJsCall(); 1402 testJsCall();
1403 testIsCheck(); 1403 testIsCheck();
1404 testSeenClasses(); 1404 testSeenClasses();
1405 testGoodGuys(); 1405 testGoodGuys();
1406 testIntDoubleNum(); 1406 testIntDoubleNum();
1407 testConcreteTypeToTypeMask(); 1407 testConcreteTypeToTypeMask();
1408 testSelectors(); 1408 testSelectors();
1409 } 1409 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/concrete_type_inference_test.dart ('k') | tests/compiler/dart2js/dart_backend_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698