Home
last modified time | relevance | path

Searched refs:ir_method (Results 1 – 12 of 12) sorted by relevance

/tools/dexter/dexter/
Dexperimental.cc34 for (auto& ir_method : dex_ir->encoded_methods) { in FullRewrite() local
35 if (ir_method->code != nullptr) { in FullRewrite()
36 lir::CodeIr code_ir(ir_method.get(), dex_ir); in FullRewrite()
50 for (auto& ir_method : dex_ir->encoded_methods) { in StressWrapInvoke() local
51 if (ir_method->code == nullptr) { in StressWrapInvoke()
55 lir::CodeIr code_ir(ir_method.get(), dex_ir); in StressWrapInvoke()
87 auto orig_method = bytecode->CastOperand<lir::Method>(1)->ir_method; in StressWrapInvoke()
140 for (auto& ir_method : dex_ir->encoded_methods) { in StressEntryHook() local
141 if (ir_method->code == nullptr) { in StressEntryHook()
145 lir::CodeIr code_ir(ir_method.get(), dex_ir); in StressEntryHook()
[all …]
Ddissasembler.cc213 auto ir_method = method->ir_method; in Visit() local
215 ir_method->parent->Decl().c_str(), in Visit()
216 ir_method->name->c_str(), in Visit()
217 MethodDeclaration(ir_method->prototype).c_str()); in Visit()
312 for (auto& ir_method : dex_ir_->encoded_methods) { in DumpAllMethods() local
313 DumpMethod(ir_method.get()); in DumpAllMethods()
317 void DexDissasembler::DumpMethod(ir::EncodedMethod* ir_method) const { in DumpMethod()
319 ir_method->decl->parent->Decl().c_str(), in DumpMethod()
320 ir_method->decl->name->c_str(), in DumpMethod()
321 MethodDeclaration(ir_method->decl->prototype).c_str()); in DumpMethod()
[all …]
Ddissasembler.h81 void DumpMethod(ir::EncodedMethod* ir_method) const;
84 void Dissasemble(ir::EncodedMethod* ir_method) const;
/tools/dexter/slicer/
Dinstrumentation.cc94 std::string MethodLabel(ir::EncodedMethod* ir_method) { in MethodLabel() argument
95 auto signature_str = ir_method->decl->prototype->Signature(); in MethodLabel()
96 return ir_method->decl->parent->Decl() + "->" + ir_method->decl->name->c_str() + signature_str; in MethodLabel()
120 const auto ir_method = code_ir->ir_method; in Apply() local
124 if ((ir_method->access_flags & dex::kAccStatic) == 0) { in Apply()
131 this_argument_type = ir_method->decl->parent; in Apply()
136 if (ir_method->decl->prototype->param_types != nullptr) { in Apply()
137 const auto& orig_param_types = ir_method->decl->prototype->param_types->types; in Apply()
151 auto regs = ir_method->code->registers; in Apply()
152 auto args_count = ir_method->code->ins_count; in Apply()
[all …]
Ddex_ir_builder.cc206 for (const auto& ir_method : dex_ir_->methods) { in GetMethodDecl() local
207 if (ir_method->name == name && in GetMethodDecl()
208 ir_method->prototype == proto && in GetMethodDecl()
209 ir_method->parent == parent) { in GetMethodDecl()
210 return ir_method.get(); in GetMethodDecl()
215 auto ir_method = dex_ir_->Alloc<MethodDecl>(); in GetMethodDecl() local
216 ir_method->name = name; in GetMethodDecl()
217 ir_method->prototype = proto; in GetMethodDecl()
218 ir_method->parent = parent; in GetMethodDecl()
224 ir_node = ir_method; in GetMethodDecl()
[all …]
Ddebuginfo_encoder.cc121 void DebugInfoEncoder::Encode(ir::EncodedMethod* ir_method, std::shared_ptr<ir::DexFile> dex_ir) { in Encode() argument
122 auto ir_debug_info = ir_method->code->debug_info; in Encode()
132 source_file_ = ir_method->decl->parent->class_def->source_file; in Encode()
Dcode_ir.cc37 auto ir_code = ir_method->code; in Assemble()
51 dbginfo_encoder.Encode(ir_method, dex_ir); in Assemble()
117 ir::String* source_file = ir_method->decl->parent->class_def->source_file; in DissasembleDebugInfo()
277 const dex::u2* begin = ir_method->code->instructions.begin(); in FixupSwitches()
326 auto ir_code = ir_method->code; in Dissasemble()
Dreader.cc815 auto ir_method = dex_ir_->Alloc<ir::MethodDecl>(); in ParseMethodDecl() local
817 ir_method->name = GetString(dex_method.name_idx); in ParseMethodDecl()
818 ir_method->prototype = GetProto(dex_method.proto_idx); in ParseMethodDecl()
819 ir_method->parent = GetType(dex_method.class_idx); in ParseMethodDecl()
820 ir_method->orig_index = index; in ParseMethodDecl()
822 return ir_method; in ParseMethodDecl()
Dwriter.cc601 const auto& ir_method = methods[i]; in FillMethods() local
603 dexMethodId->class_idx = ir_method->parent->index; in FillMethods()
604 dexMethodId->proto_idx = ir_method->prototype->index; in FillMethods()
605 dexMethodId->name_idx = ir_method->name->index; in FillMethods()
/tools/dexter/slicer/export/slicer/
Dcode_ir.h213 ir::MethodDecl* ir_method; member
215 Method(ir::MethodDecl* ir_method, dex::u4 index) : IndexedOperand(index), ir_method(ir_method) {} in Method()
400 ir::EncodedMethod* ir_method = nullptr; member
404 CodeIr(ir::EncodedMethod* ir_method, std::shared_ptr<ir::DexFile> dex_ir) in CodeIr()
405 : ir_method(ir_method), dex_ir(dex_ir) { in CodeIr()
Ddebuginfo_encoder.h42 void Encode(ir::EncodedMethod* ir_method, std::shared_ptr<ir::DexFile> dex_ir);
Dinstrumentation.h228 bool InstrumentMethod(ir::EncodedMethod* ir_method);