Chromium Code Reviews| 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; |