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

Unified Diff: lib/compiler/implementation/ssa/builder.dart

Issue 10827180: Move types out of the HInstructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cosmetic change (updated comment). 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: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index a66dbaf7c2a4c7ff9fa48ead04383232ebeafb22..deac57c51a927fbf4e026f15afe212156714cb2a 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -138,6 +138,7 @@ class SsaBuilderTask extends CompilerTask {
// Loop tracking information.
final Set<FunctionElement> functionsCalledInLoop;
final Map<SourceString, Selector> selectorsCalledInLoop;
+ final JavaScriptBackend backend;
Lasse Reichstein Nielsen 2012/08/08 07:44:53 Is this used?
floitsch 2012/08/08 19:18:37 Done.
String get name() => 'SSA builder';
@@ -147,9 +148,10 @@ class SsaBuilderTask extends CompilerTask {
emitter = backend.emitter,
functionsCalledInLoop = new Set<FunctionElement>(),
selectorsCalledInLoop = new Map<SourceString, Selector>(),
+ this.backend = backend,
super(backend.compiler);
- HGraph build(WorkItem work) {
+ HGraph build(JavaScriptWorkItem work) {
return measure(() {
FunctionElement element = work.element;
HInstruction.idCounter = 0;
@@ -184,7 +186,7 @@ class SsaBuilderTask extends CompilerTask {
} else {
name = "${element.name.slowToString()}";
}
- compiler.tracer.traceCompilation(name);
+ compiler.tracer.traceCompilation(name, work);
compiler.tracer.traceGraph('builder', graph);
}
return graph;

Powered by Google App Engine
This is Rietveld 408576698