DescriptionVM: Restore old implementation of ClassID.cid* fields.
When we were implementing bootstraping from Kernel in https://github.com/dart-lang/sdk/commit/23fd1a184b393825f29444243780f3593ce0b3c1 we switched ClassID.cid* fields to become 'static final' lazily initialized fields instead of constants as they were before. This was mainly done to allow dartk compile patched_sdk - because these fields were previously injected in runtime and never existed in the text form.
However this regressed code quality for app-jit and app-aot snapshots because 'static final' fields are reset by snapshotting so resulting code contains InitStaticField and LoadStaticField instructions.
BUG=
R=kustermann@google.com
Committed: https://github.com/dart-lang/sdk/commit/364b8575de8718940a0afa16549329aab6ea9674
Patch Set 1 #Patch Set 2 : Done #
Total comments: 2
Patch Set 3 : Done #
Messages
Total messages: 8 (3 generated)
|