1774314a04
Previously, Internal_randomInstructionsOffsetInsideAllocateObjectStub assumed the entry point is at the start of the instructions payload when choosing a random offset into the instructions payload. However, most of our architectures have non-zero entry point offsets. Instead, replace it with two methods, one that returns the start (inclusive) and one that returns the end (exclusive) of the AllocateObject stub instructions payload and have the test choose points inside and outside of that range to test. TEST=vm/dart/use_dwarf_stack_traces_flag_test Fixes: https://github.com/dart-lang/sdk/issues/50286 Cq-Include-Trybots: luci.dart.try:vm-aot-dwarf-linux-product-x64-try,vm-aot-linux-release-x64-try,vm-aot-linux-debug-x64-try,vm-aot-mac-release-arm64-try,vm-aot-mac-product-arm64-try Change-Id: Ia8965c72fbc6f6d2c178778a32f8083923a8b243 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363080 Reviewed-by: Alexander Markov <alexmarkov@google.com> Auto-Submit: Tess Strickland <sstrickl@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>