From 467d570d3f4aceed70a66136814b965f48b3e4db Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 30 Sep 2022 12:28:49 +0200 Subject: Refactor Thumb2 entrypoint adjustment handling. Reduce dependencies on `compiled_method.h` in preparation for moving it to dex2oat/. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: run-gtests.sh Test: testrunner.py --target --optimizing Change-Id: I55ff807e0c7d729142b1a64a3a0b6c6267027dc3 --- compiler/compiled_method.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'compiler/compiled_method.h') diff --git a/compiler/compiled_method.h b/compiler/compiled_method.h index e92777ff12..fa80d67b40 100644 --- a/compiler/compiled_method.h +++ b/compiler/compiled_method.h @@ -58,10 +58,9 @@ class CompiledCode { size_t AlignCode(size_t offset) const; static size_t AlignCode(size_t offset, InstructionSet instruction_set); - // returns the difference between the code address and a usable PC. - // mainly to cope with kThumb2 where the lower bit must be set. - size_t CodeDelta() const; - static size_t CodeDelta(InstructionSet instruction_set); + // Returns the difference between the code address and a usable PC. + // Mainly to cope with `kThumb2` where the lower bit must be set. + size_t GetEntryPointAdjustment() const; // Returns a pointer suitable for invoking the code at the argument // code_pointer address. Mainly to cope with kThumb2 where the -- cgit v1.2.3-59-g8ed1b