Lines Matching refs:ir
189 DexBuilder::DexBuilder() : dex_file_{std::make_shared<ir::DexFile>()} { in DexBuilder()
200 ir::String* DexBuilder::GetOrAddString(const std::string& string) { in GetOrAddString()
201 ir::String*& entry = strings_[string]; in GetOrAddString()
214 entry = Alloc<ir::String>(); in GetOrAddString()
226 auto* class_def = Alloc<ir::Class>(); in MakeClass()
227 ir::Type* type_def = GetOrAddType(DotToDescriptor(name.c_str())); in MakeClass()
236 ir::Type* DexBuilder::GetOrAddType(const std::string& descriptor) { in GetOrAddType()
241 ir::Type* type = Alloc<ir::Type>(); in GetOrAddType()
249 ir::FieldDecl* DexBuilder::GetOrAddField(TypeDescriptor parent, const std::string& name, in GetOrAddField()
256 ir::FieldDecl* field = Alloc<ir::FieldDecl>(); in GetOrAddField()
266 ir::Proto* Prototype::Encode(DexBuilder* dex) const { in Encode()
267 auto* proto = dex->Alloc<ir::Proto>(); in Encode()
271 proto->param_types = dex->Alloc<ir::TypeList>(); in Encode()
295 ClassBuilder::ClassBuilder(DexBuilder* parent, const std::string& name, ir::Class* class_def) in ClassBuilder()
299 ir::MethodDecl* decl = parent_->GetOrDeclareMethod(type_descriptor_, name, prototype).decl; in CreateMethod()
308 MethodBuilder::MethodBuilder(DexBuilder* dex, ir::Class* class_def, ir::MethodDecl* decl) in MethodBuilder()
311 ir::EncodedMethod* MethodBuilder::Encode() { in Encode()
312 auto* method = dex_->Alloc<ir::EncodedMethod>(); in Encode()
318 auto* code = dex_->Alloc<ir::Code>(); in Encode()
372 const ir::String* const dex_string = dex_->GetOrAddString(value); in BuildConstString()
664 ir::MethodDecl* decl = dex_file_->Alloc<ir::MethodDecl>(); in GetOrDeclareMethod()
668 ir::String* dex_name{GetOrAddString(name)}; in GetOrDeclareMethod()
695 ir::Proto* DexBuilder::GetOrEncodeProto(Prototype prototype) { in GetOrEncodeProto()
696 ir::Proto*& ir_proto = proto_map_[prototype]; in GetOrEncodeProto()