f0f732b1a6
This is the same metadata system that will support async callbacks. The main thing this does is take the trampolines that used to be JIT only, and use them in AOT too. This is partly a safety thing (there's some extra checks that used to be skipped on AOT), but mostly just so that the metadata system is unified between the sync and async callbacks. More details about the design: https://docs.google.com/document/d/1QDjyY_6wOTOgURwpeYMKU9qEz0gKxx2MUrdruC6Kp6c/edit?usp=sharing I split this off the async CL. Some of the comments refer to async stuff that doesn't exist yet, but it's coming immediately after this so I didn't update them. Change-Id: Icd5e86934ee9ae34c2c0e2ed2bbd1b928a7184ac TEST=ffi_callback_metadata_test.cc and CI Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/302903 Reviewed-by: Ryan Macnak <rmacnak@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Liam Appelbe <liama@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.