dart-sdk/runtime/platform
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
..
address_sanitizer.h [vm] Fix using GCC with the sanitizers. 2024-02-21 20:15:15 +00:00
allocation.cc [vm] Clean up ClassTable 2022-09-10 15:12:35 +00:00
allocation.h [vm] Run clang-format on code base 2024-04-17 19:14:41 +00:00
assert.cc [vm] Remove MSAN_UNPOISONs around print and sort functions. 2024-05-16 16:33:52 +00:00
assert.h Reland "[vm] Migrate FFI callbacks to the new metadata system." 2023-06-06 02:07:58 +00:00
atomic.h [vm, gc] Incremental compaction, take 3. 2024-05-30 21:01:39 +00:00
BUILD.gn Reland "[Fuchsia] Remove the legacy gn build rules for fuchsia" 2024-03-14 20:22:12 +00:00
elf.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
floating_point.h
floating_point_win.cc [vm] Run clang-format on code base 2024-04-17 19:14:41 +00:00
floating_point_win.h
globals.h [vm/io] Cleanup long path handling on Windows 2024-03-12 08:29:36 +00:00
growable_array.h [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
hashmap.cc [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
hashmap.h [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
leak_sanitizer.h [vm] Fix using GCC with the sanitizers. 2024-02-21 20:15:15 +00:00
mach_o.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
memory_sanitizer.h Revert "[vm] Mark Zone memory as unallocated/allocated/uninitialized for Address and Memory Sanitizer." 2023-06-16 11:22:38 +00:00
pe.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
platform_sources.gni [vm] Move ResolveUri to platform 2024-06-12 16:45:19 +00:00
priority_queue.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
safe_stack.h [vm] Run clang-format on code base 2024-04-17 19:14:41 +00:00
signal_blocker.h [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
splay-tree-inl.h
splay-tree.h
syslog.h
syslog_android.cc [standalone] Fix reuse of va_list in syslog_android.cc. 2021-12-15 22:22:36 +00:00
syslog_fuchsia.cc
syslog_linux.cc
syslog_macos.cc
syslog_win.cc
text_buffer.cc [VM/Service] Rename JSONStream::AppendSerializedObject to JSONStream::AppendBytes 2023-04-17 15:58:28 +00:00
text_buffer.h [vm] Speed up JSON encoding. 2023-02-21 18:58:42 +00:00
thread_sanitizer.h [vm, compiler] Allow targeting TSAN or MSAN by passing a flag to gen_snapshot. 2024-05-08 17:03:59 +00:00
unaligned.h [vm] Fix using GCC with the sanitizers. 2024-02-21 20:15:15 +00:00
undefined_behavior_sanitizer.h [vm] Fix using GCC with the sanitizers. 2024-02-21 20:15:15 +00:00
unicode.cc [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
unicode.h [vm] Update to constexpr in runtime/platform and lib. 2023-04-11 17:43:58 +00:00
unwinding_records.cc [win/unwinding] Remove Windows7 handling of unwinding records API. 2024-02-23 04:13:39 +00:00
unwinding_records.h [vm] Run clang-format on code base 2024-04-17 19:14:41 +00:00
unwinding_records_win.cc [win/unwinding] Remove Windows7 handling of unwinding records API. 2024-02-23 04:13:39 +00:00
uri.cc [vm] Move ResolveUri to platform 2024-06-12 16:45:19 +00:00
uri.h [vm] Move ResolveUri to platform 2024-06-12 16:45:19 +00:00
uri_test.cc [vm] Move ResolveUri to platform 2024-06-12 16:45:19 +00:00
utils.cc [vm] Hoist CStringUniquePtr out of Utils, add CAllocUniquePtr` to simplify code 2024-05-29 10:16:28 +00:00
utils.h [vm] Move ResolveUri to platform 2024-06-12 16:45:19 +00:00
utils_android.cc [vm] Update to variadic FATAL. 2023-03-06 22:06:59 +00:00
utils_android.h
utils_fuchsia.cc [inspect] Update Inspect library usage 2024-02-12 18:18:01 +00:00
utils_fuchsia.h
utils_linux.cc [vm] Remove MSAN_UNPOISONs around print and sort functions. 2024-05-16 16:33:52 +00:00
utils_linux.h
utils_macos.cc [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
utils_macos.h [vm] Make VM strict about min required Mac OS X version. 2023-03-08 09:08:39 +00:00
utils_win.cc [vm] Update NULL to nullptr in runtime/platform. 2023-03-30 20:49:48 +00:00
utils_win.h