dart-sdk/runtime/bin
Ben Konyi 848121e6d4 Reland "[ CLI ] Improved consistency of -D and --define across tools and commands"
- Added support for --define to the VM and dart2js
- Added support for -D and --define for `dart run` and `dart compile js`

Remaining improvements:
- Add support for providing multiple comma separated values for `dart
  run`, `dart`, and `dart2js`

Related issue: https://github.com/dart-lang/sdk/issues/44562

TEST=Updated CLI tests and added new dart2js tests.

This reverts commit e49937769f.

Change-Id: I5f9275b829665eb5e8695403d67f230e752ab0e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183180
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-02-05 23:53:28 +00:00
..
ffi_test [vm/ffi] Add fields to Structs which should not be empty 2021-01-15 12:24:13 +00:00
ffi_unit_test [test/ffi] Use the right define for iOS 2020-11-17 13:20:57 +00:00
address_sanitizer.cc
BUILD.gn Changes to make support WinUWP target 2020-12-04 22:46:12 +00:00
builtin.cc [VM/runtime] Remove support for loading URLs through service isolate 2019-12-27 17:30:05 +00:00
builtin.h [VM/runtime] Remove support for loading URLs through service isolate 2019-12-27 17:30:05 +00:00
builtin_gen_snapshot.cc [vm] Remove DART_CHECK_VALID; add check for a current isolate to Dart_PropagateError. 2019-04-02 20:06:19 +00:00
builtin_impl_sources.gni [vm] Make event handler use appropriate data structure for timers 2020-12-16 10:55:12 +00:00
builtin_in.cc
builtin_natives.cc [vm] Remove DART_CHECK_VALID; add check for a current isolate to Dart_PropagateError. 2019-04-02 20:06:19 +00:00
builtin_sources.gni [NNBD/VM] Restructure VM patch files for the NNBD dart sdk split 2019-09-19 03:57:30 +00:00
cli.cc
cli_impl_sources.gni
cli_sources.gni [NNBD/VM] Restructure VM patch files for the NNBD dart sdk split 2019-09-19 03:57:30 +00:00
console.h
console_posix.cc
console_win.cc
crashpad.cc [build] Remove last platform -> vm and bin -> vm dependencies. Fix some ODR violations. 2019-04-22 20:15:43 +00:00
crashpad.h
crypto.cc
crypto.h
crypto_android.cc [dart:io] Don't leak /dev/urandom fd on fork. 2019-05-15 21:27:19 +00:00
crypto_fuchsia.cc
crypto_linux.cc [dart:io] Don't leak /dev/urandom fd on fork. 2019-05-15 21:27:19 +00:00
crypto_macos.cc [vm/sigprof] Disable checking of sigprof on mac. 2020-06-19 18:42:33 +00:00
crypto_test.cc
crypto_win.cc
dart_embedder_api_impl.cc [ Service ] Wait for DDS connection before outputting service connection 2020-08-20 19:00:59 +00:00
dart_io_api_impl.cc [vm] Fix openssl bio.h include error when -DART_IO_SECURE_SOCKET_DISABLE is on 2020-11-24 10:09:48 +00:00
dartdev_isolate.cc [ VM / CLI ] Run DartDev isolate from snapshot when possible 2021-01-11 19:41:50 +00:00
dartdev_isolate.h [ VM / CLI ] Run DartDev isolate from snapshot when possible 2021-01-11 19:41:50 +00:00
dartutils.cc [vm/io] Shrink buffers using realloc() if actual used data is small 2021-02-02 20:04:22 +00:00
dartutils.h [vm/io] Shrink buffers using realloc() if actual used data is small 2021-02-02 20:04:22 +00:00
dfe.cc [ VM / CLI ] Add --verbosity to VM options 2021-01-26 03:01:58 +00:00
dfe.h [ VM / CLI ] Add --verbosity to VM options 2021-01-26 03:01:58 +00:00
directory.cc [vm] Native API: Introduce Dart_FinalizableHandle 2020-07-23 11:30:39 +00:00
directory.h
directory_android.cc Fix Directory.list from aborting on Linux 2020-09-01 22:44:01 +00:00
directory_fuchsia.cc Fix Directory.list from aborting on Linux 2020-09-01 22:44:01 +00:00
directory_linux.cc Fix Directory.list from aborting on Linux 2020-09-01 22:44:01 +00:00
directory_macos.cc Fix Directory.list from aborting on Linux 2020-09-01 22:44:01 +00:00
directory_test.cc
directory_win.cc Reland "Enable long path on Windows" 2020-10-02 00:54:46 +00:00
elf_loader.cc [vm] Add build ID to non-symbolic stack traces. 2020-09-22 17:14:44 +00:00
elf_loader.h [vm] Improve docs for Dart_LoadELF. 2020-03-09 14:16:47 +00:00
entrypoints_verification_test_extension.cc [VM/nnbd] Remove propagation of library mode to runtime after spec change. 2020-03-03 20:30:32 +00:00
entrypoints_verification_test_extension_dllmain_win.cc
error_exit.cc [build] Remove last platform -> vm and bin -> vm dependencies. Fix some ODR violations. 2019-04-22 20:15:43 +00:00
error_exit.h
eventhandler.cc [vm] Make event handler use appropriate data structure for timers 2020-12-16 10:55:12 +00:00
eventhandler.h [vm] Make event handler use appropriate data structure for timers 2020-12-16 10:55:12 +00:00
eventhandler_android.cc [vm] not remove port if socket was listening by other isolates 2019-11-06 16:28:12 +00:00
eventhandler_android.h [VM] Remove retry logic from close(fd) calls 2019-02-15 23:28:17 +00:00
eventhandler_fuchsia.cc Reland "[vm] Fix some Fuchsia tests" 2020-08-06 21:29:29 +00:00
eventhandler_fuchsia.h [fuchsia,dart:io] Emulate edge-triggering of close events 2020-04-20 16:19:36 +00:00
eventhandler_linux.cc [vm] not remove port if socket was listening by other isolates 2019-11-06 16:28:12 +00:00
eventhandler_linux.h [VM] Remove retry logic from close(fd) calls 2019-02-15 23:28:17 +00:00
eventhandler_macos.cc [vm] not remove port if socket was listening by other isolates 2019-11-06 16:28:12 +00:00
eventhandler_macos.h [VM] Remove retry logic from close(fd) calls 2019-02-15 23:28:17 +00:00
eventhandler_test.cc
eventhandler_win.cc Reland "[dart:io] Fix hanging on zero-length datagram" 2020-03-27 15:28:23 +00:00
eventhandler_win.h Reland "[dart:io] Fix hanging on zero-length datagram" 2020-03-27 15:28:23 +00:00
exe_utils.cc [build] Support --clang when building dart sdk on Windows. 2020-06-25 03:36:41 +00:00
exe_utils.h Reland "[ VM / DartDev ] Fixed issue where trying to find the directory of the Dart executable would fail if we encountered a relative symlink while trying to determine the absolute path." 2020-04-13 21:11:52 +00:00
extensions.cc [build] Support --clang when building dart sdk on Windows. 2020-06-25 03:36:41 +00:00
extensions.h
extensions_android.cc [vm/aot] Add a custom ELF loader in dart_precompiled_runtime. 2019-09-24 15:03:19 +00:00
extensions_fuchsia.cc [vm/aot] Add a custom ELF loader in dart_precompiled_runtime. 2019-09-24 15:03:19 +00:00
extensions_linux.cc [vm/aot] Add a custom ELF loader in dart_precompiled_runtime. 2019-09-24 15:03:19 +00:00
extensions_macos.cc [vm/aot] Add a custom ELF loader in dart_precompiled_runtime. 2019-09-24 15:03:19 +00:00
extensions_win.cc [build] Support --clang when building dart sdk on Windows. 2020-06-25 03:36:41 +00:00
fdutils.h
fdutils_android.cc [VM] Remove retry logic from close(fd) calls 2019-02-15 23:28:17 +00:00
fdutils_fuchsia.cc
fdutils_linux.cc [VM] Remove retry logic from close(fd) calls 2019-02-15 23:28:17 +00:00
fdutils_macos.cc [VM] Remove retry logic from close(fd) calls 2019-02-15 23:28:17 +00:00
file.cc [vm/io] Shrink buffers using realloc() if actual used data is small 2021-02-02 20:04:22 +00:00
file.h [vm] Native API: Introduce Dart_FinalizableHandle 2020-07-23 11:30:39 +00:00
file_android.cc [vm] Allow Isolate.spawnUri to spawn from app-jit snapshots 2020-06-18 12:59:33 +00:00
file_fuchsia.cc Reland "[vm] Fix some Fuchsia tests" 2020-08-06 21:29:29 +00:00
file_linux.cc [vm] Allow Isolate.spawnUri to spawn from app-jit snapshots 2020-06-18 12:59:33 +00:00
file_macos.cc [vm] Allow Isolate.spawnUri to spawn from app-jit snapshots 2020-06-18 12:59:33 +00:00
file_support.cc Reland "Reland "fix hanging of write on Windows"" 2020-02-14 17:49:42 +00:00
file_system_watcher.cc
file_system_watcher.h Reland "[vm/io] Fix FileSystemWatcher enum name typo." 2020-09-02 20:41:32 +00:00
file_system_watcher_android.cc Check for IN_MODIFY in file_system_watcher_linux.cc 2020-09-08 17:57:45 +00:00
file_system_watcher_fuchsia.cc
file_system_watcher_linux.cc Check for IN_MODIFY in file_system_watcher_linux.cc 2020-09-08 17:57:45 +00:00
file_system_watcher_macos.cc Reland "[vm/io] Fix FileSystemWatcher enum name typo." 2020-09-02 20:41:32 +00:00
file_system_watcher_win.cc [io/watcher] Fix crash in file event watcher functionality on Windows. 2020-09-24 16:26:00 +00:00
file_test.cc [gardening] Migrate most files to be implicit-bool-conversion free 2019-09-05 21:41:42 +00:00
file_win.cc [vm/win] Use Utils::StrDup instead of strdup to avoid deprecated warnings 2020-10-12 20:24:22 +00:00
file_win.h Reland "Enable long path on Windows" 2020-10-02 00:54:46 +00:00
filter.cc [vm] Native API: Introduce Dart_FinalizableHandle 2020-07-23 11:30:39 +00:00
filter.h
gen_snapshot.cc [vm/concurrency] Remove Dart_IsolateFlags.entry_points / Dart_QualifiedFunctionName from Dart C API 2021-01-06 10:24:45 +00:00
gzip.cc [vm] Produce clearer error messages for malloc/realloc failures. 2020-11-13 22:10:54 +00:00
gzip.h
hashmap_test.cc [vm] Fix various UBSan failures. 2020-05-07 19:40:18 +00:00
ifaddrs-android.cc [vm] Support ListInterfaces for android 2019-04-19 16:38:44 +00:00
ifaddrs-android.h [vm] Support ListInterfaces for android 2019-04-19 16:38:44 +00:00
io_buffer.cc [vm/io] Shrink buffers using realloc() if actual used data is small 2021-02-02 20:04:22 +00:00
io_buffer.h [vm/io] Shrink buffers using realloc() if actual used data is small 2021-02-02 20:04:22 +00:00
io_impl_sources.gni Update operatingSystemVersion on MacOS/iOS to return system version instead of kernel version 2020-07-07 21:07:55 +00:00
io_natives.cc [vm/io/mac] On macos/ios run trust evaluation part of ssl certification validation on separate worker thread. 2020-10-01 23:40:16 +00:00
io_natives.h
io_service.cc
io_service.h
io_service_no_ssl.cc
io_service_no_ssl.h
io_sources.gni [NNBD/VM] Restructure VM patch files for the NNBD dart sdk split 2019-09-19 03:57:30 +00:00
isolate_data.cc [vm] Initial implementation of deferred loading. 2020-07-17 19:29:47 +00:00
isolate_data.h [vm] Initial implementation of deferred loading. 2020-07-17 19:29:47 +00:00
loader.cc Reland "[vm] Pass snapshot flag to kernel_service" 2021-01-21 21:18:32 +00:00
loader.h [vm] Initial implementation of deferred loading. 2020-07-17 19:29:47 +00:00
lockers.h
main.cc [ VM / CLI ] Add --verbosity to VM options 2021-01-26 03:01:58 +00:00
main_options.cc Reland "[ CLI ] Improved consistency of -D and --define across tools and commands" 2021-02-05 23:53:28 +00:00
main_options.h [ VM / CLI ] Add --verbosity to VM options 2021-01-26 03:01:58 +00:00
namespace.cc [vm] Native API: Introduce Dart_FinalizableHandle 2020-07-23 11:30:39 +00:00
namespace.h [build] Remove last platform -> vm and bin -> vm dependencies. Fix some ODR violations. 2019-04-22 20:15:43 +00:00
namespace_android.cc [vm] Create a common base class for TextBuffer/ZoneTextBuffer. 2020-08-07 18:09:35 +00:00
namespace_fuchsia.cc [vm] Create a common base class for TextBuffer/ZoneTextBuffer. 2020-08-07 18:09:35 +00:00
namespace_fuchsia.h
namespace_linux.cc [vm] Create a common base class for TextBuffer/ZoneTextBuffer. 2020-08-07 18:09:35 +00:00
namespace_macos.cc
namespace_win.cc Reland "Enable long path on Windows" 2020-10-02 00:54:46 +00:00
observatory_assets_empty.cc [vm] Cleanup C99 header includes 2019-07-03 10:54:24 +00:00
options.cc Reland "[ CLI ] Improved consistency of -D and --define across tools and commands" 2021-02-05 23:53:28 +00:00
options.h Reland "Improve handling of disable-dartdev-analytics" 2020-12-04 14:22:10 +00:00
platform.cc [ VM ] Migrate VM tests to support null safety and return errors from Dart_GetType and Dart_NewListOf when --null-safety is enabled 2020-05-26 22:40:52 +00:00
platform.h Update operatingSystemVersion on MacOS/iOS to return system version instead of kernel version 2020-07-07 21:07:55 +00:00
platform_android.cc Revert "[ VM ] Update embedding API to perform Platform initialization" 2019-09-24 20:43:20 +00:00
platform_fuchsia.cc Revert "[ VM ] Update embedding API to perform Platform initialization" 2019-09-24 20:43:20 +00:00
platform_linux.cc Revert "[ VM ] Update embedding API to perform Platform initialization" 2019-09-24 20:43:20 +00:00
platform_macos.cc Update operatingSystemVersion on MacOS/iOS to return system version instead of kernel version 2020-07-07 21:07:55 +00:00
platform_macos.h Update operatingSystemVersion on MacOS/iOS to return system version instead of kernel version 2020-07-07 21:07:55 +00:00
platform_macos_test.cc Update operatingSystemVersion on MacOS/iOS to return system version instead of kernel version 2020-07-07 21:07:55 +00:00
platform_win.cc [SDK] Fixes loading appended snapshots when executed with PATH. 2019-10-18 10:30:48 +00:00
priority_heap_test.cc [vm] Fix tyops in a license header 2020-12-16 19:07:12 +00:00
process.cc [vm] Avoid producing inconsistent values in Process::GetRSSInformation 2021-01-27 21:50:57 +00:00
process.h [dart:io] Don't treat a file descriptor as a signal o_o; 2020-05-04 20:19:18 +00:00
process_android.cc [ VM ] Fix issue where ExitCodeHandlerEntry could get stuck in an 2020-07-22 03:45:35 +00:00
process_fuchsia.cc [process][fuchsia] Clone UTC clock when launching processes 2020-10-01 15:25:58 +00:00
process_linux.cc [vm/bin] Improve fallback error message for process creation 2021-01-26 12:56:49 +00:00
process_macos.cc [ VM ] Fix issue where ExitCodeHandlerEntry could get stuck in an 2020-07-22 03:45:35 +00:00
process_test.cc [infra] Define a GCC builder configuration. 2020-05-16 00:26:32 +00:00
process_win.cc Changes to make support WinUWP target 2020-12-04 22:46:12 +00:00
reference_counting.h [vm] Fix TSAN failures related to object headers and GC task phases. 2019-10-09 21:48:20 +00:00
root_certificates_unsupported.cc
run_vm_tests.cc [ Service ] Wait for DDS connection before outputting service connection 2020-08-20 19:00:59 +00:00
secure_socket_filter.cc [io/ssl/ios] Ensure that certificate is up-referenced before it had a chance to get disposed. 2021-01-21 20:08:03 +00:00
secure_socket_filter.h [vm/io] Ensure ports in SSLFilters are intitialized. 2020-10-02 01:58:56 +00:00
secure_socket_unsupported.cc [vm/io/mac] On macos/ios run trust evaluation part of ssl certification validation on separate worker thread. 2020-10-01 23:40:16 +00:00
secure_socket_utils.cc [vm] Create a common base class for TextBuffer/ZoneTextBuffer. 2020-08-07 18:09:35 +00:00
secure_socket_utils.h Reland "Update BoringSSL to 4dfd5af70191b068aebe567b8e29ce108cee85ce." 2019-10-23 18:08:16 +00:00
security_context.cc [vm/io] Add a test for nonblocking ssl certification evaluation. 2020-10-12 15:06:52 +00:00
security_context.h [vm/io] Add a test for nonblocking ssl certification evaluation. 2020-10-12 15:06:52 +00:00
security_context_android.cc [vm/io/mac] On macos/ios run trust evaluation part of ssl certification validation on separate worker thread. 2020-10-01 23:40:16 +00:00
security_context_fuchsia.cc [vm/io/mac] On macos/ios run trust evaluation part of ssl certification validation on separate worker thread. 2020-10-01 23:40:16 +00:00
security_context_linux.cc [vm/io/mac] On macos/ios run trust evaluation part of ssl certification validation on separate worker thread. 2020-10-01 23:40:16 +00:00
security_context_macos.cc [io/ssl/ios] Ensure that certificate is up-referenced before it had a chance to get disposed. 2021-01-21 20:08:03 +00:00
security_context_win.cc Changes to make support WinUWP target 2020-12-04 22:46:12 +00:00
snapshot_empty.cc [vm] Cleanup C99 header includes 2019-07-03 10:54:24 +00:00
snapshot_in.cc [vm] Cleanup C99 header includes 2019-07-03 10:54:24 +00:00
snapshot_utils.cc Reland "[vm] Pass snapshot flag to kernel_service" 2021-01-21 21:18:32 +00:00
snapshot_utils.h Reland "[ VM ] Print a meaningful error message when a user attempts to run an AOT snapshot with a JIT VM." 2020-07-27 21:51:03 +00:00
socket.cc Address comments from https://dart-review.googlesource.com/c/sdk/+/174471 2020-12-07 15:42:57 +00:00
socket.h [dart:io] Support abstract unix domain socket on Linux 2020-05-19 21:33:10 +00:00
socket_android.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
socket_base.cc [dart:io] Clean up on parsing scoped IPv6 InternetAddress 2020-08-14 00:34:33 +00:00
socket_base.h Reland "[dart:io] Fix hanging on zero-length datagram" 2020-03-27 15:28:23 +00:00
socket_base_android.cc Reland "[dart:io] Fix hanging on zero-length datagram" 2020-03-27 15:28:23 +00:00
socket_base_android.h [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
socket_base_fuchsia.cc [dart:io] Remove dependency on FIDL 2020-08-19 17:00:16 +00:00
socket_base_fuchsia.h [dart:io] Fix Unix domain socket headers for Fuchsia 2020-03-23 20:35:47 +00:00
socket_base_linux.cc Reland "[dart:io] Fix hanging on zero-length datagram" 2020-03-27 15:28:23 +00:00
socket_base_linux.h [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
socket_base_macos.cc Reland "[dart:io] Fix hanging on zero-length datagram" 2020-03-27 15:28:23 +00:00
socket_base_macos.h [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
socket_base_win.cc [build] Support --clang when building dart sdk on Windows. 2020-06-25 03:36:41 +00:00
socket_base_win.h [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
socket_fuchsia.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
socket_linux.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
socket_macos.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
socket_win.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
stdio.cc
stdio.h
stdio_android.cc Add common terminals to ANSI heuristic 2020-06-09 21:33:35 +00:00
stdio_fuchsia.cc
stdio_linux.cc Add common terminals to ANSI heuristic 2020-06-09 21:33:35 +00:00
stdio_macos.cc Add common terminals to ANSI heuristic 2020-06-09 21:33:35 +00:00
stdio_win.cc
sync_socket.cc [vm] Native API: Introduce Dart_FinalizableHandle 2020-07-23 11:30:39 +00:00
sync_socket.h
sync_socket_android.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
sync_socket_fuchsia.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
sync_socket_linux.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
sync_socket_macos.cc [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
sync_socket_win.cc
test_extension.c
test_extension_dllmain_win.cc
thread.h [standalone] Name dart:io threads, take 2. 2019-02-13 20:29:46 +00:00
thread_android.cc [vm, arm64] Adjust CSP during the invocation stub instead of each function prologue. 2019-10-25 19:21:56 +00:00
thread_android.h
thread_fuchsia.cc [standalone] Name dart:io threads, take 2. 2019-02-13 20:29:46 +00:00
thread_fuchsia.h
thread_linux.cc [standalone] Name dart:io threads, take 2. 2019-02-13 20:29:46 +00:00
thread_linux.h
thread_macos.cc [standalone] Name dart:io threads, take 2. 2019-02-13 20:29:46 +00:00
thread_macos.h
thread_win.cc [ VM / Windows ] Removed call to SetThreadDescription which is only supported in new Win 10 builds 2019-02-26 01:00:26 +00:00
thread_win.h
typed_data_utils.cc
typed_data_utils.h
utils.h [build] Support --clang when building dart sdk on Windows. 2020-06-25 03:36:41 +00:00
utils_android.cc
utils_fuchsia.cc [fuchsia] Migrate to zx_clock_get_new 2019-05-10 18:22:28 +00:00
utils_linux.cc
utils_macos.cc
utils_win.cc [build] Remove last platform -> vm and bin -> vm dependencies. Fix some ODR violations. 2019-04-22 20:15:43 +00:00
utils_win.h [vm] Produce clearer error messages for malloc/realloc failures. 2020-11-13 22:10:54 +00:00
vmservice_impl.cc [ Service ] Wait for DDS connection before outputting service connection 2020-08-20 19:00:59 +00:00
vmservice_impl.h [ Service ] Wait for DDS connection before outputting service connection 2020-08-20 19:00:59 +00:00