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

Unified Diff: pkg/compiler/lib/src/ssa/locals_handler.dart

Issue 3007743002: Add boxing for modified variables (Closed)
Patch Set: . Created 3 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: pkg/compiler/lib/src/ssa/locals_handler.dart
diff --git a/pkg/compiler/lib/src/ssa/locals_handler.dart b/pkg/compiler/lib/src/ssa/locals_handler.dart
index 363511b1d4f915fcf257614e8481bead87a3a3cd..60aa04ea7deab717bc7426a8397bcac333d941b6 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -155,9 +155,7 @@ class LocalsHandler {
directLocals[closureInfo.context] = box;
// Make sure that accesses to the boxed locals go into the box. We also
// need to make sure that parameters are copied into the box if necessary.
- closureInfo.forEachBoxedVariable((_from, _to) {
- LocalVariableElement from = _from;
- BoxFieldElement to = _to;
+ closureInfo.forEachBoxedVariable((Local from, FieldEntity to) {
// The [from] can only be a parameter for function-scopes and not
// loop scopes.
if (from.isRegularParameter && !forGenerativeConstructorBody) {

Powered by Google App Engine
This is Rietveld 408576698