Lines Matching refs:code
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
97 DCHECK_LE(offset + 4u, code->size()); in SetInsn32()
99 uint8_t* addr = &(*code)[offset]; in SetInsn32()
106 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn32() argument
107 DCHECK_LE(offset + 4u, code.size()); in GetInsn32()
109 const uint8_t* addr = &code[offset]; in GetInsn32()
118 uint32_t Thumb2RelativePatcher::GetInsn32(Vector* code, uint32_t offset) { in GetInsn32() argument
120 return GetInsn32(ArrayRef<const uint8_t>(*code), offset); in GetInsn32()