/art/runtime/ |
D | dex_instruction_utils.h | 92 constexpr bool IsInstructionIGet(Instruction::Code code) { in IsInstructionIGet() argument 93 return Instruction::IGET <= code && code <= Instruction::IGET_SHORT; in IsInstructionIGet() 96 constexpr bool IsInstructionIPut(Instruction::Code code) { in IsInstructionIPut() argument 97 return Instruction::IPUT <= code && code <= Instruction::IPUT_SHORT; in IsInstructionIPut() 100 constexpr bool IsInstructionSGet(Instruction::Code code) { in IsInstructionSGet() argument 101 return Instruction::SGET <= code && code <= Instruction::SGET_SHORT; in IsInstructionSGet() 104 constexpr bool IsInstructionSPut(Instruction::Code code) { in IsInstructionSPut() argument 105 return Instruction::SPUT <= code && code <= Instruction::SPUT_SHORT; in IsInstructionSPut() 108 constexpr bool IsInstructionAGet(Instruction::Code code) { in IsInstructionAGet() argument 109 return Instruction::AGET <= code && code <= Instruction::AGET_SHORT; in IsInstructionAGet() [all …]
|
D | oat_file-inl.h | 26 const void* code = EntryPointToCodePointer(GetOatPointer<const void*>(code_offset_)); in GetOatQuickMethodHeader() local 27 if (code == nullptr) { in GetOatQuickMethodHeader() 31 return reinterpret_cast<const OatQuickMethodHeader*>(code) - 1; in GetOatQuickMethodHeader() 51 const void* code = EntryPointToCodePointer(GetQuickCode()); in GetFrameSizeInBytes() local 52 if (code == nullptr) { in GetFrameSizeInBytes() 55 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].frame_info_.FrameSizeInBytes(); in GetFrameSizeInBytes() 59 const void* code = EntryPointToCodePointer(GetQuickCode()); in GetCoreSpillMask() local 60 if (code == nullptr) { in GetCoreSpillMask() 63 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].frame_info_.CoreSpillMask(); in GetCoreSpillMask() 67 const void* code = EntryPointToCodePointer(GetQuickCode()); in GetFpSpillMask() local [all …]
|
D | oat_quick_method_header.h | 42 uintptr_t code = reinterpret_cast<uintptr_t>(code_ptr); in FromCodePointer() local 43 uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); in FromCodePointer() 44 DCHECK(IsAlignedParam(code, GetInstructionSetAlignment(kRuntimeISA)) || in FromCodePointer() 46 << std::hex << code << " " << std::hex << header; in FromCodePointer()
|
D | dex_instruction_visitor.h | 28 void Visit(const uint16_t* code, size_t size_in_bytes) { in Visit() argument 33 const Instruction* inst = Instruction::At(&code[i]); in Visit()
|
/art/compiler/linker/x86/ |
D | relative_patcher_x86.cc | 24 void X86RelativePatcher::PatchPcRelativeReference(std::vector<uint8_t>* code, in PatchPcRelativeReference() argument 33 DCHECK_LT(anchor_literal_offset, code->size()); in PatchPcRelativeReference() 34 DCHECK_EQ((*code)[anchor_literal_offset - 5u], 0xe8u); in PatchPcRelativeReference() 35 DCHECK_EQ((*code)[anchor_literal_offset - 4u], 0x00u); in PatchPcRelativeReference() 36 DCHECK_EQ((*code)[anchor_literal_offset - 3u], 0x00u); in PatchPcRelativeReference() 37 DCHECK_EQ((*code)[anchor_literal_offset - 2u], 0x00u); in PatchPcRelativeReference() 38 DCHECK_EQ((*code)[anchor_literal_offset - 1u], 0x00u); in PatchPcRelativeReference() 39 DCHECK_EQ((*code)[anchor_literal_offset] & 0xf8u, 0x58u); in PatchPcRelativeReference() 44 DCHECK_LE(literal_offset, code->size()); in PatchPcRelativeReference() 45 DCHECK_EQ((*code)[literal_offset + 0u], static_cast<uint8_t>(kDummy32BitOffset >> 0)); in PatchPcRelativeReference() [all …]
|
D | relative_patcher_x86_base.cc | 37 void X86BaseRelativePatcher::PatchCall(std::vector<uint8_t>* code, in PatchCall() argument 41 DCHECK_LE(literal_offset + 4u, code->size()); in PatchCall() 47 reinterpret_cast<unaligned_int32_t*>(&(*code)[literal_offset])[0] = displacement; in PatchCall()
|
D | relative_patcher_x86_test.cc | 119 ArrayRef<const uint8_t> code(raw_code); in TEST_F() local 121 LinkerPatch::DexCacheArrayPatch(code.size() - 4u, nullptr, anchor_offset, kElementOffset), in TEST_F() 123 AddCompiledMethod(MethodRef(1u), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 152 ArrayRef<const uint8_t> code(raw_code); in TEST_F() local 154 LinkerPatch::RelativeStringPatch(code.size() - 4u, nullptr, anchor_offset, kStringIndex), in TEST_F() 156 AddCompiledMethod(MethodRef(1u), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
|
/art/compiler/linker/arm/ |
D | relative_patcher_thumb2.cc | 31 void Thumb2RelativePatcher::PatchCall(std::vector<uint8_t>* code, in PatchCall() argument 35 DCHECK_LE(literal_offset + 4u, code->size()); in PatchCall() 54 DCHECK_EQ(GetInsn32(code, literal_offset) & 0xf800d000, 0xf000d000); in PatchCall() 56 SetInsn32(code, literal_offset, value); in PatchCall() 59 void Thumb2RelativePatcher::PatchPcRelativeReference(std::vector<uint8_t>* code, in PatchPcRelativeReference() argument 68 uint32_t insn = GetInsn32(code, literal_offset); in PatchPcRelativeReference() 76 SetInsn32(code, literal_offset, insn); in PatchPcRelativeReference() 91 MemoryRegion code(thunk_code.data(), thunk_code.size()); in CompileThunkCode() local 92 assembler.FinalizeInstructions(code); in CompileThunkCode() 96 void Thumb2RelativePatcher::SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value) { in SetInsn32() argument [all …]
|
D | relative_patcher_thumb2.h | 29 void PatchCall(std::vector<uint8_t>* code, 33 void PatchPcRelativeReference(std::vector<uint8_t>* code, 41 void SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value); 42 static uint32_t GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset); 45 static uint32_t GetInsn32(Vector* code, uint32_t offset);
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64.cc | 87 ArrayRef<const uint8_t> code = compiled_method->GetQuickCode(); in ReserveSpace() local 88 uint32_t thunk_offset = compiled_method->AlignCode(quick_code_offset + code.size()); in ReserveSpace() 93 if (NeedsErratum843419Thunk(code, patch.LiteralOffset(), patch_offset)) { in ReserveSpace() 143 void Arm64RelativePatcher::PatchCall(std::vector<uint8_t>* code, in PatchCall() argument 147 DCHECK_LE(literal_offset + 4u, code->size()); in PatchCall() 158 DCHECK_EQ(GetInsn(code, literal_offset) & 0xfc000000u, 0x94000000u); in PatchCall() 160 SetInsn(code, literal_offset, insn); in PatchCall() 163 void Arm64RelativePatcher::PatchPcRelativeReference(std::vector<uint8_t>* code, in PatchPcRelativeReference() argument 170 uint32_t insn = GetInsn(code, literal_offset); in PatchPcRelativeReference() 181 DCHECK(NeedsErratum843419Thunk(ArrayRef<const uint8_t>(*code), in PatchPcRelativeReference() [all …]
|
D | relative_patcher_arm64.h | 36 void PatchCall(std::vector<uint8_t>* code, 40 void PatchPcRelativeReference(std::vector<uint8_t>* code, 49 static bool NeedsErratum843419Thunk(ArrayRef<const uint8_t> code, uint32_t literal_offset, 51 void SetInsn(std::vector<uint8_t>* code, uint32_t offset, uint32_t value); 52 static uint32_t GetInsn(ArrayRef<const uint8_t> code, uint32_t offset); 55 static uint32_t GetInsn(std::vector<uint8_t, Alloc>* code, uint32_t offset);
|
/art/compiler/utils/arm64/ |
D | assembler_arm64.h | 226 static vixl::Register reg_x(int code) { in reg_x() argument 227 CHECK(code < kNumberOfXRegisters) << code; in reg_x() 228 if (code == SP) { in reg_x() 230 } else if (code == XZR) { in reg_x() 233 return vixl::Register::XRegFromCode(code); in reg_x() 236 static vixl::Register reg_w(int code) { in reg_w() argument 237 CHECK(code < kNumberOfWRegisters) << code; in reg_w() 238 if (code == WSP) { in reg_w() 240 } else if (code == WZR) { in reg_w() 243 return vixl::Register::WRegFromCode(code); in reg_w() [all …]
|
/art/compiler/linker/x86_64/ |
D | relative_patcher_x86_64.cc | 24 void X86_64RelativePatcher::PatchPcRelativeReference(std::vector<uint8_t>* code, in PatchPcRelativeReference() argument 28 DCHECK_LE(patch.LiteralOffset() + 4u, code->size()); in PatchPcRelativeReference() 34 reinterpret_cast<unaligned_int32_t*>(&(*code)[patch.LiteralOffset()])[0] = displacement; in PatchPcRelativeReference()
|
/art/compiler/trampolines/ |
D | trampoline_compiler.cc | 72 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline() local 73 __ FinalizeInstructions(code); in CreateTrampoline() 111 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline() local 112 __ FinalizeInstructions(code); in CreateTrampoline() 143 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline() local 144 __ FinalizeInstructions(code); in CreateTrampoline() 175 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline() local 176 __ FinalizeInstructions(code); in CreateTrampoline() 196 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline() local 197 __ FinalizeInstructions(code); in CreateTrampoline() [all …]
|
/art/compiler/linker/ |
D | relative_patcher_test.h | 85 const ArrayRef<const uint8_t>& code, in AddCompiledMethod() argument 91 code, in AddCompiledMethod() 115 const auto code = compiled_method->GetQuickCode(); in Link() local 116 offset += code.size(); in Link() 147 ArrayRef<const uint8_t> code = compiled_method->GetQuickCode(); in Link() local 149 patched_code_.assign(code.begin(), code.end()); in Link() 150 code = ArrayRef<const uint8_t>(patched_code_); in Link() 176 out_.WriteFully(&code[0], code.size()); in Link() 177 offset += code.size(); in Link()
|
D | multi_oat_relative_patcher.h | 96 void PatchCall(std::vector<uint8_t>* code, in PatchCall() argument 102 relative_patcher_->PatchCall(code, literal_offset, patch_offset, target_offset); in PatchCall() 106 void PatchPcRelativeReference(std::vector<uint8_t>* code, in PatchPcRelativeReference() argument 112 relative_patcher_->PatchPcRelativeReference(code, patch, patch_offset, target_offset); in PatchPcRelativeReference()
|
/art/test/147-stripped-dex-fallback/ |
D | info.txt | 1 Verify that we fallback to running out of dex code in the oat file if there is 2 no image and the original dex code has been stripped.
|
/art/test/076-boolean-put/ |
D | info.txt | 1 This checks a case where javac generates code that stores a byte into a 2 boolean field. The code as generated should not pass the verifier, so the
|
/art/test/090-loop-formation/ |
D | info.txt | 1 Test loop formation heuristics and code generation. Basically the problem to 2 catch here is to make sure that some never-exercised code blocks are included
|
/art/compiler/optimizing/ |
D | common_arm64.h | 35 static inline int VIXLRegCodeFromART(int code) { in VIXLRegCodeFromART() argument 36 if (code == SP) { in VIXLRegCodeFromART() 39 if (code == XZR) { in VIXLRegCodeFromART() 42 return code; in VIXLRegCodeFromART() 45 static inline int ARTRegCodeFromVIXL(int code) { in ARTRegCodeFromVIXL() argument 46 if (code == vixl::kSPRegInternalCode) { in ARTRegCodeFromVIXL() 49 if (code == vixl::kZeroRegCode) { in ARTRegCodeFromVIXL() 52 return code; in ARTRegCodeFromVIXL() 173 return Location::RegisterLocation(ARTRegCodeFromVIXL(reg.code())); in LocationFrom() 177 return Location::FpuRegisterLocation(fpreg.code()); in LocationFrom()
|
/art/runtime/arch/x86_64/ |
D | thread_x86_64.cc | 33 static void arch_prctl(int code, void* val) { in arch_prctl() argument 34 syscall(__NR_arch_prctl, code, val); in arch_prctl()
|
/art/runtime/openjdkjvm/ |
D | NOTICE | 11 This code is free software; you can redistribute it and/or modify it 15 by Oracle in the LICENSE file that accompanied this code. 17 This code is distributed in the hope that it will be useful, but WITHOUT 21 accompanied this code).
|
/art/compiler/driver/ |
D | compiler_driver_test.cc | 220 const void* code = m.GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F() local 221 ASSERT_NE(code, nullptr); in TEST_F() 224 EXPECT_FALSE(class_linker->IsQuickToInterpreterBridge(code)); in TEST_F() 226 EXPECT_TRUE(class_linker->IsQuickToInterpreterBridge(code)); in TEST_F() 277 const void* code = m.GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in CheckCompiledMethods() local 278 ASSERT_NE(code, nullptr); in CheckCompiledMethods() 281 EXPECT_FALSE(class_linker->IsQuickToInterpreterBridge(code)); in CheckCompiledMethods() 283 EXPECT_TRUE(class_linker->IsQuickToInterpreterBridge(code)); in CheckCompiledMethods()
|
/art/runtime/base/unix_file/ |
D | README | 10 This code will not log, because it can't know whether that's appropriate in 13 This code will, in general, return -errno on failure. If an operation consisted
|
/art/runtime/jit/ |
D | jit_code_cache.cc | 202 const uint8_t* code, in CommitCode() argument 211 code, in CommitCode() 223 code, in CommitCode() 239 static uintptr_t FromCodeToAllocation(const void* code) { in FromCodeToAllocation() argument 241 return reinterpret_cast<uintptr_t>(code) - RoundUp(sizeof(OatQuickMethodHeader), alignment); in FromCodeToAllocation() 313 const uint8_t* code, in CommitCodeInternal() argument 336 std::copy(code, code + code_size, code_ptr); in CommitCodeInternal() 452 const void* code = method_header->GetCode(); in VisitFrame() local 453 if (code_cache_->ContainsPc(code)) { in VisitFrame() 455 bitmap_->AtomicTestAndSet(FromCodeToAllocation(code)); in VisitFrame() [all …]
|