[dart2js][ddc] Make rti universe field names const

These names are expected to always be the same, making
them const allows DDC to recognize that more easily.

Change-Id: I80a991e1cf50b2990fd27afb4ff3793a6135cf65
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/328803
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
This commit is contained in:
Nicholas Shahan 2023-10-09 21:12:48 +00:00 committed by Commit Queue
parent d0efd60595
commit 904972569d
2 changed files with 10 additions and 10 deletions

View file

@ -114,9 +114,9 @@ enum JsBuiltin {
/// Names of fields of the Rti Universe object.
class RtiUniverseFieldNames {
static String evalCache = 'eC';
static String typeRules = 'tR';
static String erasedTypes = 'eT';
static String typeParameterVariances = 'tPV';
static String sharedEmptyArray = 'sEA';
static const String evalCache = 'eC';
static const String typeRules = 'tR';
static const String erasedTypes = 'eT';
static const String typeParameterVariances = 'tPV';
static const String sharedEmptyArray = 'sEA';
}

View file

@ -114,9 +114,9 @@ enum JsBuiltin {
/// Names of fields of the Rti Universe object.
class RtiUniverseFieldNames {
static String evalCache = 'eC';
static String typeRules = 'tR';
static String erasedTypes = 'eT';
static String typeParameterVariances = 'tPV';
static String sharedEmptyArray = 'sEA';
static const String evalCache = 'eC';
static const String typeRules = 'tR';
static const String erasedTypes = 'eT';
static const String typeParameterVariances = 'tPV';
static const String sharedEmptyArray = 'sEA';
}