Home
last modified time | relevance | path

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

12

/tools/dexter/slicer/export/slicer/
Dreader.h60 std::shared_ptr<ir::DexFile> GetIr() const { return dex_ir_; } in GetIr()
67 ir::Class* GetClass(dex::u4 index);
68 ir::Type* GetType(dex::u4 index);
69 ir::FieldDecl* GetFieldDecl(dex::u4 index);
70 ir::MethodDecl* GetMethodDecl(dex::u4 index);
71 ir::Proto* GetProto(dex::u4 index);
72 ir::String* GetString(dex::u4 index);
73 ir::MethodHandle* GetMethodHandle(dex::u4 index);
76 ir::AnnotationsDirectory* ExtractAnnotations(dex::u4 offset);
77 ir::Annotation* ExtractAnnotationItem(dex::u4 offset);
[all …]
Dinstrumentation.h57 explicit EntryHook(const ir::MethodId& hook_method_id, Tweak tweak) in EntryHook()
66 explicit EntryHook(const ir::MethodId& hook_method_id,
75 ir::MethodId hook_method_id_;
97 explicit ExitHook(const ir::MethodId& hook_method_id, Tweak tweak) in ExitHook()
103 explicit ExitHook(const ir::MethodId& hook_method_id) : ExitHook(hook_method_id, Tweak::None) {} in ExitHook()
108 ir::MethodId hook_method_id_;
126 DetourHook(const ir::MethodId& orig_method_id, in DetourHook()
127 const ir::MethodId& detour_method_id) in DetourHook()
137 ir::MethodId orig_method_id_;
138 ir::MethodId detour_method_id_;
[all …]
Dwriter.h181 explicit Writer(std::shared_ptr<ir::DexFile> dex_ir) : dex_ir_(dex_ir) {} in Writer()
213 dex::u4 WriteTypeList(const std::vector<ir::Type*>& types);
214 dex::u4 WriteAnnotationItem(const ir::Annotation* ir_annotation);
215 dex::u4 WriteAnnotationSet(const ir::AnnotationSet* ir_annotation_set);
216 dex::u4 WriteAnnotationSetRefList(const ir::AnnotationSetRefList* ir_annotation_set_ref_list);
217 dex::u4 WriteClassAnnotations(const ir::Class* ir_class);
218 dex::u4 WriteDebugInfo(const ir::DebugInfo* ir_debug_info);
219 dex::u4 WriteCode(const ir::Code* ir_code);
220 dex::u4 WriteClassData(const ir::Class* ir_class);
221 dex::u4 WriteClassStaticValues(const ir::Class* ir_class);
[all …]
Dcode_ir.h193 ir::String* ir_string;
195 String(ir::String* ir_string, dex::u4 index) : IndexedOperand(index), ir_string(ir_string) {} in String()
201 ir::Type* ir_type;
203 Type(ir::Type* ir_type, dex::u4 index) : IndexedOperand(index), ir_type(ir_type) {} in Type()
209 ir::FieldDecl* ir_field;
211 Field(ir::FieldDecl* ir_field, dex::u4 index) : IndexedOperand(index), ir_field(ir_field) {} in Field()
217 ir::MethodDecl* ir_method;
219 Method(ir::MethodDecl* ir_method, dex::u4 index) : IndexedOperand(index), ir_method(ir_method) { in Method()
227 ir::MethodHandle* ir_method_handle;
229 …MethodHandle(ir::MethodHandle* ir_method_handle, dex::u4 index) : IndexedOperand(index), ir_method… in MethodHandle()
[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;
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 {
/tools/dexter/dexter/
Dexperimental.cc34 void FullRewrite(std::shared_ptr<ir::DexFile> dex_ir) { in FullRewrite()
50 void StressWrapInvoke(std::shared_ptr<ir::DexFile> dex_ir) { in StressWrapInvoke()
57 ir::Builder builder(dex_ir); in StressWrapInvoke()
91 std::vector<ir::Type*> param_types; in StressWrapInvoke()
140 void StressEntryHook(std::shared_ptr<ir::DexFile> dex_ir) { in StressEntryHook()
147 ir::Builder builder(dex_ir); in StressEntryHook()
150 std::vector<ir::Type*> param_types; in StressEntryHook()
199 void StressExitHook(std::shared_ptr<ir::DexFile> dex_ir) { in StressExitHook()
206 ir::Builder builder(dex_ir); in StressExitHook()
213 std::vector<ir::Type*> param_types; in StressExitHook()
[all …]
Ddisassembler.h29 PrintCodeIrVisitor(std::shared_ptr<ir::DexFile> dex_ir, lir::ControlFlowGraph* cfg) in PrintCodeIrVisitor()
61 std::shared_ptr<ir::DexFile> dex_ir_;
76 explicit DexDisassembler(std::shared_ptr<ir::DexFile> dex_ir, CfgType cfg_type = CfgType::None)
83 void DumpMethod(ir::EncodedMethod* ir_method) const;
86 void Disassemble(ir::EncodedMethod* ir_method) const;
89 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);
Ddisassembler.cc26 static std::string MethodDeclaration(const ir::Proto* proto) { in MethodDeclaration()
336 void DexDisassembler::DumpMethod(ir::EncodedMethod* ir_method) const { in DumpMethod()
345 void DexDisassembler::Disassemble(ir::EncodedMethod* ir_method) const { in Disassemble()
Ddexter.cc206 static void PrintDexIrStats(std::shared_ptr<const ir::DexFile> dex_ir) { in PrintDexIrStats()
270 bool Dexter::CreateNewImage(std::shared_ptr<ir::DexFile> dex_ir) { in CreateNewImage()
/tools/dexter/slicer/
Dreader.cc36 dex_ir_ = std::make_shared<ir::DexFile>(); in Reader()
146 ir::Class* Reader::GetClass(dex::u4 index) { in GetClass()
149 auto placeholder = reinterpret_cast<ir::Class*>(1); in GetClass()
163 ir::Type* Reader::GetType(dex::u4 index) { in GetType()
166 auto placeholder = reinterpret_cast<ir::Type*>(1); in GetType()
180 ir::FieldDecl* Reader::GetFieldDecl(dex::u4 index) { in GetFieldDecl()
183 auto placeholder = reinterpret_cast<ir::FieldDecl*>(1); in GetFieldDecl()
195 ir::MethodHandle* Reader::GetMethodHandle(dex::u4 index){ in GetMethodHandle()
198 auto placeholder = reinterpret_cast<ir::MethodHandle*>(1); in GetMethodHandle()
213 ir::MethodDecl* Reader::GetMethodDecl(dex::u4 index) { in GetMethodDecl()
[all …]
Dinstrumentation.cc38 ir::Type* type, in BoxValue()
73 ir::Builder builder(code_ir->dex_ir); in BoxValue()
74 std::vector<ir::Type*> param_types; in BoxValue()
98 std::string MethodLabel(ir::EncodedMethod* ir_method) { in MethodLabel()
123 ir::Builder builder(code_ir->dex_ir); in Apply()
127 std::vector<ir::Type*> param_types; in Apply()
129 ir::Type* this_argument_type; in Apply()
180 std::vector<ir::Type*> param_types; in GenerateShiftParamsCode()
198 case ir::Type::Category::Reference: in GenerateShiftParamsCode()
204 case ir::Type::Category::Scalar: in GenerateShiftParamsCode()
[all …]
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()
666 dex::u4 Writer::WriteTypeList(const std::vector<ir::Type*>& types) { in WriteTypeList()
681 dex::u4 Writer::WriteAnnotationItem(const ir::Annotation* ir_annotation) { in WriteAnnotationItem()
692 dex::u4 Writer::WriteAnnotationSet(const ir::AnnotationSet* ir_annotation_set) { in WriteAnnotationSet()
708 const ir::AnnotationSetRefList* ir_annotation_set_ref_list) { in WriteAnnotationSetRefList()
723 dex::u4 Writer::WriteClassAnnotations(const ir::Class* ir_class) { in WriteClassAnnotations()
[all …]
Dtryblocks_encoder.cc57 void TryBlocksEncoder::Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir) { in Encode()
Ddebuginfo_encoder.cc127 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.cc58 void CodeIr::DisassembleTryBlocks(const ir::Code* ir_code) { in DisassembleTryBlocks()
108 void CodeIr::DisassembleDebugInfo(const ir::DebugInfo* ir_debug_info) { in DisassembleDebugInfo()
116 ir::String* source_file = ir_method->decl->parent->class_def->source_file; in DisassembleDebugInfo()
238 void CodeIr::DisassembleBytecode(const ir::Code* ir_code) { in DisassembleBytecode()
Ddex_ir.cc29 namespace ir { namespace
Dbytecode_encoder.cc656 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.java132 try (Reader ir = new BufferedReader(new InputStreamReader(stream))) { in getStringFromStream() argument
134 while ((irChar = ir.read()) != -1) { in getStringFromStream()

12