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()
161 void GenerateShiftParamsCode(lir::CodeIr* code_ir, lir::Instruction* position, dex::u4 shift) { in GenerateShiftParamsCode()
167 if ((ir_method->access_flags & dex::kAccStatic) == 0) { in GenerateShiftParamsCode()
175 const dex::u4 regs = ir_method->code->registers; in GenerateShiftParamsCode()
176 const dex::u4 ins_count = ir_method->code->ins_count; in GenerateShiftParamsCode()
180 dex::u4 reg = regs - ins_count; in GenerateShiftParamsCode()
185 move->opcode = dex::OP_MOVE_OBJECT_16; in GenerateShiftParamsCode()
191 move->opcode = dex::OP_MOVE_16; in GenerateShiftParamsCode()
197 move->opcode = dex::OP_MOVE_WIDE_16; in GenerateShiftParamsCode()
214 bool is_static = (ir_method->access_flags & dex::kAccStatic) != 0; in InjectArrayParamsHook()
222 dex::u2 regs_count = 2 + needsBoxingReg; in InjectArrayParamsHook()
237 dex::u4 array_size_reg = 0; in InjectArrayParamsHook()
240 dex::u4 array_reg = 1; in InjectArrayParamsHook()
242 dex::u4 boxing_reg = needsBoxingReg ? 2 : 0; in InjectArrayParamsHook()
245 const_size_op->opcode = dex::OP_CONST; in InjectArrayParamsHook()
253 allocate_array_op->opcode = dex::OP_NEW_ARRAY; in InjectArrayParamsHook()
270 dex::u4 current_reg = ir_method->code->registers - ir_method->code->ins_count; in InjectArrayParamsHook()
272 dex::u4 array_index_reg = array_size_reg; in InjectArrayParamsHook()
275 dex::u4 src_reg = 0; in InjectArrayParamsHook()
286 index_const_op->opcode = dex::OP_CONST; in InjectArrayParamsHook()
292 aput_op->opcode = dex::OP_APUT_OBJECT; in InjectArrayParamsHook()
312 hook_invoke->opcode = dex::OP_INVOKE_STATIC_RANGE; in InjectArrayParamsHook()
320 for (dex::u2 i = 0; i < regs_count; ++i) { in InjectArrayParamsHook()
322 cleanup->opcode = dex::OP_CONST; in InjectArrayParamsHook()
371 dex::Opcode move_result_opcode = dex::OP_NOP; in Apply()
372 dex::u4 reg = 0; in Apply()
376 case dex::OP_RETURN_VOID: in Apply()
379 case dex::OP_RETURN: in Apply()
381 move_result_opcode = dex::OP_MOVE_RESULT; in Apply()
385 case dex::OP_RETURN_OBJECT: in Apply()
387 move_result_opcode = dex::OP_MOVE_RESULT_OBJECT; in Apply()
391 case dex::OP_RETURN_WIDE: in Apply()
393 move_result_opcode = dex::OP_MOVE_RESULT_WIDE; in Apply()
405 hook_invoke->opcode = dex::OP_INVOKE_STATIC_RANGE; in Apply()
417 if (move_result_opcode != dex::OP_NOP) { in Apply()
425 check_cast->opcode = dex::OP_CHECK_CAST; in Apply()
449 dex::Opcode new_call_opcode = GetNewOpcode(bytecode->opcode); in Apply()
450 if (new_call_opcode == dex::OP_NOP) { in Apply()
491 dex::Opcode DetourVirtualInvoke::GetNewOpcode(dex::Opcode opcode) { in GetNewOpcode()
493 case dex::OP_INVOKE_VIRTUAL: in GetNewOpcode()
494 return dex::OP_INVOKE_STATIC; in GetNewOpcode()
495 case dex::OP_INVOKE_VIRTUAL_RANGE: in GetNewOpcode()
496 return dex::OP_INVOKE_STATIC_RANGE; in GetNewOpcode()
499 return dex::OP_NOP; in GetNewOpcode()
503 dex::Opcode DetourInterfaceInvoke::GetNewOpcode(dex::Opcode opcode) { in GetNewOpcode()
505 case dex::OP_INVOKE_INTERFACE: in GetNewOpcode()
506 return dex::OP_INVOKE_STATIC; in GetNewOpcode()
507 case dex::OP_INVOKE_INTERFACE_RANGE: in GetNewOpcode()
508 return dex::OP_INVOKE_STATIC_RANGE; in GetNewOpcode()
511 return dex::OP_NOP; in GetNewOpcode()
601 const dex::u4 shift = left_to_allocate_; in ShiftParams()
611 void AllocateScratchRegs::Allocate(lir::CodeIr* code_ir, dex::u4 first_reg, int count) { in Allocate()