3c99ae9b68
Thread::OffsetFromThread from runtime_api.cc assumed that all fields between leaf and non-leaf runtime entries in Thread have word size, so the delta between runtime entries can be translated from host to target by multiplying by the ratio between target and host word size. Since leaf and non-leaf runtime entries are not co-located in Thread, this assumption is incorrect. It is now fixed by using separate bases when calculating offsets of leaf and non-leaf runtime entries. Also, add FatalError runtime entry which is useful for bootstrapping of the new compiler. TEST=ci Issue: https://github.com/dart-lang/sdk/issues/61635 Change-Id: Iea4762b21285aa6423876b34328c863227ee1434 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/467900 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Slava Egorov <vegorov@google.com>
This package hosts compiler targeting native platforms.
Status: experimental
NOTE: This package is currently experimental and not published or included in the SDK.
Do not take dependency on this package unless you are prepared for breaking changes and possibly removal of this code at any point in time.