DescriptionHandle type literals correctly with deferred loading and await.
When referring to constants via a deferred prefix in an await expression
the transformation must make sure that the generated code before and after
the deferred load agree on the number of captured variables. (i.e. the number
of await-temp variables introduced by the await-transformer is the same)
This CL uses a temporary in the case of compile-time constants, because before
the deferred load, a reference lib.C is translated into a static getter which
also requires a temporary.
Fixes #28678
R=hausner@google.com
Committed: https://github.com/dart-lang/sdk/commit/67a93da99eb11ada7d8267243c6824d5c67de91c
Patch Set 1 #Patch Set 2 : formatting #Patch Set 3 : formatting #Patch Set 4 : correct fix #
Total comments: 2
Patch Set 5 : add comment #
Messages
Total messages: 10 (3 generated)
|