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

Unified Diff: pkg/compiler/lib/src/common/names.dart

Issue 1457733002: dart2js: Recanonicalize selectors in static fields between runs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/names.dart
diff --git a/pkg/compiler/lib/src/common/names.dart b/pkg/compiler/lib/src/common/names.dart
index fa1812ced1dfde40040c03606acad5628de0be05..657cc6fbe23438752d32f9d8e8a6f69d59949d9f 100644
--- a/pkg/compiler/lib/src/common/names.dart
+++ b/pkg/compiler/lib/src/common/names.dart
@@ -108,6 +108,14 @@ class Selectors {
static final Selector equals = new Selector.binaryOperator('==');
static final Selector length = new Selector.getter(Names.length);
+
+ /// List of all the selectors held in static fields.
+ ///
+ /// These objects are shared between different runs in batch-mode and must
+ /// thus remain in the [Selector.canonicalizedValues] map.
+ static final List<Selector> ALL = <Selector>[
+ cancel, current, iterator, moveNext, noSuchMethod_, toString_,
+ hashCode_, compareTo, equals, length];
}
/// [Uri]s commonly used.
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698