6cf73fc7d9
It is possible for 2 slots which correspond to different captured variables to have the same offset, flags and name. So Slot::Equals should also take the rest of the information into account (static type) in order to prevent incorrect canonicalization of Slot objects. TEST=runtime/tests/vm/dart/regress_45631_test.dart Fixes https://github.com/dart-lang/sdk/issues/45631 Change-Id: Ib64dc5b8a83f64efd06f4139949c637d7c6dd3a8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195423 Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>