31d558c81c
The two existing places where IR is built are changed to use this new helper. It supports running normal JIT/AOT passes as well as a user-specified set of passes. In order to allow vm/cc tests to make assertions about AOT pipeline this CL enables the DART_PRECOMPILER define in run_vm_tests binary (similar to gen_snapshot, run_vm_tests has now JIT and AOT support) Change-Id: Ib51a024a81e0291e89d20860b8b9a2762611426c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98482 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Aart Bik <ajcbik@google.com>