fe37377762
When constants are lazily created in VM from the constants table present in the Kernel file, we have to ensure to preserve the constants table across snapshot serialization/deserialization. Also there is no need to use zone handles in the constant evaluator for local handles. Also removes some commented code and adds an assertion that we never try to partially instantiate a closure with non-null function type arguments. Issue https://github.com/dart-lang/sdk/issues/37357 Change-Id: I49588fd18d981b7aa07c61e845cd2e2161b122bf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107283 Commit-Queue: Martin Kustermann <kustermann@google.com> Auto-Submit: Martin Kustermann <kustermann@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>