diff options
author | 2025-02-12 14:30:16 +0000 | |
---|---|---|
committer | 2025-02-18 07:29:58 -0800 | |
commit | 17c7ed2de734cf892b005b1d15b3db9855506f14 (patch) | |
tree | ec7cd925e8648e601166e835a061d7b290940e00 /tools/cpp-define-generator/runtime.def | |
parent | cb3c3b2819f326d54a6bd960a9a82c5290aa69b0 (diff) |
Refactor `Instrumentation` out of `Runtime`.
Avoid indirectly `#include`-ing `instrumentation.h` in every
compilation unit that needs the `runtime.h`. This reduces
incremental compilation times when touching certain files.
The additional load when accessing `Instrumentation` via the
`Runtime` has negligible performance impact.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: Ibaf96696693b105e843c7c2cbf4e7604b126808e
Diffstat (limited to 'tools/cpp-define-generator/runtime.def')
-rw-r--r-- | tools/cpp-define-generator/runtime.def | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/cpp-define-generator/runtime.def b/tools/cpp-define-generator/runtime.def index fd6567d87e..66a542a5d1 100644 --- a/tools/cpp-define-generator/runtime.def +++ b/tools/cpp-define-generator/runtime.def @@ -31,6 +31,4 @@ ASM_DEFINE(RUNTIME_SAVE_REFS_AND_ARGS_METHOD_OFFSET, ASM_DEFINE(RUNTIME_SAVE_REFS_ONLY_METHOD_OFFSET, art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) ASM_DEFINE(RUNTIME_INSTRUMENTATION_OFFSET, art::Runtime::GetInstrumentationOffset().Int32Value()) -ASM_DEFINE(RUN_EXIT_HOOKS_OFFSET_FROM_RUNTIME_INSTANCE, - art::Runtime::GetInstrumentationOffset().Int32Value() + - art::instrumentation::Instrumentation::RunExitHooksOffset().Int32Value()) + |