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

Unified Diff: pkg/compiler/lib/src/js_emitter/program_builder/registry.dart

Issue 1232463007: dart2js: Rename "current isolate" to "static state (holder)". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments. Created 5 years, 5 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/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);
+ });
}
}
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698