Searched refs:bytecode (Results 1 – 12 of 12) sorted by relevance
/tools/dexter/slicer/ |
D | dex_bytecode.cc | 25 Opcode OpcodeFromBytecode(u2 bytecode) { in OpcodeFromBytecode() argument 26 Opcode opcode = Opcode(bytecode & 0xff); in OpcodeFromBytecode() 104 size_t GetWidthFromBytecode(const u2* bytecode) { in GetWidthFromBytecode() argument 106 if (*bytecode == kPackedSwitchSignature) { in GetWidthFromBytecode() 107 width = 4 + bytecode[1] * 2; in GetWidthFromBytecode() 108 } else if (*bytecode == kSparseSwitchSignature) { in GetWidthFromBytecode() 109 width = 2 + bytecode[1] * 4; in GetWidthFromBytecode() 110 } else if (*bytecode == kArrayDataSignature) { in GetWidthFromBytecode() 111 u2 elemWidth = bytecode[1]; in GetWidthFromBytecode() 112 u4 len = bytecode[2] | (((u4)bytecode[3]) << 16); in GetWidthFromBytecode() [all …]
|
D | bytecode_encoder.cc | 95 static dex::u4 GetRegA(const Bytecode* bytecode, int index) { in GetRegA() argument 96 auto verify_flags = dex::GetVerifyFlagsFromOpcode(bytecode->opcode); in GetRegA() 98 ? bytecode->CastOperand<VRegPair>(index)->base_reg in GetRegA() 99 : bytecode->CastOperand<VReg>(index)->reg; in GetRegA() 104 static dex::u4 GetRegB(const Bytecode* bytecode, int index) { in GetRegB() argument 105 auto verify_flags = dex::GetVerifyFlagsFromOpcode(bytecode->opcode); in GetRegB() 107 ? bytecode->CastOperand<VRegPair>(index)->base_reg in GetRegB() 108 : bytecode->CastOperand<VReg>(index)->reg; in GetRegB() 113 static dex::u4 GetRegC(const Bytecode* bytecode, int index) { in GetRegC() argument 114 auto verify_flags = dex::GetVerifyFlagsFromOpcode(bytecode->opcode); in GetRegC() [all …]
|
D | instrumentation.cc | 26 bool Visit(lir::Bytecode* bytecode) { in Visit() 27 out = bytecode; in Visit() 32 void BoxValue(lir::Bytecode* bytecode, in BoxValue() argument 86 code_ir->instructions.InsertBefore(bytecode, boxing_invoke); in BoxValue() 91 code_ir->instructions.InsertBefore(bytecode, move_result); in BoxValue() 97 lir::Bytecode* bytecode = nullptr; in Apply() local 102 bytecode = visitor.out; in Apply() 103 if (bytecode != nullptr) { in Apply() 107 if (bytecode == nullptr) { in Apply() 111 return InjectArrayParamsHook(code_ir, bytecode); in Apply() [all …]
|
D | control_flow_graph.cc | 40 bool BasicBlocksVisitor::Visit(Bytecode* bytecode) { in Visit() argument 43 StartBlock(bytecode); in Visit() 56 const auto flags = dex::GetFlagsFromOpcode(bytecode->opcode); in Visit() 69 terminate_block = bytecode->opcode == dex::OP_THROW || (flags & exit_instr_flags) != 0; in Visit() 72 EndBlock(bytecode); in Visit()
|
/tools/dexter/dexter/ |
D | experimental.cc | 68 auto bytecode = dynamic_cast<lir::Bytecode*>(instr); in StressWrapInvoke() local 69 if (bytecode == nullptr) { in StressWrapInvoke() 74 switch (bytecode->opcode) { in StressWrapInvoke() 87 auto orig_method = bytecode->CastOperand<lir::Method>(1)->ir_method; in StressWrapInvoke() 109 new_call->operands.push_back(bytecode->operands[0]); in StressWrapInvoke() 111 code_ir.instructions.InsertBefore(bytecode, new_call); in StressWrapInvoke() 120 code_ir.instructions.Remove(bytecode); in StressWrapInvoke() 180 auto bytecode = dynamic_cast<lir::Bytecode*>(instr); in StressEntryHook() local 181 if (bytecode == nullptr) { in StressEntryHook() 184 code_ir.instructions.InsertBefore(bytecode, call); in StressEntryHook() [all …]
|
D | dissasembler.cc | 62 bool PrintCodeIrVisitor::Visit(lir::Bytecode* bytecode) { in Visit() argument 63 StartInstruction(bytecode); in Visit() 64 printf("\t%5u| %s", bytecode->offset, dex::GetOpcodeName(bytecode->opcode)); in Visit() 66 for (auto op : bytecode->operands) { in Visit() 72 EndInstruction(bytecode); in Visit()
|
D | dissasembler.h | 33 virtual bool Visit(lir::Bytecode* bytecode) override;
|
/tools/dexter/slicer/export/slicer/ |
D | dex_bytecode.h | 188 Opcode OpcodeFromBytecode(u2 bytecode); 211 size_t GetWidthFromBytecode(const u2* bytecode); 214 Instruction DecodeInstruction(const u2* bytecode);
|
D | bytecode_encoder.h | 42 virtual bool Visit(Bytecode* bytecode) override;
|
D | control_flow_graph.h | 55 bool Visit(Bytecode* bytecode) override;
|
D | code_ir.h | 83 virtual bool Visit(Bytecode* bytecode) { return false; } in Visit() argument
|
/tools/metalava/ |
D | README.md | 315 android.jar files (e.g. backed by bytecode) or reading previous signature
|