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

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

Issue 2995113002: Share locals between members (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 56843d2167c522e79d11124dea7147434dca071e..d9a5bd84410193e53b5cbffc4f39c539878ee636 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -422,7 +422,8 @@ class LocalsHandler {
HRef ref = value;
value = ref.value;
}
- assert(!isStoredInClosureField(local));
+ assert(!isStoredInClosureField(local),
+ "Local $local is stored in a closure field.");
if (isAccessedDirectly(local)) {
directLocals[local] = value;
} else if (isBoxed(local)) {

Powered by Google App Engine
This is Rietveld 408576698