Lines Matching refs:dex
35 dex::u4 src_reg, in BoxValue()
36 dex::u4 dst_reg) { in BoxValue()
83 boxing_invoke->opcode = dex::OP_INVOKE_STATIC_RANGE; in BoxValue()
89 move_result->opcode = dex::OP_MOVE_RESULT_OBJECT; in BoxValue()
119 if ((ir_method->access_flags & dex::kAccStatic) == 0) { in Apply()
152 hook_invoke->opcode = dex::OP_INVOKE_STATIC_RANGE; in Apply()
166 bool is_static = (ir_method->access_flags & dex::kAccStatic) != 0; in InjectArrayParamsHook()
179 dex::u4 array_size_reg = *(reg_iterator); in InjectArrayParamsHook()
182 dex::u4 array_reg = *(++reg_iterator); in InjectArrayParamsHook()
184 dex::u4 boxing_reg = needsBoxingReg ? *(++reg_iterator) : 0; in InjectArrayParamsHook()
197 const_size_op->opcode = dex::OP_CONST; in InjectArrayParamsHook()
205 allocate_array_op->opcode = dex::OP_NEW_ARRAY; in InjectArrayParamsHook()
222 dex::u4 current_reg = ir_method->code->registers - ir_method->code->ins_count; in InjectArrayParamsHook()
224 dex::u4 array_index_reg = array_size_reg; in InjectArrayParamsHook()
227 dex::u4 src_reg = 0; in InjectArrayParamsHook()
238 index_const_op->opcode = dex::OP_CONST; in InjectArrayParamsHook()
244 aput_op->opcode = dex::OP_APUT_OBJECT; in InjectArrayParamsHook()
264 hook_invoke->opcode = dex::OP_INVOKE_STATIC_RANGE; in InjectArrayParamsHook()
307 dex::Opcode move_result_opcode = dex::OP_NOP; in Apply()
308 dex::u4 reg = 0; in Apply()
312 case dex::OP_RETURN_VOID: in Apply()
315 case dex::OP_RETURN: in Apply()
317 move_result_opcode = dex::OP_MOVE_RESULT; in Apply()
321 case dex::OP_RETURN_OBJECT: in Apply()
323 move_result_opcode = dex::OP_MOVE_RESULT_OBJECT; in Apply()
327 case dex::OP_RETURN_WIDE: in Apply()
329 move_result_opcode = dex::OP_MOVE_RESULT_WIDE; in Apply()
341 hook_invoke->opcode = dex::OP_INVOKE_STATIC_RANGE; in Apply()
353 if (move_result_opcode != dex::OP_NOP) { in Apply()
361 check_cast->opcode = dex::OP_CHECK_CAST; in Apply()
385 dex::Opcode new_call_opcode = GetNewOpcode(bytecode->opcode); in Apply()
386 if (new_call_opcode == dex::OP_NOP) { in Apply()
427 dex::Opcode DetourVirtualInvoke::GetNewOpcode(dex::Opcode opcode) { in GetNewOpcode()
429 case dex::OP_INVOKE_VIRTUAL: in GetNewOpcode()
430 return dex::OP_INVOKE_STATIC; in GetNewOpcode()
431 case dex::OP_INVOKE_VIRTUAL_RANGE: in GetNewOpcode()
432 return dex::OP_INVOKE_STATIC_RANGE; in GetNewOpcode()
435 return dex::OP_NOP; in GetNewOpcode()
439 dex::Opcode DetourInterfaceInvoke::GetNewOpcode(dex::Opcode opcode) { in GetNewOpcode()
441 case dex::OP_INVOKE_INTERFACE: in GetNewOpcode()
442 return dex::OP_INVOKE_STATIC; in GetNewOpcode()
443 case dex::OP_INVOKE_INTERFACE_RANGE: in GetNewOpcode()
444 return dex::OP_INVOKE_STATIC_RANGE; in GetNewOpcode()
447 return dex::OP_NOP; in GetNewOpcode()
540 if ((ir_method->access_flags & dex::kAccStatic) == 0) { in ShiftParams()
548 const dex::u4 shift = left_to_allocate_; in ShiftParams()
553 const dex::u4 regs = ir_method->code->registers; in ShiftParams()
554 const dex::u4 ins_count = ir_method->code->ins_count; in ShiftParams()
559 dex::u4 reg = regs - ins_count; in ShiftParams()
564 move->opcode = dex::OP_MOVE_OBJECT_16; in ShiftParams()
570 move->opcode = dex::OP_MOVE_16; in ShiftParams()
576 move->opcode = dex::OP_MOVE_WIDE_16; in ShiftParams()
589 void AllocateScratchRegs::Allocate(lir::CodeIr* code_ir, dex::u4 first_reg, int count) { in Allocate()