dart-sdk/runtime
Ryan Macnak e31c3713bf Reland "[build, vm] Access TLS with less code."
- Avoid TLS initialization checks by using inline initialization.
 - Avoid global offset table indirection by reducing -fPIC to -fPIE.

out/ReleaseXARM64/exe.stripped/dart_precompiled_runtime
11137992 -> 11274776 (-1.21%)

We still need -fPIC in some places because we build a few shared libraries for FFI, so copy some of Fuchsia's GN setup to use -fPIE or -fPIC as appropriate.

Account for older gcc that does not default to -fpie.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/51602
Change-Id: I85072153cb1aef9047c1adbf36c7496fbeb11e10
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286221
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-03-02 23:07:16 +00:00
..
bin Reland "[build, vm] Access TLS with less code." 2023-03-02 23:07:16 +00:00
docs [dart2js] Static weak references to method tearoffs 2023-03-02 20:04:19 +00:00
include [vm] Fix Dart_CObject_Type breaking change 2023-02-20 11:59:19 +00:00
lib [vm] Avoid a second map lookup when dispatching isolate messages. 2023-02-27 18:08:25 +00:00
observatory convert class M to mixin in observatory test 2023-02-28 22:45:14 +00:00
observatory_2 [VM/Service] Add support for class modifiers 2023-02-27 21:07:41 +00:00
platform Revert "[VM] Begin supporting Perfetto file recorder" 2023-02-28 12:41:00 +00:00
tests [flip-modifiers] fix some vm tests to make mixed in classes mixins 2023-03-02 21:29:56 +00:00
third_party
tools Revert "[VM] Begin supporting Perfetto file recorder" 2023-02-28 12:41:00 +00:00
vm Reland "[build, vm] Access TLS with less code." 2023-03-02 23:07:16 +00:00
.clang-tidy
.gitignore
BUILD.gn Revert "[VM] Begin supporting Perfetto file recorder" 2023-02-28 12:41:00 +00:00
codereview.settings
configs.gni
CPPLINT.cfg
OWNERS
PRESUBMIT.py Revert "[VM] Begin supporting Perfetto file recorder" 2023-02-28 12:41:00 +00:00
runtime_args.gni