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

Unified Diff: dart/frog/tests/leg/compiler_helper.dart

Issue 10441014: Parameterize WorkItem.run. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/tests/leg/compiler_helper.dart
diff --git a/dart/frog/tests/leg/compiler_helper.dart b/dart/frog/tests/leg/compiler_helper.dart
index ca1db68aebcaec485a3c2a92ebed02ed9b3e262a..d4bf3a3ae1e63b6f62957e0f4268147ac148b29e 100644
--- a/dart/frog/tests/leg/compiler_helper.dart
+++ b/dart/frog/tests/leg/compiler_helper.dart
@@ -17,7 +17,8 @@ String compile(String code, [String entry = 'main']) {
compiler.parseScript(code);
lego.Element element = compiler.mainApp.find(buildSourceString(entry));
if (element === null) return null;
- String generated = new leg.WorkItem(element, null).run(compiler);
+ leg.WorkItem work = new leg.WorkItem(element, null);
+ String generated = work.run(compiler, compiler.enqueuer.codegen);
ahe 2012/05/24 07:24:48 You already reviewed the rest. The changes to this
return generated;
}
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698