From 2b7be1efa1ba363778057d4e42fccab8afe3046b Mon Sep 17 00:00:00 2001 From: Dmitrii Ishcheikin Date: Wed, 12 Oct 2022 14:15:31 +0000 Subject: Merge libart and libart-compiler into a single library Rename old libart into libart-runtime Build libart-runtime and libart-compiler separately as static libraries This is required to support PGO (compiler) and AFDO (runtime) without mixing them Combine libart-runtime and libart-compiler into libart with whole-archive linking This change negates all size savings from libart-compiler version script, it will be restored in a follow-up CL Bug: 186902856 Test: m test-art-host-gtest Test: m libart libartd dex2oat dex2oatd oatdump oatdumps Test: art/build/apex/runtests.sh Test: art/tools/run-gtests.sh Test: art/test/testrunner/testrunner.py --target --64 Test: art/tools/run-libcore-tests.sh --mode=device --variant=X64 Test: art/tools/run-libjdwp-tests.sh --mode=device --variant=X64 Change-Id: I6b9717cf49007e77691d49a2dca18a8064749154 --- compiler/export/jit_load.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 compiler/export/jit_load.h (limited to 'compiler/export/jit_load.h') diff --git a/compiler/export/jit_load.h b/compiler/export/jit_load.h new file mode 100644 index 0000000000..21a0254180 --- /dev/null +++ b/compiler/export/jit_load.h @@ -0,0 +1,31 @@ +/* + * Copyright 2022 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ART_COMPILER_EXPORT_JIT_LOAD_H_ +#define ART_COMPILER_EXPORT_JIT_LOAD_H_ + +namespace art { +namespace jit { + +class JitCompilerInterface; + +// used in `libart-runtime` to load `libart-compiler` JIT +extern "C" JitCompilerInterface* jit_load(); + +} // namespace jit +} // namespace art + +#endif // ART_COMPILER_EXPORT_JIT_LOAD_H_ -- cgit v1.2.3-59-g8ed1b