Lines Matching refs:container
63 std::unordered_map<Type::TypeId, PrimitiveTypeItem *> CreatePrimitiveTypes(ItemContainer *container) in CreatePrimitiveTypes() argument
66 res.insert({Type::TypeId::VOID, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::VOID)}); in CreatePrimitiveTypes()
67 res.insert({Type::TypeId::U1, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U1)}); in CreatePrimitiveTypes()
68 res.insert({Type::TypeId::I8, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::I8)}); in CreatePrimitiveTypes()
69 res.insert({Type::TypeId::U8, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U8)}); in CreatePrimitiveTypes()
70 res.insert({Type::TypeId::I16, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::I16)}); in CreatePrimitiveTypes()
71 res.insert({Type::TypeId::U16, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U16)}); in CreatePrimitiveTypes()
72 res.insert({Type::TypeId::I32, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::I32)}); in CreatePrimitiveTypes()
73 res.insert({Type::TypeId::U32, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U32)}); in CreatePrimitiveTypes()
74 res.insert({Type::TypeId::I64, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::I64)}); in CreatePrimitiveTypes()
75 res.insert({Type::TypeId::U64, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U64)}); in CreatePrimitiveTypes()
76 res.insert({Type::TypeId::F32, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::F32)}); in CreatePrimitiveTypes()
77 res.insert({Type::TypeId::F64, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::F64)}); in CreatePrimitiveTypes()
78 … res.insert({Type::TypeId::TAGGED, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::TAGGED)}); in CreatePrimitiveTypes()
149 ItemContainer *container, const Value *value, std::vector<panda_file::LiteralItem> *out, in CreateLiteralItem() argument
194 …auto *string_item = container->GetOrCreateStringItem(value->GetAsScalar()->GetValue<std::string>()… in CreateLiteralItem()
216 ScalarValueItem *AsmEmitter::CreateScalarStringValueItem(ItemContainer *container, const Value *val… in CreateScalarStringValueItem() argument
219 …auto *string_item = container->GetOrCreateStringItem(value->GetAsScalar()->GetValue<std::string>()… in CreateScalarStringValueItem()
221 out->emplace_back(string_item, container); in CreateScalarStringValueItem()
225 return container->CreateItem<ScalarValueItem>(string_item); in CreateScalarStringValueItem()
230 ItemContainer *container, const Value *value, std::vector<ScalarValueItem> *out, in CreateScalarRecordValueItem() argument
244 class_item = container->GetOrCreateForeignClassItem(type.GetDescriptor()); in CreateScalarRecordValueItem()
248 out->emplace_back(class_item, container); in CreateScalarRecordValueItem()
252 return container->CreateItem<ScalarValueItem>(class_item); in CreateScalarRecordValueItem()
257 …ItemContainer *container, const Value *value, std::vector<ScalarValueItem> *out, const Program &pr… in CreateScalarMethodValueItem() argument
271 out->emplace_back(method_item, container); in CreateScalarMethodValueItem()
275 return container->CreateItem<ScalarValueItem>(method_item); in CreateScalarMethodValueItem()
280 …ItemContainer *container, const Value *value, std::vector<ScalarValueItem> *out, const Program &pr… in CreateScalarLiteralArrayItem() argument
288 out->emplace_back(literalarray_item, container); in CreateScalarLiteralArrayItem()
292 return container->CreateItem<ScalarValueItem>(literalarray_item); in CreateScalarLiteralArrayItem()
296 ScalarValueItem *AsmEmitter::CreateScalarEnumValueItem(ItemContainer *container, const Value *value, in CreateScalarEnumValueItem() argument
308 out->emplace_back(field_item, container); in CreateScalarEnumValueItem()
312 return container->CreateItem<ScalarValueItem>(field_item); in CreateScalarEnumValueItem()
317 …ItemContainer *container, const Value *value, std::vector<ScalarValueItem> *out, const Program &pr… in CreateScalarAnnotationValueItem() argument
321 auto *annotation_item = CreateAnnotationItem(container, annotation, program, entities); in CreateScalarAnnotationValueItem()
327 out->emplace_back(annotation_item, container); in CreateScalarAnnotationValueItem()
331 return container->CreateItem<ScalarValueItem>(annotation_item); in CreateScalarAnnotationValueItem()
335 ScalarValueItem *AsmEmitter::CreateScalarValueItem(ItemContainer *container, const Value *value, in CreateScalarValueItem() argument
350 return CreateScalarPrimValueItem<uint32_t>(container, value, out); in CreateScalarValueItem()
354 return CreateScalarPrimValueItem<uint64_t>(container, value, out); in CreateScalarValueItem()
357 return CreateScalarPrimValueItem<float>(container, value, out); in CreateScalarValueItem()
360 return CreateScalarPrimValueItem<double>(container, value, out); in CreateScalarValueItem()
363 return CreateScalarStringValueItem(container, value, out); in CreateScalarValueItem()
366 return CreateScalarRecordValueItem(container, value, out, entities.class_items); in CreateScalarValueItem()
369 … return CreateScalarMethodValueItem(container, value, out, program, entities.method_items); in CreateScalarValueItem()
372 return CreateScalarEnumValueItem(container, value, out, entities.field_items); in CreateScalarValueItem()
375 return CreateScalarAnnotationValueItem(container, value, out, program, entities); in CreateScalarValueItem()
378 … return CreateScalarLiteralArrayItem(container, value, out, program, entities.literalarray_items); in CreateScalarValueItem()
388 ValueItem *AsmEmitter::CreateValueItem(ItemContainer *container, const Value *value, const Program … in CreateValueItem() argument
396 CreateScalarValueItem(container, &elem_value, &elements, program, entities); in CreateValueItem()
403 … return container->CreateItem<ArrayValueItem>(panda_file::Type(GetTypeId(component_type)), in CreateValueItem()
407 return CreateScalarValueItem(container, value, nullptr, program, entities); in CreateValueItem()
413 AnnotationItem *AsmEmitter::CreateAnnotationItem(ItemContainer *container, const AnnotationData &an… in CreateAnnotationItem() argument
449 auto *item = CreateValueItem(container, value, program, entities); in CreateAnnotationItem()
455 item_elements.emplace_back(container->GetOrCreateStringItem(name), item); in CreateAnnotationItem()
460 …return container->CreateItem<AnnotationItem>(cls, std::move(item_elements), std::move(tag_elements… in CreateAnnotationItem()
463 MethodHandleItem *AsmEmitter::CreateMethodHandleItem(ItemContainer *container, const MethodHandle &… in CreateMethodHandleItem() argument
473 item = container->CreateItem<MethodHandleItem>(mh.type, fields.at(mh.item_name)); in CreateMethodHandleItem()
481 item = container->CreateItem<MethodHandleItem>(mh.type, methods.at(mh.item_name)); in CreateMethodHandleItem()
493 bool AsmEmitter::AddAnnotations(T *item, ItemContainer *container, const AnnotationMetadata &metada… in AddAnnotations() argument
497 auto *annotation_item = CreateAnnotationItem(container, annotation, program, entities); in AddAnnotations()
1524 …d Function::EmitLocalVariable(panda_file::LineNumberProgramItem *program, ItemContainer *container, in EmitLocalVariable() argument
1533 StringItem *variable_name = container->GetOrCreateStringItem(v.name); in EmitLocalVariable()
1534 StringItem *variable_type = container->GetOrCreateStringItem(v.signature); in EmitLocalVariable()
1538 StringItem *type_signature = container->GetOrCreateStringItem(v.signature_type); in EmitLocalVariable()
1616 ItemContainer *container, std::vector<uint8_t> *constant_pool, in BuildLineNumberProgram() argument
1658 EmitLocalVariable(program, container, constant_pool, pc_inc, end, iter->variable_index); in BuildLineNumberProgram()