[vm] Fix a crash in RecordCoverageInstr generated by cross-compile mode
[vm] Fix a crash in RecordCoverageInstr generated by cross-compile mode

Closes https://github.com/dart-lang/sdk/pull/50503

Tested: manually
GitOrigin-RevId: af83a95d6ba2b078d0d10addb3564cef692725e2
Change-Id: I0d72b1763a0b8d4f47a6e102959c93c42c5e38fa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/270562
Reviewed-by: Daco Harkes <930cbae0ca77f1954c53e32620d89cfcca318f00@google.com>
Reviewed-by: Slava Egorov <72c81f38df725d8f1832acb9b5bb99563fc2f1b9@google.com>
Commit-Queue: Slava Egorov <72c81f38df725d8f1832acb9b5bb99563fc2f1b9@google.com>

dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk