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.cc953 dex::Code dex_code = {}; in WriteCode() local
954 dex_code.registers_size = irCode->registers; in WriteCode()
955 dex_code.ins_size = irCode->ins_count; in WriteCode()
956 dex_code.outs_size = irCode->outs_count; in WriteCode()
957 dex_code.tries_size = irCode->try_blocks.size(); in WriteCode()
958 dex_code.debug_info_off = FilePointer(irCode->debug_info); in WriteCode()
959 dex_code.insns_size = irCode->instructions.size(); in WriteCode()
963 data.Push(&dex_code, offsetof(dex::Code, insns)); in WriteCode()