Lines Matching refs:opcode

54 constexpr bool IsInstructionDirectConst(Instruction::Code opcode) {  in IsInstructionDirectConst()  argument
55 return Instruction::CONST_4 <= opcode && opcode <= Instruction::CONST_WIDE_HIGH16; in IsInstructionDirectConst()
58 constexpr bool IsInstructionConstWide(Instruction::Code opcode) { in IsInstructionConstWide() argument
59 return Instruction::CONST_WIDE_16 <= opcode && opcode <= Instruction::CONST_WIDE_HIGH16; in IsInstructionConstWide()
62 constexpr bool IsInstructionReturn(Instruction::Code opcode) { in IsInstructionReturn() argument
63 return Instruction::RETURN_VOID <= opcode && opcode <= Instruction::RETURN_OBJECT; in IsInstructionReturn()
66 constexpr bool IsInstructionInvoke(Instruction::Code opcode) { in IsInstructionInvoke() argument
67 return Instruction::INVOKE_VIRTUAL <= opcode && opcode <= Instruction::INVOKE_INTERFACE_RANGE && in IsInstructionInvoke()
68 opcode != Instruction::RETURN_VOID_NO_BARRIER; in IsInstructionInvoke()
71 constexpr bool IsInstructionQuickInvoke(Instruction::Code opcode) { in IsInstructionQuickInvoke() argument
72 return opcode == Instruction::INVOKE_VIRTUAL_QUICK || in IsInstructionQuickInvoke()
73 opcode == Instruction::INVOKE_VIRTUAL_RANGE_QUICK; in IsInstructionQuickInvoke()
76 constexpr bool IsInstructionInvokeStatic(Instruction::Code opcode) { in IsInstructionInvokeStatic() argument
77 return opcode == Instruction::INVOKE_STATIC || opcode == Instruction::INVOKE_STATIC_RANGE; in IsInstructionInvokeStatic()
80 constexpr bool IsInstructionGoto(Instruction::Code opcode) { in IsInstructionGoto() argument
81 return Instruction::GOTO <= opcode && opcode <= Instruction::GOTO_32; in IsInstructionGoto()
84 constexpr bool IsInstructionIfCc(Instruction::Code opcode) { in IsInstructionIfCc() argument
85 return Instruction::IF_EQ <= opcode && opcode <= Instruction::IF_LE; in IsInstructionIfCc()
88 constexpr bool IsInstructionIfCcZ(Instruction::Code opcode) { in IsInstructionIfCcZ() argument
89 return Instruction::IF_EQZ <= opcode && opcode <= Instruction::IF_LEZ; in IsInstructionIfCcZ()
137 constexpr bool IsInvokeInstructionRange(Instruction::Code opcode) { in IsInvokeInstructionRange() argument
138 DCHECK(IsInstructionInvoke(opcode)); in IsInvokeInstructionRange()
139 return opcode >= Instruction::INVOKE_VIRTUAL_RANGE; in IsInvokeInstructionRange()
142 constexpr DexInvokeType InvokeInstructionType(Instruction::Code opcode) { in InvokeInstructionType() argument
143 DCHECK(IsInstructionInvoke(opcode)); in InvokeInstructionType()
144 return static_cast<DexInvokeType>(IsInvokeInstructionRange(opcode) in InvokeInstructionType()
145 ? (opcode - Instruction::INVOKE_VIRTUAL_RANGE) in InvokeInstructionType()
146 : (opcode - Instruction::INVOKE_VIRTUAL)); in InvokeInstructionType()