dart-sdk/runtime/bin
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
..
ffi_test Reland "[vm/ffi] Throw on returning Error in Handle" 2022-10-03 12:25:08 +00:00
ffi_unit_test [vm/ffi] Add Fuchsia ABI unit tests 2022-08-16 12:17:26 +00:00
abstract_socket_test.cc
address_sanitizer.cc
analyze_snapshot.cc Updates to analyze_snapshot tool 2022-08-23 12:18:00 +00:00
BUILD.gn [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
builtin.cc
builtin.h
builtin_gen_snapshot.cc
builtin_impl_sources.gni
builtin_in.cc
builtin_natives.cc
builtin_sources.gni
cli.cc
cli_impl_sources.gni
cli_sources.gni
console.h
console_posix.cc
console_win.cc
crashpad.cc
crashpad.h
crypto.cc
crypto.h
crypto_android.cc
crypto_fuchsia.cc
crypto_linux.cc
crypto_macos.cc
crypto_test.cc
crypto_win.cc
dart_embedder_api_impl.cc
dart_io_api_impl.cc
dartdev_isolate.cc [ CLI ] Force isolate running dart2js to use --no-sound-null-safety 2022-10-04 16:59:57 +00:00
dartdev_isolate.h [ CLI ] Force isolate running dart2js to use --no-sound-null-safety 2022-10-04 16:59:57 +00:00
dartutils.cc [VM/Runtime] - Use 'const' qualifier for CObject typed data 2022-09-13 22:38:22 +00:00
dartutils.h [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
dfe.cc
dfe.h
directory.cc
directory.h
directory_android.cc
directory_fuchsia.cc
directory_linux.cc
directory_macos.cc
directory_test.cc
directory_win.cc
elf_loader.cc
elf_loader.h
entrypoints_verification_test.cc
error_exit.cc
error_exit.h
eventhandler.cc
eventhandler.h
eventhandler_android.cc
eventhandler_android.h
eventhandler_fuchsia.cc Do not try to handle non ZX_PKT_TYPE_SIGNAL_ONE incorrectly 2022-10-19 19:03:28 +00:00
eventhandler_fuchsia.h
eventhandler_linux.cc
eventhandler_linux.h
eventhandler_macos.cc
eventhandler_macos.h
eventhandler_test.cc
eventhandler_win.cc
eventhandler_win.h
exe_utils.cc
exe_utils.h
fdutils.h
fdutils_android.cc
fdutils_fuchsia.cc
fdutils_linux.cc
fdutils_macos.cc
file.cc [VM/Runtime] - Use 'const' qualifier for CObject typed data 2022-09-13 22:38:22 +00:00
file.h Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets. 2022-09-13 21:16:28 +00:00
file_android.cc Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets. 2022-09-13 21:16:28 +00:00
file_fuchsia.cc Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets. 2022-09-13 21:16:28 +00:00
file_linux.cc Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets. 2022-09-13 21:16:28 +00:00
file_macos.cc Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets. 2022-09-13 21:16:28 +00:00
file_support.cc
file_system_watcher.cc
file_system_watcher.h
file_system_watcher_android.cc
file_system_watcher_fuchsia.cc
file_system_watcher_linux.cc
file_system_watcher_macos.cc
file_system_watcher_win.cc
file_test.cc
file_win.cc [gardening] Fix gen_snapshot crash on msvc. 2022-09-21 18:16:56 +00:00
file_win.h
filter.cc
filter.h
gen_snapshot.cc
gzip.cc
gzip.h
hashmap_test.cc
ifaddrs-android.cc
ifaddrs-android.h
io_buffer.cc
io_buffer.h
io_impl_sources.gni Add support for sending file descriptors over unix domain sockets on macOS 2022-09-01 20:36:12 +00:00
io_natives.cc Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets. 2022-09-13 21:16:28 +00:00
io_natives.h
io_service.cc
io_service.h Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets. 2022-09-13 21:16:28 +00:00
io_service_no_ssl.cc
io_service_no_ssl.h
io_sources.gni
isolate_data.cc
isolate_data.h
loader.cc
loader.h
lockers.h
main.cc [ CLI ] Force isolate running dart2js to use --no-sound-null-safety 2022-10-04 16:59:57 +00:00
main_options.cc [ CLI ] Fix dart run --enable-experiment 2022-10-18 13:42:32 +00:00
main_options.h
namespace.cc
namespace.h
namespace_android.cc
namespace_fuchsia.cc
namespace_fuchsia.h
namespace_linux.cc
namespace_macos.cc
namespace_win.cc
observatory_assets_empty.cc
options.cc
options.h
platform.cc
platform.h [vm] Add OS and architecture to non-symbolic stack traces. 2022-08-05 11:53:37 +00:00
platform_android.cc [vm] Add OS and architecture to non-symbolic stack traces. 2022-08-05 11:53:37 +00:00
platform_fuchsia.cc [vm] Add OS and architecture to non-symbolic stack traces. 2022-08-05 11:53:37 +00:00
platform_linux.cc [vm] Add OS and architecture to non-symbolic stack traces. 2022-08-05 11:53:37 +00:00
platform_macos.cc [vm] Add OS and architecture to non-symbolic stack traces. 2022-08-05 11:53:37 +00:00
platform_macos.h
platform_macos_cocoa.h
platform_macos_cocoa.mm
platform_win.cc [vm] Add OS and architecture to non-symbolic stack traces. 2022-08-05 11:53:37 +00:00
priority_heap_test.cc
process.cc Generate an error when starting Processes on iOS 2022-08-29 17:14:36 +00:00
process.h
process_android.cc
process_fuchsia.cc
process_linux.cc
process_macos.cc
process_test.cc
process_win.cc
reference_counting.h
root_certificates_unsupported.cc
run_vm_tests.cc
secure_socket_filter.cc
secure_socket_filter.h
secure_socket_unsupported.cc
secure_socket_utils.cc
secure_socket_utils.h
secure_socket_utils_test.cc
security_context.cc
security_context.h
security_context_android.cc
security_context_fuchsia.cc
security_context_linux.cc
security_context_macos.cc
security_context_win.cc
snapshot_empty.cc
snapshot_in.cc
snapshot_utils.cc [pkg/dart2native] Avoid overwriting section contents in MachO files. 2022-09-29 08:32:47 +00:00
snapshot_utils.h
snapshot_utils_test.cc [vm/test] Remove checked-in binaries from MachO test. 2022-08-17 16:18:35 +00:00
socket.cc
socket.h
socket_android.cc
socket_base.cc [VM/Runtime] - Use 'const' qualifier for CObject typed data 2022-09-13 22:38:22 +00:00
socket_base.h
socket_base_android.cc
socket_base_android.h
socket_base_fuchsia.cc
socket_base_fuchsia.h
socket_base_linux.cc Add support for sending file descriptors over unix domain sockets on macOS 2022-09-01 20:36:12 +00:00
socket_base_linux.h
socket_base_macos.cc Add support for sending file descriptors over unix domain sockets on macOS 2022-09-01 20:36:12 +00:00
socket_base_macos.h
socket_base_posix.cc Add support for sending file descriptors over unix domain sockets on macOS 2022-09-01 20:36:12 +00:00
socket_base_win.cc
socket_base_win.h
socket_fuchsia.cc
socket_linux.cc
socket_macos.cc
socket_win.cc
stdio.cc
stdio.h
stdio_android.cc
stdio_fuchsia.cc
stdio_linux.cc
stdio_macos.cc
stdio_win.cc
sync_socket.cc
sync_socket.h
sync_socket_android.cc
sync_socket_fuchsia.cc
sync_socket_linux.cc
sync_socket_macos.cc
sync_socket_win.cc
test_utils.cc
test_utils.h
thread.h
thread_absl.cc
thread_absl.h
thread_android.cc
thread_android.h
thread_fuchsia.cc
thread_fuchsia.h
thread_linux.cc
thread_linux.h
thread_macos.cc
thread_macos.h
thread_win.cc
thread_win.h
typed_data_utils.cc
typed_data_utils.h
utils.cc
utils.h
utils_android.cc
utils_fuchsia.cc
utils_linux.cc
utils_macos.cc
utils_win.cc
utils_win.h
virtual_memory.h
virtual_memory_fuchsia.cc
virtual_memory_posix.cc
virtual_memory_win.cc
vmservice_impl.cc
vmservice_impl.h