dart-sdk/runtime/lib
Daco Harkes f524ec74ce [vm/ffi] FfiNative process lookup
This CL makes `FfiNative`s use `DynamicLibrary.process()` lookup if
resolving with the resolver set by `Dart_SetFfiNativeResolver` fails.

Also moves the implementation over from ffi.cc to
ffi_dynamic_library.cc so the implementation can be shared with
`DynamicLibrary.process()`.

Moves the implementation behind non-simulator and non-precompiler.
However, the implementation is tested in vm/cc tests which are in
precompiler mode. So enables the implementation if TESTED is defined.

This CL massages the build files so that TESTED is properly
defined when compiling the runtime for the vm/cc tests, and links
the ole32 symbols on windows for vm/cc tests.

(And some unrelated small cleanup changes here and there.)

TEST=tests/ffi/native_assets/process_test.dart

Change-Id: I25395d381db1d9b4b7a5759171a798a1140a6140
Cq-Include-Trybots: luci.dart.try:vm-kernel-win-debug-x64c-try,vm-kernel-win-debug-x64-try,vm-kernel-nnbd-win-debug-x64-try,vm-kernel-precomp-win-debug-x64c-try,dart-sdk-win-try,vm-kernel-win-release-x64-try,vm-kernel-win-release-ia32-try,vm-kernel-precomp-win-product-x64-try,vm-kernel-reload-linux-debug-x64-try,vm-kernel-reload-rollback-linux-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264982
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2022-10-25 10:57:07 +00:00
..
array.cc [vm] Make naming more consistent when converting between handles, tagged and untagged pointers. 2021-01-15 23:32:02 +00:00
async.cc [vm] Fix soundness issue when awaiting a user-defined Future 2022-06-30 22:53:24 +00:00
async_sources.gni
bool.cc [vm] Make naming more consistent when converting between handles, tagged and untagged pointers. 2021-01-15 23:32:02 +00:00
convert_sources.gni
core_sources.gni [vm] Remove dead runtime entries for WeakProperty 2022-01-18 19:15:25 +00:00
date.cc [vm] Remove dead _localTimeZoneAdjustmentInSeconds. 2022-07-19 17:29:04 +00:00
developer.cc [vm] Make naming more consistent when converting between handles, tagged and untagged pointers. 2021-01-15 23:32:02 +00:00
developer_sources.gni
double.cc [vm] Better implementation of hashCode function. 2022-10-20 20:31:20 +00:00
errors.cc [vm] Remove some dead error entry points. 2022-02-03 17:55:16 +00:00
ffi.cc [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
ffi_dynamic_library.cc [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
ffi_sources.gni
function.cc [vm] Fix equality of closures instantiated from the same closure 2021-10-06 00:24:02 +00:00
growable_array.cc [vm] Make naming more consistent when converting between handles, tagged and untagged pointers. 2021-01-15 23:32:02 +00:00
identical.cc [vm] Make naming more consistent when converting between handles, tagged and untagged pointers. 2021-01-15 23:32:02 +00:00
integers.cc [vm] Better implementation of hashCode function. 2022-10-20 20:31:20 +00:00
integers.h [vm] Better implementation of hashCode function. 2022-10-20 20:31:20 +00:00
invocation_mirror.h
isolate.cc [vm] Fill in ArgumentValue.invalidObject when objects are rejected in isolate messages. 2022-10-24 17:49:29 +00:00
isolate_sources.gni
libgen_in.cc
math.cc [vm] Cleanup workarounds for removed flag --throw_on_javascript_int_overflow. 2022-02-03 21:10:46 +00:00
math_sources.gni
mirrors.cc [vm] Remove overlap between Function and FunctionType. 2021-07-02 14:26:04 +00:00
mirrors.h
mirrors_sources.gni
object.cc [vm] runtimeType for record instances and record type equality 2022-09-19 22:05:04 +00:00
profiler.cc [ VM / Service ] Add UserTag support to C-API and send UserTagChanged 2021-06-23 00:58:47 +00:00
profiler_sources.gni
regexp.cc [vm] Switch most Instances whose layout is determined in C++ to compressed pointers. 2021-04-05 17:43:16 +00:00
simd128.cc [vm/sim/simd] Fix vmin/vmax implementation on simulator. 2022-05-11 16:59:24 +00:00
stacktrace.cc [vm] Cleanup --lazy-async-stacks VM option 2022-06-10 13:41:24 +00:00
stacktrace.h Reland "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional" 2020-10-29 02:52:03 +00:00
stopwatch.cc
string.cc [vm] Alternate fix for mismatch between native and intrinsic versions of writeIntoOneByteString. 2022-01-21 19:32:40 +00:00
timeline.cc [vm] Don't pass and copy unused category string when recording timeline events. 2022-09-08 22:02:46 +00:00
typed_data.cc [vm] Recognize unmodifiable typed data views. 2022-08-11 18:10:48 +00:00
typed_data_sources.gni
uri.cc [vm] Reland: Prefix HOST_OS_* and TARGET_OS_* with DART_ 2021-07-02 19:06:45 +00:00
vmservice.cc [vm] Prevent Dart_NewSendPort from bypassing the arbitrary object checks. 2022-08-19 18:10:15 +00:00
vmservice_sources.gni