diff options
author | 2022-09-30 12:28:49 +0200 | |
---|---|---|
committer | 2022-10-03 07:06:53 +0000 | |
commit | 467d570d3f4aceed70a66136814b965f48b3e4db (patch) | |
tree | b118a5fc49a863a7e53a4b5ebc365bc2d5355856 /compiler/compiled_method.h | |
parent | 1abcef8f7be84ea933bb1f61de01693babdcf549 (diff) |
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
Diffstat (limited to 'compiler/compiled_method.h')
-rw-r--r-- | compiler/compiled_method.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 |