Lines Matching refs:dex_pc

42     for (uint32_t dex_pc = 0;  in dumpMethodCFGImpl()  local
43 dex_pc < code_item->insns_size_in_code_units_; in dumpMethodCFGImpl()
44 dex_pc += inst->SizeInCodeUnits(), inst = inst->Next()) { in dumpMethodCFGImpl()
46 dex_pc_is_branch_target.insert(dex_pc + inst->GetTargetOffset()); in dumpMethodCFGImpl()
48 const uint16_t* insns = code_item->insns_ + dex_pc; in dumpMethodCFGImpl()
64 dex_pc_is_branch_target.insert(dex_pc + offset); in dumpMethodCFGImpl()
78 for (uint32_t dex_pc = 0; in dumpMethodCFGImpl() local
79 dex_pc < code_item->insns_size_in_code_units_; in dumpMethodCFGImpl()
80 dex_pc += inst->SizeInCodeUnits(), inst = inst->Next()) { in dumpMethodCFGImpl()
81 if (dex_pc == 0 || in dumpMethodCFGImpl()
82 (dex_pc_is_branch_target.find(dex_pc) != dex_pc_is_branch_target.end()) || in dumpMethodCFGImpl()
91 dex_pc_to_node_id.insert(std::make_pair(dex_pc, id)); in dumpMethodCFGImpl()
97 dex_pc_to_incl_id.insert(std::make_pair(dex_pc, dex_pc_to_node_id.size() - 1)); in dumpMethodCFGImpl()
107 os << "<" << "p" << dex_pc << ">"; in dumpMethodCFGImpl()
108 os << " 0x" << std::hex << dex_pc << std::dec << ": "; in dumpMethodCFGImpl()
164 for (uint32_t dex_pc = 0; in dumpMethodCFGImpl() local
165 dex_pc < code_item->insns_size_in_code_units_; in dumpMethodCFGImpl()
166 old_dex_pc = dex_pc, dex_pc += inst->SizeInCodeUnits(), inst = inst->Next()) { in dumpMethodCFGImpl()
168 auto it = dex_pc_to_node_id.find(dex_pc); in dumpMethodCFGImpl()
184 block_start_dex_pc = dex_pc; in dumpMethodCFGImpl()
192 << " -> node" << last_node_id << ":p" << dex_pc in dumpMethodCFGImpl()
198 CatchHandlerIterator catch_it(*code_item, dex_pc); in dumpMethodCFGImpl()
211 auto target_it = dex_pc_to_node_id.find(dex_pc + offset); in dumpMethodCFGImpl()
213 taken_edges << " node" << last_node_id << ":p" << dex_pc in dumpMethodCFGImpl()
214 << " -> node" << target_it->second << ":p" << (dex_pc + offset) in dumpMethodCFGImpl()
223 const uint16_t* insns = code_item->insns_ + dex_pc; in dumpMethodCFGImpl()
243 int32_t abs_offset = dex_pc + offset; in dumpMethodCFGImpl()
247 taken_edges << " node" << last_node_id << ":p" << dex_pc in dumpMethodCFGImpl()
255 if (block_start_dex_pc != dex_pc) { in dumpMethodCFGImpl()
257 CatchHandlerIterator catch_it(*code_item, dex_pc); in dumpMethodCFGImpl()
293 for (uint32_t dex_pc : blocks_with_detailed_exceptions) { in dumpMethodCFGImpl() local
294 const Instruction* inst = Instruction::At(&code_item->insns_[dex_pc]); in dumpMethodCFGImpl()
295 uint32_t this_node_id = dex_pc_to_incl_id.find(dex_pc)->second; in dumpMethodCFGImpl()
297 CatchHandlerIterator catch_it(*code_item, dex_pc); in dumpMethodCFGImpl()
306 exception_edges << " node" << this_node_id << ":p" << dex_pc in dumpMethodCFGImpl()
322 dex_pc += inst->SizeInCodeUnits(); in dumpMethodCFGImpl()
323 if (dex_pc >= code_item->insns_size_in_code_units_) { in dumpMethodCFGImpl()
326 if (dex_pc_to_node_id.find(dex_pc) != dex_pc_to_node_id.end()) { in dumpMethodCFGImpl()