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

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

Issue 10398044: Reverting 7667 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/closure.dart
===================================================================
--- lib/compiler/implementation/ssa/closure.dart (revision 7672)
+++ lib/compiler/implementation/ssa/closure.dart (working copy)
@@ -97,7 +97,7 @@
}
class ClosureTranslator extends AbstractVisitor {
- final SsaBuilder builder;
+ final Compiler compiler;
final TreeElements elements;
int closureFieldCounter = 0;
bool inTryCatchOrFinally = false;
@@ -119,14 +119,11 @@
bool insideClosure = false;
- Compiler get compiler() => builder.compiler;
-
- ClosureTranslator(SsaBuilder builder)
- : this.builder = builder,
- this.elements = builder.elements,
- capturedVariableMapping = new Map<Element, Element>(),
+ ClosureTranslator(Compiler compiler, this.elements)
+ : capturedVariableMapping = new Map<Element, Element>(),
closures = <FunctionExpression>[],
- this.closureDataCache = builder.builder.closureDataCache;
+ this.compiler = compiler,
+ this.closureDataCache = compiler.builder.closureDataCache;
ClosureData translate(Node node) {
// Closures have already been analyzed when visiting the surrounding
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698