Lines Matching refs:code

56 void Thumb2RelativePatcher::PatchCall(std::vector<uint8_t>* code,  in PatchCall()  argument
63 PatchBl(code, literal_offset, displacement); in PatchCall()
66 void Thumb2RelativePatcher::PatchPcRelativeReference(std::vector<uint8_t>* code, in PatchPcRelativeReference() argument
75 uint32_t insn = GetInsn32(code, literal_offset); in PatchPcRelativeReference()
83 SetInsn32(code, literal_offset, insn); in PatchPcRelativeReference()
86 void Thumb2RelativePatcher::PatchEntrypointCall(std::vector<uint8_t>* code, in PatchEntrypointCall() argument
94 PatchBl(code, patch.LiteralOffset(), displacement); in PatchEntrypointCall()
97 void Thumb2RelativePatcher::PatchBakerReadBarrierBranch(std::vector<uint8_t>* code, in PatchBakerReadBarrierBranch() argument
103 DCHECK_LT(literal_offset, code->size()); in PatchBakerReadBarrierBranch()
104 uint32_t insn = GetInsn32(code, literal_offset); in PatchBakerReadBarrierBranch()
116 SetInsn32(code, literal_offset, insn); in PatchBakerReadBarrierBranch()
139 void Thumb2RelativePatcher::PatchBl(std::vector<uint8_t>* code, in PatchBl() argument
156 DCHECK_EQ(GetInsn32(code, literal_offset) & 0xf800d000, 0xf000d000); in PatchBl()
158 SetInsn32(code, literal_offset, value); in PatchBl()
161 void Thumb2RelativePatcher::SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value) { in SetInsn32() argument
162 DCHECK_LE(offset + 4u, code->size()); in SetInsn32()
164 uint8_t* addr = &(*code)[offset]; in SetInsn32()
171 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn32() argument
172 DCHECK_LE(offset + 4u, code.size()); in GetInsn32()
174 const uint8_t* addr = &code[offset]; in GetInsn32()
183 uint32_t Thumb2RelativePatcher::GetInsn32(Vector* code, uint32_t offset) { in GetInsn32() argument
185 return GetInsn32(ArrayRef<const uint8_t>(*code), offset); in GetInsn32()
188 uint32_t Thumb2RelativePatcher::GetInsn16(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn16() argument
189 DCHECK_LE(offset + 2u, code.size()); in GetInsn16()
191 const uint8_t* addr = &code[offset]; in GetInsn16()
196 uint32_t Thumb2RelativePatcher::GetInsn16(Vector* code, uint32_t offset) { in GetInsn16() argument
198 return GetInsn16(ArrayRef<const uint8_t>(*code), offset); in GetInsn16()