dart-sdk/runtime/include
Daco Harkes 4b2906cdc1 [vm] Move ResolveUri to platform
This will enable the standalone embedder to resolve uris in a follow
up CL:
https://dart-review.googlesource.com/c/sdk/+/361881

The implementation was using zones for allocation, this CL switches
that to using `malloc`. The caller is responsible for freeing the
memory if resolving succeeds.

This CL removes `Dart_DefaultCanonicalizeUrl`.

We don't have a run_platform_tests, so this CL keeps the tests in
run_vm_tests.

TEST=vm/cc/ParseUri
TEST=vm/cc/ResolveUri
TEST=tests/ffi/native_assets/asset_relative_test.dart

Bug: https://github.com/dart-lang/sdk/issues/55523
Change-Id: Ifb300d8164eb50506f22ce619fad0811f74ef34c
Cq-Include-Trybots: luci.dart.try:vm-aot-asan-linux-release-x64-try,vm-aot-msan-linux-release-x64-try,vm-asan-linux-release-arm64-try,vm-asan-linux-release-x64-try,vm-msan-linux-release-arm64-try,vm-msan-linux-release-x64-try,pkg-linux-debug-try,pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-try,pkg-mac-release-arm64-try,pkg-win-release-arm64-try,pkg-win-release-try,vm-aot-linux-debug-x64-try,vm-linux-debug-x64-try,vm-reload-linux-debug-x64-try,vm-reload-rollback-linux-debug-x64-try,vm-aot-win-debug-x64-try,vm-win-debug-arm64-try,vm-mac-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368423
Reviewed-by: Martin Kustermann <kustermann@google.com>
2024-06-12 16:45:19 +00:00
..
bin [vm] Run clang-format on code base 2024-04-17 19:14:41 +00:00
internal [vm] runtime/include specify void parameters 2021-11-19 09:43:38 +00:00
analyze_snapshot_api.h Expand collection of object instances. 2023-07-03 12:29:15 +00:00
BUILD.gn Allow configuring the destination of the SDK in the build output directory 2021-06-29 18:45:29 +00:00
dart_api.h [vm] Move ResolveUri to platform 2024-06-12 16:45:19 +00:00
dart_api_dl.c [VM/Runtime] - Deprecate Dart_UpdateExternalSize and Dart_UpdateFinalizableExternalSize from the Dart C API 2023-07-20 17:06:44 +00:00
dart_api_dl.h [vm/sendports] Introduce an api that can be safely used to rebuild SendPort. 2024-05-01 17:19:16 +00:00
dart_embedder_api.h [vm] Run clang-format on code base 2024-04-17 19:14:41 +00:00
dart_native_api.h [vm] Fix Dart_CObject_Type breaking change 2023-02-20 11:59:19 +00:00
dart_tools_api.h [vm] Run clang-format on code base 2024-04-17 19:14:41 +00:00
dart_version.h [vm/sendports] Introduce an api that can be safely used to rebuild SendPort. 2024-05-01 17:19:16 +00:00