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

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

Issue 12226032: Fix size problem spotted by sra@, where iae and ioore were always put in the codegen work list. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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: tests/compiler/dart2js/compiler_helper.dart
===================================================================
--- tests/compiler/dart2js/compiler_helper.dart (revision 18163)
+++ tests/compiler/dart2js/compiler_helper.dart (working copy)
@@ -46,15 +46,18 @@
return compiler.enqueuer.codegen.assembleCode(element);
}
-MockCompiler compilerFor(String code, Uri uri, {bool analyzeAll: false}) {
- MockCompiler compiler = new MockCompiler(analyzeAll: analyzeAll);
+MockCompiler compilerFor(String code, Uri uri,
+ {bool analyzeAll: false,
+ String coreSource: DEFAULT_CORELIB}) {
+ MockCompiler compiler = new MockCompiler(
+ analyzeAll: analyzeAll, coreSource: coreSource);
compiler.sourceFiles[uri.toString()] = new SourceFile(uri.toString(), code);
return compiler;
}
-String compileAll(String code) {
+String compileAll(String code, {String coreSource: DEFAULT_CORELIB}) {
Uri uri = new Uri.fromComponents(scheme: 'source');
- MockCompiler compiler = compilerFor(code, uri);
+ MockCompiler compiler = compilerFor(code, uri, coreSource: coreSource);
compiler.runCompiler(uri);
Expect.isFalse(compiler.compilationFailed,
'Unexpected compilation error');
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_backend/backend.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698