Home
last modified time | relevance | path

Searched refs:ret_type (Results 1 – 15 of 15) sorted by relevance

/ark/runtime_core/runtime/tests/
Dc2i_bridge_test.cpp121 Method *MakeNoArgsMethod(TypeId ret_type, int64_t ret) in MakeNoArgsMethod() argument
129 if (ret_type == TypeId::REFERENCE) { in MakeNoArgsMethod()
133 out << ".function " << panda_file::Type(ret_type) << " main() {\n"; in MakeNoArgsMethod()
134 if (TypeId::F32 <= ret_type && ret_type <= TypeId::F64) { in MakeNoArgsMethod()
137 } else if (TypeId::I64 <= ret_type && ret_type <= TypeId::U64) { in MakeNoArgsMethod()
140 } else if (ret_type == TypeId::REFERENCE) { in MakeNoArgsMethod()
143 } else if (ret_type == TypeId::TAGGED) { in MakeNoArgsMethod()
186 TypeId ret_type = *shorty_it++; in MakeCheckArgsMethod() local
231 if (ret_type == TypeId::TAGGED) { in MakeCheckArgsMethod()
251 … out << ".function " << panda_file::Type(ret_type) << " Test.main(" << signature.str() << ") {\n"; in MakeCheckArgsMethod()
Dinterpreter_test.cpp116 panda_file::PrimitiveTypeItem *ret_type = in CreateMethod() local
119 panda_file::ProtoItem *proto_item = container.GetOrCreateProtoItem(ret_type, params); in CreateMethod()
/ark/runtime_core/disassembler/templates/
Dintrinsics_gen.h.erb27 % ret_type = intrinsic.impl_signature.ret
28 % if ret_type == 'void'
99 % ret_type = intrinsic.orig_impl_signature.ret
100 % if ret_type == 'void'
/ark/runtime_core/verification/util/
Dfunction_traits.h91 using ret_type = std::decay_t<typename sig::return_type>;
96 …static_assert(std::is_same<ret_type, lhs_type>::value, "return value type should be the same as ar…
98 using type = ret_type;
/ark/runtime_core/runtime/include/
Dmethod.h634 panda_file::Type ret_type = GetReturnType(); in GetReturnValueFromTaggedValue() local
636 if (ret_type.GetId() != panda_file::Type::TypeId::VOID) { in GetReturnValueFromTaggedValue()
637 if (ret_type.GetId() == panda_file::Type::TypeId::REFERENCE) { in GetReturnValueFromTaggedValue()
639 } else if (ret_type.GetId() == panda_file::Type::TypeId::TAGGED) { in GetReturnValueFromTaggedValue()
662 Value GetReturnValueFromAcc(const panda_file::Type &ret_type, bool has_pending_exception, in GetReturnValueFromAcc() argument
666 if (ret_type.IsReference()) { in GetReturnValueFromAcc()
673 if (ret_type.GetId() != panda_file::Type::TypeId::VOID) { in GetReturnValueFromAcc()
674 if (ret_type.GetId() == panda_file::Type::TypeId::TAGGED) { in GetReturnValueFromAcc()
Dmethod-inl.h101 panda_file::Type ret_type = GetReturnType(); in InvokeInterpretedCode() local
105 if (ret_type.IsReference()) { in InvokeInterpretedCode()
115 if (ret_type.IsReference()) { in InvokeInterpretedCode()
157 res = GetReturnValueFromAcc(ret_type, thread->HasPendingException(), frame->GetAcc()); in InvokeInterpretedCode()
/ark/runtime_core/runtime/templates/
Dintrinsics_gen.h.erb33 % ret_type = intrinsic.impl_signature.ret
34 % if ret_type == 'void'
115 % ret_type = intrinsic.orig_impl_signature.ret
116 % if ret_type == 'void'
/ark/runtime_core/libpandafile/tests/
Dfile_item_container_test.cpp188 PrimitiveTypeItem *ret_type = container.CreateItem<PrimitiveTypeItem>(Type::TypeId::VOID); in TEST() local
190 ProtoItem *proto_item = container.GetOrCreateProtoItem(ret_type, params); in TEST()
341 PrimitiveTypeItem *ret_type = container.CreateItem<PrimitiveTypeItem>(Type::TypeId::VOID); in TEST() local
343 ProtoItem *proto_item = container.GetOrCreateProtoItem(ret_type, params); in TEST()
420 PrimitiveTypeItem *ret_type = container.CreateItem<PrimitiveTypeItem>(Type::TypeId::VOID); in TestProtos() local
438 ProtoItem *proto_item = container.GetOrCreateProtoItem(ret_type, params); in TestProtos()
511 PrimitiveTypeItem *ret_type = container.CreateItem<PrimitiveTypeItem>(Type::TypeId::VOID); in TEST() local
514 ProtoItem *proto_item = container.GetOrCreateProtoItem(ret_type, params); in TEST()
613 PrimitiveTypeItem *ret_type = container.CreateItem<PrimitiveTypeItem>(Type::TypeId::VOID); in TEST() local
616 ProtoItem *proto_item = container.GetOrCreateProtoItem(ret_type, params); in TEST()
Ddebug_info_extractor_test.cpp48 PrimitiveTypeItem *ret_type = container->CreateItem<PrimitiveTypeItem>(Type::TypeId::VOID); in PreparePandaFile() local
51 ProtoItem *proto_item = container->GetOrCreateProtoItem(ret_type, params); in PreparePandaFile()
/ark/runtime_core/runtime/
Dmethod.cpp76 auto ret_type = GetReturnType(); in GetReturnTypeDescriptor() local
77 if (!ret_type.IsPrimitive()) { in GetReturnTypeDescriptor()
81 switch (ret_type.GetId()) { in GetReturnTypeDescriptor()
172 panda_file::Type ret_type = GetReturnType(); in InvokeGen() local
176 if (ret_type.IsReference()) { in InvokeGen()
203 if (ret_type.IsReference()) { in InvokeGen()
217 res = GetReturnValueFromAcc(ret_type, thread->HasPendingException(), frame->GetAcc()); in InvokeGen()
/ark/runtime_core/libpandafile/
Dfile_item_container.cpp217 ProtoItem *ItemContainer::GetOrCreateProtoItem(TypeItem *ret_type, const std::vector<MethodParamIte… in GetOrCreateProtoItem() argument
219 ProtoKey key(ret_type, params); in GetOrCreateProtoItem()
220 return GetOrInsert<ProtoItem>(proto_map_, items_, key, false, ret_type, params); in GetOrCreateProtoItem()
944 ItemContainer::ProtoKey::ProtoKey(TypeItem *ret_type, const std::vector<MethodParamItem> &params) in ProtoKey() argument
946 Add(ret_type); in ProtoKey()
951 size_t ret_type_hash = std::hash<TypeItem *>()(ret_type); in ProtoKey()
Dfile_item_container.h63 ProtoItem *GetOrCreateProtoItem(TypeItem *ret_type, const std::vector<MethodParamItem> &params);
340 ProtoKey(TypeItem *ret_type, const std::vector<MethodParamItem> &params);
Dfile_items.cpp375 ProtoItem::ProtoItem(TypeItem *ret_type, const std::vector<MethodParamItem> &params) in ProtoItem() argument
379 AddType(ret_type, &n); in ProtoItem()
Dfile_items.h1126 ProtoItem(TypeItem *ret_type, const std::vector<MethodParamItem> &params);
/ark/runtime_core/verification/absint/
Dabs_int_inl.h2941 bool CheckReturn(Type ret_type, Type acc_type, Check check) in CheckReturn() argument
2943 TypeId ret_type_id = Types().TypeIdOf(ret_type); in CheckReturn()