dart-sdk/runtime
Jens Johansen 9f0872847d [VM] Linux with symbolic link to dart: still find kernel-service snapshot
Prior to this change, on Linux, if one created a symbolic link to the
dart executable and ran that, the kernel-service snapshot would not be
found. This has the effect of compiling the input script on a
non-trained kernel service, meaning the startup is slower.

This is particularly bad as the debian install of dart creates a symbolic
link to dart as /usr/bin/dart with the target being /usr/lib/dart/bin/dart
meaning that for instance running a hello-world script like one normally
would, `dart hello.dart` would take something along the lines of 3-4 times
longer than if running `/usr/lib/dart/bin/dart hello.dart`.
On my Pixelbook (in crostini) this is ~755 ms vs ~210 ms.

This change does *NOT* fix it on other platforms.

Change-Id: I6c9105d49205f3e4b9ea64e8ddb95a1d36ae21a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117144
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-09-17 07:25:38 +00:00
..
bin [VM] Linux with symbolic link to dart: still find kernel-service snapshot 2019-09-17 07:25:38 +00:00
docs [vm/doc] Add documentation describing AOT code size analysis 2019-08-12 12:08:35 +00:00
include [vm] Remove dead --load_deferred_eagerly and dependent code tracking for library prefixes. 2019-09-06 23:37:33 +00:00
lib Implement a basic WASM API using wasmer. 2019-09-13 18:25:16 +00:00
llvm_codegen [llvm] Fix bit target definition on Windows - it needs .exe extension 2019-07-31 17:33:09 +00:00
observatory Revert "[vm, service] Remove _collectAllGarbage." 2019-09-12 18:41:08 +00:00
platform Implement a basic WASM API using wasmer. 2019-09-13 18:25:16 +00:00
tests/vm [gardening] Always use Dart binary from checked-in sdk when running gen_kernel in vm/dart tests 2019-09-12 12:14:56 +00:00
third_party Mass format python with yapf 2019-08-05 20:34:31 +00:00
tools [vm/fuzzer] Reduce limit on emitted classes 2019-09-16 18:27:49 +00:00
vm [vm/bytecode] Minor cleanup. 2019-09-16 20:37:11 +00:00
.clang-tidy [vm] Add runtime/.clang-tidy file 2019-09-05 09:51:13 +00:00
.gitignore
BUILD.gn Implement a basic WASM API using wasmer. 2019-09-13 18:25:16 +00:00
codereview.settings
configs.gni [vm, fuchsia] Fix deps and stop suppressing -fvisibility=hidden. 2019-04-29 23:31:27 +00:00
CPPLINT.cfg
PRESUBMIT.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
runtime_args.gni Implement a basic WASM API using wasmer. 2019-09-13 18:25:16 +00:00