f20e6d3fa0
Instead of peeking into constant table and then delaying scanning of constants by putting it in an array, which is walked again in some future point, we simply read the annotation constants entirely without requiring const evaluation. This works fine for pragma annotations the VM is interested in - as there's no user-defined classes involved. -> Loading kernel will no longer require constant evaluation to work. Motivation for this is that [0] wants to make this delayed annotation scanning logic even more complicated, so I prefer to remove it entirely. [0] https://dart-review.googlesource.com/c/sdk/+/289027 TEST=ci Change-Id: Ib859480107b6cf119d66035e66ec161ed11ddb32 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290502 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>