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

Unified Diff: dart/tests/compiler/dart2js/compiler_helper.dart

Issue 10836134: Revert "Infer guaranteed types for static calls that are only called once." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: dart/tests/compiler/dart2js/compiler_helper.dart
diff --git a/dart/tests/compiler/dart2js/compiler_helper.dart b/dart/tests/compiler/dart2js/compiler_helper.dart
index 19dfca082efb20d781416a33cb87545faa146f8d..bf2fa672b65e62ac7e8c6274a9dcfa774f4ea3da 100644
--- a/dart/tests/compiler/dart2js/compiler_helper.dart
+++ b/dart/tests/compiler/dart2js/compiler_helper.dart
@@ -24,15 +24,10 @@ String compile(String code, [String entry = 'main']) {
return generated;
}
-MockCompiler compilerFor(String code, Uri uri) {
- MockCompiler compiler = new MockCompiler();
- compiler.sourceFiles[uri.toString()] = new SourceFile(uri.toString(), code);
- return compiler;
-}
-
String compileAll(String code) {
+ MockCompiler compiler = new MockCompiler();
Uri uri = new Uri.fromComponents(scheme: 'source');
- Compiler compiler = compilerFor(code, uri);
+ compiler.sourceFiles[uri.toString()] = new SourceFile(uri.toString(), code);
compiler.runCompiler(uri);
return compiler.assembledCode;
}
« no previous file with comments | « dart/lib/compiler/implementation/types/types.dart ('k') | dart/tests/compiler/dart2js/concrete_type_inference_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698