Lines Matching refs:ir

172 DexBuilder::DexBuilder() : dex_file_{std::make_shared<ir::DexFile>()} {  in DexBuilder()
183 ir::String* DexBuilder::GetOrAddString(const std::string& string) { in GetOrAddString()
184 ir::String*& entry = strings_[string]; in GetOrAddString()
197 entry = Alloc<ir::String>(); in GetOrAddString()
209 auto* class_def = Alloc<ir::Class>(); in MakeClass()
210 ir::Type* type_def = GetOrAddType(art::DotToDescriptor(name.c_str())); in MakeClass()
219 ir::Type* DexBuilder::GetOrAddType(const std::string& descriptor) { in GetOrAddType()
224 ir::Type* type = Alloc<ir::Type>(); in GetOrAddType()
232 ir::Proto* Prototype::Encode(DexBuilder* dex) const { in Encode()
233 auto* proto = dex->Alloc<ir::Proto>(); in Encode()
237 proto->param_types = dex->Alloc<ir::TypeList>(); in Encode()
261 ClassBuilder::ClassBuilder(DexBuilder* parent, const std::string& name, ir::Class* class_def) in ClassBuilder()
265 ir::MethodDecl* decl = parent_->GetOrDeclareMethod(type_descriptor_, name, prototype).decl; in CreateMethod()
274 MethodBuilder::MethodBuilder(DexBuilder* dex, ir::Class* class_def, ir::MethodDecl* decl) in MethodBuilder()
277 ir::EncodedMethod* MethodBuilder::Encode() { in Encode()
278 auto* method = dex_->Alloc<ir::EncodedMethod>(); in Encode()
284 auto* code = dex_->Alloc<ir::Code>(); in Encode()
325 const ir::String* const dex_string = dex_->GetOrAddString(value); in BuildConstString()
564 ir::MethodDecl* decl = dex_file_->Alloc<ir::MethodDecl>(); in GetOrDeclareMethod()
568 ir::String* dex_name{GetOrAddString(name)}; in GetOrDeclareMethod()
595 ir::Proto* DexBuilder::GetOrEncodeProto(Prototype prototype) { in GetOrEncodeProto()
596 ir::Proto*& ir_proto = proto_map_[prototype]; in GetOrEncodeProto()