Home
last modified time | relevance | path

Searched refs:dex_code (Results 1 – 2 of 2) sorted by relevance

/tools/dexter/slicer/
Dreader.cc708 auto dex_code = dataPtr<dex::Code>(offset); in ExtractCode() local
711 ir_code->registers = dex_code->registers_size; in ExtractCode()
712 ir_code->ins_count = dex_code->ins_size; in ExtractCode()
713 ir_code->outs_count = dex_code->outs_size; in ExtractCode()
717 slicer::ArrayView<const dex::u2>(dex_code->insns, dex_code->insns_size); in ExtractCode()
727 if (dex_code->tries_size != 0) { in ExtractCode()
728 dex::u4 aligned_count = (dex_code->insns_size + 1) / 2 * 2; in ExtractCode()
730 reinterpret_cast<const dex::TryBlock*>(dex_code->insns + aligned_count); in ExtractCode()
732 reinterpret_cast<const dex::u1*>(tries + dex_code->tries_size); in ExtractCode()
735 slicer::ArrayView<const dex::TryBlock>(tries, dex_code->tries_size); in ExtractCode()
[all …]
Dwriter.cc959 dex::Code dex_code = {}; in WriteCode() local
960 dex_code.registers_size = irCode->registers; in WriteCode()
961 dex_code.ins_size = irCode->ins_count; in WriteCode()
962 dex_code.outs_size = irCode->outs_count; in WriteCode()
963 dex_code.tries_size = irCode->try_blocks.size(); in WriteCode()
964 dex_code.debug_info_off = FilePointer(irCode->debug_info); in WriteCode()
965 dex_code.insns_size = irCode->instructions.size(); in WriteCode()
969 data.Push(&dex_code, offsetof(dex::Code, insns)); in WriteCode()