Home
last modified time | relevance | path

Searched refs:ir (Results 1 – 25 of 26) sorted by relevance

12

/tools/dexter/slicer/export/slicer/
Dreader.h59 std::shared_ptr<ir::DexFile> GetIr() const { return dex_ir_; } in GetIr()
66 ir::Class* GetClass(dex::u4 index);
67 ir::Type* GetType(dex::u4 index);
68 ir::FieldDecl* GetFieldDecl(dex::u4 index);
69 ir::MethodDecl* GetMethodDecl(dex::u4 index);
70 ir::Proto* GetProto(dex::u4 index);
71 ir::String* GetString(dex::u4 index);
74 ir::AnnotationsDirectory* ExtractAnnotations(dex::u4 offset);
75 ir::Annotation* ExtractAnnotationItem(dex::u4 offset);
76 ir::AnnotationSet* ExtractAnnotationSet(dex::u4 offset);
[all …]
Dwriter.h179 explicit Writer(std::shared_ptr<ir::DexFile> dex_ir) : dex_ir_(dex_ir) {} in Writer()
210 dex::u4 WriteTypeList(const std::vector<ir::Type*>& types);
211 dex::u4 WriteAnnotationItem(const ir::Annotation* ir_annotation);
212 dex::u4 WriteAnnotationSet(const ir::AnnotationSet* ir_annotation_set);
213 dex::u4 WriteAnnotationSetRefList(const ir::AnnotationSetRefList* ir_annotation_set_ref_list);
214 dex::u4 WriteClassAnnotations(const ir::Class* ir_class);
215 dex::u4 WriteDebugInfo(const ir::DebugInfo* ir_debug_info);
216 dex::u4 WriteCode(const ir::Code* ir_code);
217 dex::u4 WriteClassData(const ir::Class* ir_class);
218 dex::u4 WriteClassStaticValues(const ir::Class* ir_class);
[all …]
Ddebuginfo_encoder.h42 void Encode(ir::EncodedMethod* ir_method, std::shared_ptr<ir::DexFile> dex_ir);
45 std::vector<ir::String*>* param_names_ = nullptr;
49 ir::String* source_file_ = nullptr;
Dcode_ir.h189 ir::String* ir_string;
191 String(ir::String* ir_string, dex::u4 index) : IndexedOperand(index), ir_string(ir_string) {} in String()
197 ir::Type* ir_type;
199 Type(ir::Type* ir_type, dex::u4 index) : IndexedOperand(index), ir_type(ir_type) {} in Type()
205 ir::FieldDecl* ir_field;
207 Field(ir::FieldDecl* ir_field, dex::u4 index) : IndexedOperand(index), ir_field(ir_field) {} in Field()
213 ir::MethodDecl* ir_method;
215 Method(ir::MethodDecl* ir_method, dex::u4 index) : IndexedOperand(index), ir_method(ir_method) {} in Method()
353 ir::Type* ir_type = nullptr;
366 std::vector<ir::String*> param_names;
[all …]
Ddex_ir_builder.h24 namespace ir {
49 explicit Builder(std::shared_ptr<ir::DexFile> dex_ir) : dex_ir_(dex_ir) {} in Builder()
83 std::shared_ptr<ir::DexFile> dex_ir_;
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);
Dindex_map.h24 namespace ir {
Ddex_ir.h51 namespace ir {
/tools/dexter/dexter/
Dexperimental.cc33 void FullRewrite(std::shared_ptr<ir::DexFile> dex_ir) { in FullRewrite()
49 void StressWrapInvoke(std::shared_ptr<ir::DexFile> dex_ir) { in StressWrapInvoke()
56 ir::Builder builder(dex_ir); in StressWrapInvoke()
90 std::vector<ir::Type*> param_types; in StressWrapInvoke()
139 void StressEntryHook(std::shared_ptr<ir::DexFile> dex_ir) { in StressEntryHook()
146 ir::Builder builder(dex_ir); in StressEntryHook()
149 std::vector<ir::Type*> param_types; in StressEntryHook()
198 void StressExitHook(std::shared_ptr<ir::DexFile> dex_ir) { in StressExitHook()
205 ir::Builder builder(dex_ir); in StressExitHook()
212 std::vector<ir::Type*> param_types; in StressExitHook()
[all …]
Ddissasembler.h29 PrintCodeIrVisitor(std::shared_ptr<ir::DexFile> dex_ir, lir::ControlFlowGraph* cfg) in PrintCodeIrVisitor()
59 std::shared_ptr<ir::DexFile> dex_ir_;
74 explicit DexDissasembler(std::shared_ptr<ir::DexFile> dex_ir, CfgType cfg_type = CfgType::None)
81 void DumpMethod(ir::EncodedMethod* ir_method) const;
84 void Dissasemble(ir::EncodedMethod* ir_method) const;
87 std::shared_ptr<ir::DexFile> dex_ir_;
Dexperimental.h25 void Run(const char* experiment, std::shared_ptr<ir::DexFile> dex_ir);
Ddexter.h43 bool CreateNewImage(std::shared_ptr<ir::DexFile> dex_ir);
Ddissasembler.cc26 static std::string MethodDeclaration(const ir::Proto* proto) { in MethodDeclaration()
317 void DexDissasembler::DumpMethod(ir::EncodedMethod* ir_method) const { in DumpMethod()
326 void DexDissasembler::Dissasemble(ir::EncodedMethod* ir_method) const { in Dissasemble()
Ddexter.cc201 static void PrintDexIrStats(std::shared_ptr<const ir::DexFile> dex_ir) { in PrintDexIrStats()
263 bool Dexter::CreateNewImage(std::shared_ptr<ir::DexFile> dex_ir) { in CreateNewImage()
/tools/dexter/slicer/
Dreader.cc35 dex_ir_ = std::make_shared<ir::DexFile>(); in Reader()
121 ir::Class* Reader::GetClass(dex::u4 index) { in GetClass()
124 auto dummy = reinterpret_cast<ir::Class*>(1); in GetClass()
138 ir::Type* Reader::GetType(dex::u4 index) { in GetType()
141 auto dummy = reinterpret_cast<ir::Type*>(1); in GetType()
155 ir::FieldDecl* Reader::GetFieldDecl(dex::u4 index) { in GetFieldDecl()
158 auto dummy = reinterpret_cast<ir::FieldDecl*>(1); in GetFieldDecl()
172 ir::MethodDecl* Reader::GetMethodDecl(dex::u4 index) { in GetMethodDecl()
175 auto dummy = reinterpret_cast<ir::MethodDecl*>(1); in GetMethodDecl()
189 ir::Proto* Reader::GetProto(dex::u4 index) { in GetProto()
[all …]
Dinstrumentation.cc34 ir::Type* type, in BoxValue()
69 ir::Builder builder(code_ir->dex_ir); in BoxValue()
70 std::vector<ir::Type*> param_types; in BoxValue()
114 ir::Builder builder(code_ir->dex_ir); in Apply()
118 std::vector<ir::Type*> param_types; in Apply()
120 ir::Type* this_argument_type; in Apply()
162 ir::Builder builder(code_ir->dex_ir); in InjectArrayParamsHook()
165 …auto param_types = param_types_list != nullptr ? param_types_list->types : std::vector<ir::Type*>(… in InjectArrayParamsHook()
170 needsBoxingReg |= type->GetCategory() != ir::Type::Category::Reference; in InjectArrayParamsHook()
214 std::vector<ir::Type*> types; in InjectArrayParamsHook()
[all …]
Dtryblocks_encoder.cc58 void TryBlocksEncoder::Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir) { in Encode()
Dwriter.cc97 static void WriteEncodedArray(const ir::EncodedArray* ir_array, Section& data);
98 static void WriteAnnotation(const ir::Annotation* ir_annotation, Section& data);
101 static void WriteEncodedValue(const ir::EncodedValue* ir_value, Section& data) { in WriteEncodedValue()
200 static void WriteAnnotation(const ir::Annotation* ir_annotation, Section& data) { in WriteAnnotation()
210 static void WriteEncodedArray(const ir::EncodedArray* ir_array, Section& data) { in WriteEncodedArray()
631 dex::u4 Writer::WriteTypeList(const std::vector<ir::Type*>& types) { in WriteTypeList()
646 dex::u4 Writer::WriteAnnotationItem(const ir::Annotation* ir_annotation) { in WriteAnnotationItem()
657 dex::u4 Writer::WriteAnnotationSet(const ir::AnnotationSet* ir_annotation_set) { in WriteAnnotationSet()
673 const ir::AnnotationSetRefList* ir_annotation_set_ref_list) { in WriteAnnotationSetRefList()
688 dex::u4 Writer::WriteClassAnnotations(const ir::Class* ir_class) { in WriteClassAnnotations()
[all …]
Ddebuginfo_encoder.cc121 void DebugInfoEncoder::Encode(ir::EncodedMethod* ir_method, std::shared_ptr<ir::DexFile> dex_ir) { in Encode()
Ddex_ir_builder.cc22 namespace ir { namespace
45 ir::MethodKey method_key; in FindMethod()
Dcode_ir.cc59 void CodeIr::DissasembleTryBlocks(const ir::Code* ir_code) { in DissasembleTryBlocks()
109 void CodeIr::DissasembleDebugInfo(const ir::DebugInfo* ir_debug_info) { in DissasembleDebugInfo()
117 ir::String* source_file = ir_method->decl->parent->class_def->source_file; in DissasembleDebugInfo()
239 void CodeIr::DissasembleBytecode(const ir::Code* ir_code) { in DissasembleBytecode()
Ddex_ir.cc30 namespace ir { namespace
Dbytecode_encoder.cc605 void BytecodeEncoder::Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir) { in Encode()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DStreamUtil.java131 try (Reader ir = new BufferedReader(new InputStreamReader(stream))) { in getStringFromStream() argument
133 while ((irChar = ir.read()) != -1) { in getStringFromStream()

12