4e8d517f40
Instead of keeping offsets of bytecode declarations in a map, offset is now stored in a field of a base class for all declarations. This saves certain number of map lookups while serializing bytecode. Also, calls to a rather expensive Map.putIfAbsent are removed. Change-Id: I036fbb0e1d8afc6e402709a0a1eafb0e50a2c25a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122170 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>