ad596359a6
Before this CL the FFI transformation was always run (for target VM), so if for instance running dart2js (from source), e.g. like `out/ReleaseX64/dart -DDFE_VERBOSE=true pkg/compiler/bin/dart2js.dart --help` one could see how it spends something like 120-140 ms, which is something along the lines of 2.5% of the entire request processing (i.e. compile and serialization). This CL first checks if dart:ffi is imported at all. If it's not the transformation is skipped. When compiling dart2js (where, at least currently, dart:ffi is not used) this skips the transformation, thus saving the 120-140 ms (or ~2.5%). All measurements on my machine. Your mileage may vary. TEST=Existing tests. Change-Id: Ia5d3d7b989f549ca5da257660c204e8c59f15d4b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185543 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>