commit | dfd6f4469964b199888d5ab3d2c6c7093e624072 | [log] [tgz] |
---|---|---|
author | Alexander Markov <alexmarkov@google.com> | Tue Jan 18 21:48:56 2022 +0000 |
committer | dart-luci-ci-builder <dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com> | Tue Jan 18 13:49:50 2022 -0800 |
tree | 56b1e95a822e7e4b237e7c656f14d56ac34e543a | |
parent | 615efcbf1aa06fd2ad8da3aabb1b70cf26476200 [diff] |
[vm] Support arbitrary superclasses for enums With enhanced enums language feature enum classes can have a mixin, so its superclass is an arbitrary class and not necessarily _Enum. This change removes lookups of 'index' and '_name' fields in the superclass of an enum class. They are now looked up once in _Enum class and saved in the object store. TEST=co19/LanguageFeatures/Enhanced-Enum/semantics_A01_t01 Issue: https://github.com/dart-lang/sdk/issues/47861 Change-Id: I2b93d389ab92e0274641e0f1bd65471e6407f3f9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/228220 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> https://dart.googlesource.com/sdk/+/5bbf141e9f679ff56a7455ac4620ed89298239d8