0310e41f2c
Protect VM compiler code from crashing when incorrect type arguments are passed to FFI _asFunctionInternal. Also, improve front-end FFI checks to reject Function as a Dart type corresponding to a NativeFunction<...> (it should be an actual function type). TEST=tests/ffi/vmspecific_static_checks_test.dart Fixes https://github.com/dart-lang/sdk/issues/52730 Change-Id: I02c012bb76d5c94f551da2c725a476b68c0f9db4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339109 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>
This package hosts VM specific Dart code and helper scripts.