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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart

Issue 1129693005: MutableVariable no longer has a host Element. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update SExpressionUnstringifier Created 5 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 | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
index d804f448911c40d868fd12137f4d539873529d52..d666dc18650b5483773a41376c19240d011ae3bc 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
@@ -491,15 +491,8 @@ abstract class IrBuilder {
}
/// Creates a [ir.MutableVariable] for the given local.
- void makeMutableVariable(Local local, [ClosureClassMap closureMap]) {
- ExecutableElement owner;
- if (closureMap == null || closureMap.closureClassElement == null) {
- owner = local.executableContext;
- } else {
- assert(local.executableContext == closureMap.closureElement);
- owner = closureMap.callElement;
- }
- mutableVariables[local] = new ir.MutableVariable(owner, local);
+ void makeMutableVariable(Local local) {
+ mutableVariables[local] = new ir.MutableVariable(local);
}
/// Remove an [ir.MutableVariable] for a local.
@@ -1765,7 +1758,7 @@ abstract class IrBuilder {
for (LocalVariableElement variable in tryStatementInfo.boxedOnEntry) {
assert(!tryCatchBuilder.isInMutableVariable(variable));
ir.Primitive value = tryCatchBuilder.buildLocalVariableGet(variable);
- tryCatchBuilder.makeMutableVariable(variable, closureClassMap);
+ tryCatchBuilder.makeMutableVariable(variable);
tryCatchBuilder.declareLocalVariable(variable, initialValue: value);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698