659fdae898
This should allow us to import the code in cases when we want to implement the Bazel worker loop ourselves. This opens some possibilities of extra optimizations for internal use cases. I'm leaving some of the code (e.g., `main`) in the old location, so that we do not break anything that depends on it. The only thing that I've done is to pass the input-digest map to `computeKernel` instead of using `Input` objects directly, this way we can avoid the dependency on `package:bazel_worker` from `frontend_server`. So now, if we're using the worker loop, the map will be computed by `kernel_worker.dart` (in non-worker mode, we rely on the default empty map). Bug: http://b/187910394 Change-Id: I408407ebdebc17c7898552c053a8e1c269cf2df5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201187 Commit-Queue: Michal Terepeta <michalt@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>