Home
last modified time | relevance | path

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

12

/arkcompiler/ets_frontend/es2panda/typescript/types/
DfunctionType.cpp22 void FunctionType::ToString(std::stringstream &ss) const in ToString()
24 static std::unordered_set<const FunctionType *> stack; in ToString()
50 TypeFacts FunctionType::GetTypeFacts() const in GetTypeFacts()
55 Type *FunctionType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolde… in Instantiate()
59 return allocator->New<FunctionType>(copiedDesc); in Instantiate()
DfunctionType.h24 class FunctionType : public ObjectType {
26 …explicit FunctionType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION, d… in FunctionType() function
DtypeMapping.h47 _(ObjectType::ObjectTypeKind::FUNCTION, FunctionType) \
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
DfunctionType.cpp21 void FunctionType::ToString(std::stringstream &ss) const in ToString()
23 static std::unordered_set<const FunctionType *> stack; in ToString()
49 TypeFacts FunctionType::GetTypeFacts() const in GetTypeFacts()
54 Type *FunctionType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolde… in Instantiate()
58 return allocator->New<FunctionType>(copiedDesc); in Instantiate()
DfunctionType.h23 class FunctionType : public ObjectType {
25 …explicit FunctionType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION, d… in FunctionType() function
/arkcompiler/runtime_core/static_core/libllvmbackend/
Dllvm_ark_interface.h34 class FunctionType; variable
60 using RuntimeCallee = std::pair<llvm::FunctionType *, llvm::StringRef>;
85 llvm::FunctionType *GetRuntimeFunctionType(llvm::StringRef name) const;
86 llvm::FunctionType *GetOrCreateRuntimeFunctionType(llvm::LLVMContext &ctx, llvm::Module *module,
131 llvm::StringMap<llvm::FunctionType *> runtimeFunctionTypes_;
Dllvm_ark_interface.cpp122 llvm::FunctionType *LLVMArkInterface::GetRuntimeFunctionType(llvm::StringRef name) const in GetRuntimeFunctionType()
127 llvm::FunctionType *LLVMArkInterface::GetOrCreateRuntimeFunctionType(llvm::LLVMContext &ctx, llvm::… in GetOrCreateRuntimeFunctionType()
/arkcompiler/runtime_core/static_core/verification/util/
Dcallable.h48 using FunctionType = R (*)(Args...); variable
52 FunctionType f;
54 explicit MethodUnion(FunctionType function) : f(function) {} in MethodUnion()
97 … constexpr callable(FunctionType func) : method_ {func} {} // NOLINT(google-explicit-constructor) in callable()
/arkcompiler/runtime_core/static_core/libllvmbackend/templates/
Dintrinsics_gen.inl.erb17 llvm::FunctionType *GetIntrinsicDeclaration(llvm::LLVMContext &ctx, panda::compiler::RuntimeInterfa…
23 return llvm::FunctionType::get(llvm::Type::getVoidTy(ctx),
26 return llvm::FunctionType::get(llvm::Type::getVoidTy(ctx),
31 … return llvm::FunctionType::get(<%= llvm_type_getter(intrinsic.impl_signature.ret, 'GC_SPACE') %>,
Dentrypoints_gen.inl.erb17 llvm::FunctionType *GetEntrypointDeclaration(llvm::LLVMContext &ctx, llvm::Module *module, panda::c…
26 … return llvm::FunctionType::get(<%= llvm_type_getter(entrypoint.signature[0], 'GC_SPACE') %>,
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dgc_barriers.cpp75 …llvm::FunctionType::get(builder->getVoidTy(), {builder->getPtrTy(LLVMArkInterface::GC_ADDR_SPACE)}… in EmitPreWRB()
96 …auto funcTy = llvm::FunctionType::get(builder->getVoidTy(), {gcPtrTy, int32Ty, gcPtrTy, ptrTy}, fa… in EmitPostWRB()
103 …auto funcTy = llvm::FunctionType::get(builder->getVoidTy(), {gcPtrTy, int32Ty, gcPtrTy, ptrTy, ptr… in EmitPostWRB()
Dllvm_ir_constructor.cpp70 inline llvm::Function *CreateFunctionDeclaration(llvm::FunctionType *functionType, const std::strin… in CreateFunctionDeclaration()
98 auto iasmType = llvm::FunctionType::get(builder->getVoidTy(), {}, false); in CreateBlackBoxAsm()
104 auto oneInt = llvm::FunctionType::get(builder->getVoidTy(), {builder->getInt32Ty()}, false); in CreateInt32ImmAsm()
298 auto ftype = llvm::FunctionType::get(GetType(inst->GetType()), argTypes, false); in EmitSlowPathEntry()
741 auto itype = llvm::FunctionType::get(type, {type, type}, false); // no var args in CreateAArch64SignDivMod()
747 auto modAsmType = llvm::FunctionType::get(type, {type, type, type}, false); // no var args in CreateAArch64SignDivMod()
936 auto ftype = llvm::FunctionType::get(func_->getReturnType(), argTypes, false); in CreateTailCallFastPath()
980 auto functionType = llvm::FunctionType::get(func_->getReturnType(), argTypes, false); in CreateTailCallInterpreter()
986 llvm::FunctionType *LLVMIrConstructor::GetEntryFunctionType() in GetEntryFunctionType()
1018 …return llvm::FunctionType::get(GetType(retType), makeArrayRef(argTypes.data(), argTypes.size()), f… in GetEntryFunctionType()
[all …]
Dllvm_ir_constructor.h98 llvm::FunctionType *GetEntryFunctionType();
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeSystem.h429 class FunctionType : public BaseType {
431 …explicit FunctionType(TypeExtractor *extractor, const ir::AstNode *node, const util::StringView &n… in FunctionType() function
484 ~FunctionType() = default;
485 NO_COPY_SEMANTIC(FunctionType);
486 NO_MOVE_SEMANTIC(FunctionType);
751 auto fn = [&method, this](const FunctionType &functionType, const util::StringView &name) { in FillMethod()
762 FunctionType functionType(extractor_, method, name); in FillMethod()
768 FunctionType functionType(extractor_, method, name); in FillMethod()
995 FunctionType functionType(extractor_, method, name); in FillMethod()
1001 FunctionType functionType(extractor_, method, name); in FillMethod()
[all …]
DtypeExtractor.cpp440 FunctionType functionType(this, node, name); in GetTypeIndexFromFunctionNode()
592 FunctionType functionType(this, type->AsTSFunctionType(), ""); in GetTypeIndexFromAnnotation()
595 FunctionType functionType(this, type->AsTSConstructorType(), ""); in GetTypeIndexFromAnnotation()
609 FunctionType functionType(this, typeAnnotation->AsTSFunctionType(), ""); in GetTypeIndexFromAnnotation()
613 FunctionType functionType(this, typeAnnotation->AsTSConstructorType(), ""); in GetTypeIndexFromAnnotation()
706 FunctionType functionType(this, node, name); in HandleFunctionDeclaration()
/arkcompiler/ets_frontend/ets2panda/checker/types/
DtypeMapping.h66 _(ObjectType::ObjectTypeKind::FUNCTION, FunctionType) \
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/
Druntime_calls.cpp50 auto calleeFuncTy = llvm::cast<llvm::FunctionType>(function_proto); in CreateEntrypointCallCommon()
/arkcompiler/ets_frontend/ets2panda/checker/ts/
DtypeCreation.cpp141 …auto *funcObjType = Allocator()->New<FunctionType>(Allocator()->New<ObjectDescriptor>(Allocator())… in CreateFunctionTypeWithSignature()
Dfunction.cpp591 Type *funcType = Allocator()->New<FunctionType>(descWithOverload); in InferFunctionDeclarationType()
/arkcompiler/ets_frontend/es2panda/typescript/core/
DtypeCreation.cpp142 … auto *funcObjType = allocator_->New<FunctionType>(allocator_->New<ObjectDescriptor>(allocator_)); in CreateFunctionTypeWithSignature()
Dfunction.cpp610 Type *funcType = allocator_->New<FunctionType>(descWithOverload); in InferFunctionDeclarationType()
/arkcompiler/ets_frontend/ts2panda/src/
DtypeChecker.ts24 FunctionType,
419 … let funcType = new FunctionType(functionDeclNode, BuiltinType[functionnameText]);
/arkcompiler/ets_frontend/ts2panda/src/base/
DtypeSystem.ts413 let funcType = new FunctionType(<ts.FunctionLikeDeclaration>member);
531 export class FunctionType extends BaseType { class
891 let funcType = new FunctionType(<ts.MethodSignature>member);
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DReflect.ets55 return new Number((t as FunctionType).getParametersNum())
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DType.ets2302 export abstract class FunctionType extends Type {
2392 * Checks for equality this instance with provided object, treated as a FunctionType
2396 * @returns true if object also has FunctionType and
2400 return (to! instanceof FunctionType) && (to! as FunctionType).td == this.td
2449 export final class LambdaType extends FunctionType {
2507 export final class MethodType extends FunctionType {

12