summaryrefslogtreecommitdiff
path: root/compiler/compiled_method.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2022-10-06 13:46:55 +0200
committer VladimĂ­r Marko <vmarko@google.com> 2022-10-06 15:02:53 +0000
commit8c5e881904c30de5dbc03536ea67bbe2d48088fd (patch)
treeb0bbf7c5120d7894d21131478640e6f7b8761975 /compiler/compiled_method.cc
parente1b8877890147b8572809266653677084e1a5112 (diff)
Remove `CompiledCode::CodePointer()`.
And clean up some related test helpers in preparation for moving `CompiledMethod` to dex2oat/. Test: m test-art-host-gtest Test: run-gtests.sh Change-Id: I13b42bfb4f6ee3a7f7f22bbc8d22203c5d56e00b
Diffstat (limited to 'compiler/compiled_method.cc')
-rw-r--r--compiler/compiled_method.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/compiler/compiled_method.cc b/compiler/compiled_method.cc
index 21d5ed927f..0a0a0057d4 100644
--- a/compiler/compiled_method.cc
+++ b/compiler/compiled_method.cc
@@ -58,25 +58,6 @@ size_t CompiledCode::GetEntryPointAdjustment() const {
return GetInstructionSetEntryPointAdjustment(GetInstructionSet());
}
-const void* CompiledCode::CodePointer(const void* code_pointer, InstructionSet instruction_set) {
- switch (instruction_set) {
- case InstructionSet::kArm:
- case InstructionSet::kArm64:
- case InstructionSet::kX86:
- case InstructionSet::kX86_64:
- return code_pointer;
- case InstructionSet::kThumb2: {
- uintptr_t address = reinterpret_cast<uintptr_t>(code_pointer);
- // Set the low-order bit so a BLX will switch to Thumb mode
- address |= 0x1;
- return reinterpret_cast<const void*>(address);
- }
- default:
- LOG(FATAL) << "Unknown InstructionSet: " << instruction_set;
- UNREACHABLE();
- }
-}
-
CompiledMethod::CompiledMethod(CompiledMethodStorage* storage,
InstructionSet instruction_set,
const ArrayRef<const uint8_t>& quick_code,