Home
last modified time | relevance | path

Searched refs:ir_code (Results 1 – 8 of 8) sorted by relevance

/tools/dexter/slicer/
Dcode_ir.cc37 auto ir_code = ir_method->code; in Assemble() local
38 SLICER_CHECK(ir_code != nullptr); in Assemble()
46 bytecode_encoder.Encode(ir_code, dex_ir); in Assemble()
49 if (ir_code->debug_info != nullptr) { in Assemble()
56 try_blocks_encoder.Encode(ir_code, dex_ir); in Assemble()
59 void CodeIr::DissasembleTryBlocks(const ir::Code* ir_code) { in DissasembleTryBlocks() argument
61 for (const auto& tryBlock : ir_code->try_blocks) { in DissasembleTryBlocks()
72 ir_code->catch_handlers.ptr<dex::u1>() + tryBlock.handler_off; in DissasembleTryBlocks()
239 void CodeIr::DissasembleBytecode(const ir::Code* ir_code) { in DissasembleBytecode() argument
240 const dex::u2* begin = ir_code->instructions.begin(); in DissasembleBytecode()
[all …]
Dtryblocks_encoder.cc58 void TryBlocksEncoder::Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir) { in Encode() argument
79 ir_code->try_blocks = {}; in Encode()
80 ir_code->catch_handlers = {}; in Encode()
107 ir_code->try_blocks = slicer::ArrayView<const dex::TryBlock>(tries_ptr, tries_count); in Encode()
108 ir_code->catch_handlers = slicer::MemView(handlers_.data(), handlers_.size()); in Encode()
Dreader.cc709 auto ir_code = dex_ir_->Alloc<ir::Code>(); 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()
716 ir_code->instructions = in ExtractCode()
721 ParseInstructions(ir_code->instructions); in ExtractCode()
734 ir_code->try_blocks = in ExtractCode()
760 ir_code->catch_handlers = slicer::MemView(handlers_list, ptr - handlers_list); in ExtractCode()
763 ir_code->debug_info = ExtractDebugInfo(dex_code->debug_info_off); in ExtractCode()
765 return ir_code; in ExtractCode()
Dbytecode_encoder.cc605 void BytecodeEncoder::Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir) { in Encode() argument
630 ir_code->instructions = slicer::ArrayView<const dex::u2>( in Encode()
632 ir_code->outs_count = outs_count_; in Encode()
/tools/dexter/slicer/export/slicer/
Dwriter.h216 dex::u4 WriteCode(const ir::Code* ir_code);
229 void WriteTryBlocks(const ir::Code* ir_code);
Dtryblocks_encoder.h39 void Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir);
Dcode_ir.h430 void DissasembleBytecode(const ir::Code* ir_code);
431 void DissasembleTryBlocks(const ir::Code* ir_code);
Dbytecode_encoder.h38 void Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir);