d41f9a738e
There was a missing check for whether a backwards call is out-of-range. The CL also removes leftover code related to [max_offset_into_target_] - which wasn't used. The intended use is already over approximated via [max_instructions_size_]. The CL makes the pc-relative call/tail-call distances pluggable so a newly added test can modify them for testing in-range/out-of-range forward/backwards calls. TEST=vm/cc/CodeRelocator_* Fixes https://github.com/flutter/flutter/issues/80043 Change-Id: Id4bdb7176108b61235dafb7ffc125da4a2bf07fa Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195682 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>