Lines Matching refs:opcode

52 constexpr bool IsInstructionReturn(Instruction::Code opcode) {  in IsInstructionReturn()  argument
53 return Instruction::RETURN_VOID <= opcode && opcode <= Instruction::RETURN_OBJECT; in IsInstructionReturn()
56 constexpr bool IsInstructionInvoke(Instruction::Code opcode) { in IsInstructionInvoke() argument
57 return Instruction::INVOKE_VIRTUAL <= opcode && opcode <= Instruction::INVOKE_INTERFACE_RANGE && in IsInstructionInvoke()
58 opcode != Instruction::RETURN_VOID_NO_BARRIER; in IsInstructionInvoke()
61 constexpr bool IsInstructionQuickInvoke(Instruction::Code opcode) { in IsInstructionQuickInvoke() argument
62 return opcode == Instruction::INVOKE_VIRTUAL_QUICK || in IsInstructionQuickInvoke()
63 opcode == Instruction::INVOKE_VIRTUAL_RANGE_QUICK; in IsInstructionQuickInvoke()
66 constexpr bool IsInstructionInvokeStatic(Instruction::Code opcode) { in IsInstructionInvokeStatic() argument
67 return opcode == Instruction::INVOKE_STATIC || opcode == Instruction::INVOKE_STATIC_RANGE; in IsInstructionInvokeStatic()
70 constexpr bool IsInstructionGoto(Instruction::Code opcode) { in IsInstructionGoto() argument
71 return Instruction::GOTO <= opcode && opcode <= Instruction::GOTO_32; in IsInstructionGoto()
74 constexpr bool IsInstructionIfCc(Instruction::Code opcode) { in IsInstructionIfCc() argument
75 return Instruction::IF_EQ <= opcode && opcode <= Instruction::IF_LE; in IsInstructionIfCc()
78 constexpr bool IsInstructionIfCcZ(Instruction::Code opcode) { in IsInstructionIfCcZ() argument
79 return Instruction::IF_EQZ <= opcode && opcode <= Instruction::IF_LEZ; in IsInstructionIfCcZ()
129 constexpr bool IsInvokeInstructionRange(Instruction::Code opcode) { in IsInvokeInstructionRange() argument
131 DCHECK(IsInstructionInvoke(opcode)); in IsInvokeInstructionRange()
133 return opcode >= Instruction::INVOKE_VIRTUAL_RANGE; in IsInvokeInstructionRange()
136 constexpr DexInvokeType InvokeInstructionType(Instruction::Code opcode) { in InvokeInstructionType() argument
138 DCHECK(IsInstructionInvoke(opcode)); in InvokeInstructionType()
140 return static_cast<DexInvokeType>(IsInvokeInstructionRange(opcode) in InvokeInstructionType()
141 ? (opcode - Instruction::INVOKE_VIRTUAL_RANGE) in InvokeInstructionType()
142 : (opcode - Instruction::INVOKE_VIRTUAL)); in InvokeInstructionType()
147 DCHECK(IsInstructionIGet(opcode)); in IGetMemAccessType()
154 DCHECK(IsInstructionIPut(opcode)); in IPutMemAccessType()
161 DCHECK(IsInstructionSGet(opcode)); in SGetMemAccessType()
168 DCHECK(IsInstructionSPut(opcode)); in SPutMemAccessType()
175 DCHECK(IsInstructionAGet(opcode)); in AGetMemAccessType()
182 DCHECK(IsInstructionAPut(opcode)); in APutMemAccessType()
189 DCHECK(IsInstructionIGetOrIPut(opcode)); in IGetOrIPutMemAccessType()
219 DCHECK(IsInstructionSGetOrSPut(opcode)); in SGetOrSPutMemAccessType()
226 DCHECK(IsInstructionAGetOrAPut(opcode)); in AGetOrAPutMemAccessType()