Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 12 of 12) sorted by relevance

/tools/dexter/slicer/
Dbytecode_encoder.cc96 auto verify_flags = dex::GetVerifyFlagsFromOpcode(bytecode->opcode); in GetRegA()
105 auto verify_flags = dex::GetVerifyFlagsFromOpcode(bytecode->opcode); in GetRegB()
114 auto verify_flags = dex::GetVerifyFlagsFromOpcode(bytecode->opcode); in GetRegC()
127 dex::Opcode opcode = bytecode->opcode; in Visit() local
132 if (opcode == dex::OP_GOTO) { in Visit()
133 opcode = dex::OP_GOTO_16; in Visit()
137 auto format = dex::GetFormatFromOpcode(opcode); in Visit()
143 bytecode_.Push<dex::u2>(Pack_Z_8(opcode)); in Visit()
151 bytecode_.Push<dex::u2>(Pack_4_4_8(vB, vA, opcode)); in Visit()
159 bytecode_.Push<dex::u2>(Pack_8_8(vA, opcode)); in Visit()
[all …]
Ddex_bytecode.cc26 Opcode opcode = Opcode(bytecode & 0xff); in OpcodeFromBytecode() local
27 return opcode; in OpcodeFromBytecode()
46 InstructionIndexType GetIndexTypeFromOpcode(Opcode opcode) { in GetIndexTypeFromOpcode() argument
47 return gInstructionDescriptors[opcode].index_type; in GetIndexTypeFromOpcode()
50 InstructionFormat GetFormatFromOpcode(Opcode opcode) { in GetFormatFromOpcode() argument
51 return gInstructionDescriptors[opcode].format; in GetFormatFromOpcode()
54 OpcodeFlags GetFlagsFromOpcode(Opcode opcode) { in GetFlagsFromOpcode() argument
55 return gInstructionDescriptors[opcode].flags; in GetFlagsFromOpcode()
58 VerifyFlags GetVerifyFlagsFromOpcode(Opcode opcode) { in GetVerifyFlagsFromOpcode() argument
59 return gInstructionDescriptors[opcode].verify_flags; in GetVerifyFlagsFromOpcode()
[all …]
Dinstrumentation.cc83 boxing_invoke->opcode = dex::OP_INVOKE_STATIC_RANGE; in BoxValue()
89 move_result->opcode = dex::OP_MOVE_RESULT_OBJECT; in BoxValue()
157 hook_invoke->opcode = dex::OP_INVOKE_STATIC_RANGE; in Apply()
190 move->opcode = dex::OP_MOVE_OBJECT_16; in GenerateShiftParamsCode()
196 move->opcode = dex::OP_MOVE_16; in GenerateShiftParamsCode()
202 move->opcode = dex::OP_MOVE_WIDE_16; in GenerateShiftParamsCode()
246 const_size_op->opcode = dex::OP_CONST; in InjectArrayParamsHook()
255 allocate_array_op->opcode = dex::OP_NEW_ARRAY; in InjectArrayParamsHook()
283 const_str_op->opcode = dex::OP_CONST_STRING; in InjectArrayParamsHook()
300 index_const_op->opcode = dex::OP_CONST; in InjectArrayParamsHook()
[all …]
Dcode_ir.cc146 dex::u1 opcode = 0; in DissasembleDebugInfo() local
147 while ((opcode = *ptr++) != dex::DBG_END_SEQUENCE) { in DissasembleDebugInfo()
150 switch (opcode) { in DissasembleDebugInfo()
163 annotation = Alloc<DbgInfoAnnotation>(opcode); in DissasembleDebugInfo()
178 annotation = Alloc<DbgInfoAnnotation>(opcode); in DissasembleDebugInfo()
198 annotation = Alloc<DbgInfoAnnotation>(opcode); in DissasembleDebugInfo()
204 annotation = Alloc<DbgInfoAnnotation>(opcode); in DissasembleDebugInfo()
208 annotation = Alloc<DbgInfoAnnotation>(opcode); in DissasembleDebugInfo()
212 annotation = Alloc<DbgInfoAnnotation>(opcode); in DissasembleDebugInfo()
223 int adjusted_opcode = opcode - dex::DBG_FIRST_SPECIAL; in DissasembleDebugInfo()
[all …]
Dwriter.cc764 dex::u1 opcode = 0; in WriteDebugInfo() local
765 while ((opcode = *src++) != dex::DBG_END_SEQUENCE) { in WriteDebugInfo()
766 data.Push<dex::u1>(opcode); in WriteDebugInfo()
768 switch (opcode) { in WriteDebugInfo()
831 auto opcode = dex::OpcodeFromBytecode(*ptr); in WriteInstructions() local
835 switch (dex::GetFormatFromOpcode(opcode)) { in WriteInstructions()
852 switch (dex::GetIndexTypeFromOpcode(opcode)) { in WriteInstructions()
Dcontrol_flow_graph.cc56 const auto flags = dex::GetFlagsFromOpcode(bytecode->opcode); in Visit()
69 terminate_block = bytecode->opcode == dex::OP_THROW || (flags & exit_instr_flags) != 0; in Visit()
Dreader.cc633 dex::u1 opcode = 0; in ExtractDebugInfo() local
634 while ((opcode = *ptr++) != dex::DBG_END_SEQUENCE) { in ExtractDebugInfo()
635 switch (opcode) { in ExtractDebugInfo()
884 switch (dex::GetFormatFromOpcode(dex_instr.opcode)) { in ParseInstructions()
901 switch (GetIndexTypeFromOpcode(dex_instr.opcode)) { in ParseInstructions()
/tools/dexter/slicer/export/slicer/
Ddex_bytecode.h40 #define INSTRUCTION_ENUM(opcode, cname, ...) OP_##cname = (opcode), argument
153 Opcode opcode; // instruction opcode member
191 const char* GetOpcodeName(Opcode opcode);
194 InstructionIndexType GetIndexTypeFromOpcode(Opcode opcode);
197 InstructionFormat GetFormatFromOpcode(Opcode opcode);
200 OpcodeFlags GetFlagsFromOpcode(Opcode opcode);
203 VerifyFlags GetVerifyFlagsFromOpcode(Opcode opcode);
Dinstrumentation.h141 virtual dex::Opcode GetNewOpcode(dex::Opcode opcode) = 0;
153 virtual dex::Opcode GetNewOpcode(dex::Opcode opcode) override;
165 virtual dex::Opcode GetNewOpcode(dex::Opcode opcode) override;
Dcode_ir.h301 dex::Opcode opcode = dex::OP_NOP; member
/tools/dexter/dexter/
Dexperimental.cc74 switch (bytecode->opcode) { in StressWrapInvoke()
108 new_call->opcode = new_call_opcode; in StressWrapInvoke()
174 call->opcode = dex::OP_INVOKE_STATIC_RANGE; in StressEntryHook()
237 switch (bytecode->opcode) { in StressExitHook()
267 call->opcode = dex::OP_INVOKE_STATIC_RANGE; in StressExitHook()
281 move_result->opcode = move_result_opcode; in StressExitHook()
413 auto opcode = static_cast<lir::Bytecode*>(trace_point)->opcode; in CodeCoverage() local
414 if (opcode == dex::OP_MOVE_RESULT || in CodeCoverage()
415 opcode == dex::OP_MOVE_RESULT_WIDE || in CodeCoverage()
416 opcode == dex::OP_MOVE_RESULT_OBJECT) { in CodeCoverage()
[all …]
Ddissasembler.cc64 printf("\t%5u| %s", bytecode->offset, dex::GetOpcodeName(bytecode->opcode)); in Visit()