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

Unified Diff: pkg/compiler/lib/src/kernel/element_map.dart

Issue 3007743002: Add boxing for modified variables (Closed)
Patch Set: merged with master 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
« no previous file with comments | « pkg/compiler/lib/src/js_model/js_strategy.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/element_map.dart
diff --git a/pkg/compiler/lib/src/kernel/element_map.dart b/pkg/compiler/lib/src/kernel/element_map.dart
index e8c9139cd2fc823bd01bc7e3f889347cd047c1ef..97c73a0457252d52675720c9b6cca7ac73d99404 100644
--- a/pkg/compiler/lib/src/kernel/element_map.dart
+++ b/pkg/compiler/lib/src/kernel/element_map.dart
@@ -16,6 +16,7 @@ import '../js/js.dart' as js;
import '../js_backend/namer.dart';
import '../js_backend/native_data.dart';
import '../js_emitter/code_emitter_task.dart';
+import '../js_model/closure.dart' show JRecordField, KernelScopeInfo;
import '../native/native.dart' as native;
import '../types/types.dart';
import '../universe/call_structure.dart';
@@ -203,6 +204,11 @@ abstract class KernelToElementMapForBuilding implements KernelToElementMap {
// TODO(johnniwinther): Avoid this method by deriving the uri directly from
// the node.
String getDeferredUri(ir.LibraryDependency node);
+
+ /// Make a record to ensure variables that are are declared in one scope and
+ /// modified in another get their values updated correctly.
+ Map<Local, JRecordField> makeRecordContainer(
+ KernelScopeInfo info, MemberEntity member, KernelToLocalsMap localsMap);
}
// TODO(johnniwinther,efortuna): Add more when needed.
« no previous file with comments | « pkg/compiler/lib/src/js_model/js_strategy.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698