39f049d643
This CL introduces compileToKernel() function in package:vm/kernel_front_end as the replacement for kernelForProgram() from package:front_end/kernel_generator. The new function will be used to customize kernel Programs for VM need. For example, it will perform additional AOT-specific global transformations. In future, compileToKernel() will be used from Flutter and precompiler2. Also, this CL cleans up Target.strongModeSdk as it is no longer used. Issue: https://github.com/dart-lang/sdk/issues/30480 Change-Id: Ib9c2b5d0af955475292df8e456073a5f0e6a64be Reviewed-on: https://dart-review.googlesource.com/25080 Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>