Home
last modified time | relevance | path

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

/tools/dexter/slicer/
Dcode_ir.cc36 auto ir_code = ir_method->code; in Assemble() local
37 SLICER_CHECK_NE(ir_code, nullptr); in Assemble()
45 bytecode_encoder.Encode(ir_code, dex_ir); in Assemble()
48 if (ir_code->debug_info != nullptr) { in Assemble()
55 try_blocks_encoder.Encode(ir_code, dex_ir); in Assemble()
58 void CodeIr::DisassembleTryBlocks(const ir::Code* ir_code) { in DisassembleTryBlocks() argument
60 for (const auto& tryBlock : ir_code->try_blocks) { in DisassembleTryBlocks()
71 ir_code->catch_handlers.ptr<dex::u1>() + tryBlock.handler_off; in DisassembleTryBlocks()
238 void CodeIr::DisassembleBytecode(const ir::Code* ir_code) { in DisassembleBytecode() argument
239 const dex::u2* begin = ir_code->instructions.begin(); in DisassembleBytecode()
[all …]
Dtryblocks_encoder.cc57 void TryBlocksEncoder::Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir) { in Encode() argument
78 ir_code->try_blocks = {}; in Encode()
79 ir_code->catch_handlers = {}; in Encode()
106 ir_code->try_blocks = slicer::ArrayView<const dex::TryBlock>(tries_ptr, tries_count); in Encode()
107 ir_code->catch_handlers = slicer::MemView(handlers_.data(), handlers_.size()); in Encode()
Dreader.cc710 auto ir_code = dex_ir_->Alloc<ir::Code>(); in ExtractCode() local
712 ir_code->registers = dex_code->registers_size; in ExtractCode()
713 ir_code->ins_count = dex_code->ins_size; in ExtractCode()
714 ir_code->outs_count = dex_code->outs_size; in ExtractCode()
717 ir_code->instructions = in ExtractCode()
722 ParseInstructions(ir_code->instructions); in ExtractCode()
735 ir_code->try_blocks = in ExtractCode()
761 ir_code->catch_handlers = slicer::MemView(handlers_list, ptr - handlers_list); in ExtractCode()
764 ir_code->debug_info = ExtractDebugInfo(dex_code->debug_info_off); in ExtractCode()
766 return ir_code; in ExtractCode()
Dbytecode_encoder.cc656 void BytecodeEncoder::Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir) { in Encode() argument
681 ir_code->instructions = slicer::ArrayView<const dex::u2>( in Encode()
683 ir_code->outs_count = outs_count_; in Encode()
/tools/dexter/slicer/export/slicer/
Dwriter.h216 dex::u4 WriteCode(const ir::Code* ir_code);
230 void WriteTryBlocks(const ir::Code* ir_code);
Dtryblocks_encoder.h39 void Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir);
Dbytecode_encoder.h38 void Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir);
Dcode_ir.h442 void DisassembleBytecode(const ir::Code* ir_code);
443 void DisassembleTryBlocks(const ir::Code* ir_code);