Index: pkg/compiler/lib/src/js_emitter/program_builder/registry.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/registry.dart b/pkg/compiler/lib/src/js_emitter/program_builder/registry.dart |
index ab7aa52df82234de648607d47f1745c13dc3261a..2fe3e12e8eafee84b312b5c7ed165a0cc8d869a6 100644 |
--- a/pkg/compiler/lib/src/js_emitter/program_builder/registry.dart |
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/registry.dart |
@@ -113,9 +113,10 @@ class Registry { |
// Ignore for now. |
} |
- Holder registerHolder(String name) { |
- return _holdersMap.putIfAbsent( |
- name, |
- () => new Holder(name, _holdersMap.length)); |
+ Holder registerHolder(String name, {bool isStaticStateHolder: false}) { |
+ return _holdersMap.putIfAbsent(name, () { |
+ return new Holder(name, _holdersMap.length, |
+ isStaticStateHolder: isStaticStateHolder); |
+ }); |
} |
} |