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

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

Issue 10827180: Move types out of the HInstructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « lib/compiler/implementation/ssa/types_propagation.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/compiler_helper.dart
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart
index 2eb86407dc6903d9c31660a301b9df37ee114db8..2459b878a77dfdefcddcbd071c7d0f99561db141 100644
--- a/tests/compiler/dart2js/compiler_helper.dart
+++ b/tests/compiler/dart2js/compiler_helper.dart
@@ -7,6 +7,7 @@
#import("dart:uri");
#import("../../../lib/compiler/implementation/leg.dart", prefix: "leg");
+#import("../../../lib/compiler/implementation/js_backend/js_backend.dart", prefix: "js");
#import("../../../lib/compiler/implementation/elements/elements.dart", prefix: "lego");
#import('../../../lib/compiler/implementation/source_file.dart');
#import("../../../lib/compiler/implementation/ssa/ssa.dart", prefix: "ssa");
@@ -19,7 +20,8 @@ String compile(String code, [String entry = 'main']) {
lego.Element element = compiler.mainApp.find(buildSourceString(entry));
if (element === null) return null;
compiler.processQueue(compiler.enqueuer.resolution, element);
- leg.WorkItem work = new leg.WorkItem(element, null);
+ var context = new js.JavaScriptItemCompilationContext();
+ leg.WorkItem work = new leg.WorkItem(element, null, context);
work.run(compiler, compiler.enqueuer.codegen);
return compiler.enqueuer.codegen.lookupCode(element);
}
« no previous file with comments | « lib/compiler/implementation/ssa/types_propagation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698