Home
last modified time | relevance | path

Searched refs:functionType (Results 1 – 19 of 19) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_parser.cpp239 JSHandle<TSFunctionType> functionType = in ParseNonImportType() local
241 return JSHandle<JSTaggedValue>(functionType); in ParseNonImportType()
379 JSHandle<TSFunctionType> functionType = factory_->NewTSFunctionType(length); in ParseFunctionType() local
381 SetFunctionThisType(functionType, jsPandaFile, recordName, typeLiteralExtractor); in ParseFunctionType()
382 JSHandle<TaggedArray> parameterTypes(thread_, functionType->GetParameterTypes()); in ParseFunctionType()
392 functionType->SetParameterTypes(thread_, parameterTypes); in ParseFunctionType()
396 functionType->SetName(thread_, functionName); in ParseFunctionType()
400 functionType->SetReturnGT(returnGT); in ParseFunctionType()
403 functionType->SetBitField(bitField); in ParseFunctionType()
404 functionType->SetIsHotness(true); in ParseFunctionType()
[all …]
Dts_manager.cpp208 JSHandle<TSFunctionType> functionType(tsType); in IsStaticFunc() local
209 return functionType->GetStatic(); in IsStaticFunc()
217 JSHandle<TSFunctionType> functionType(tsType); in IsHotnessFunc() local
218 return functionType->GetIsHotness(); in IsHotnessFunc()
226 JSHandle<TSFunctionType> functionType(tsType); in SetHotnessFunc() local
227 functionType->SetIsHotness(isHotness); in SetHotnessFunc()
495 JSHandle<TSFunctionType> functionType = JSHandle<TSFunctionType>(tsType); in GetFuncName() local
496 auto name = functionType->GetName(); in GetFuncName()
506 JSHandle<TSFunctionType> functionType = JSHandle<TSFunctionType>(tsType); in GetMethodIndex() local
507 uint32_t methodOffset = functionType->GetMethodOffset(); in GetMethodIndex()
[all …]
Dts_type_parser.h212 void SetFunctionThisType(const JSHandle<TSFunctionType> &functionType,
217 …void StoreMethodOffset(const JSHandle<TSFunctionType> &functionType, TypeLiteralExtractor *typeLit…
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeSystem.h751 auto fn = [&method, this](const FunctionType &functionType, const util::StringView &name) { in FillMethod()
752 if ((functionType.GetModifier() & FuncModifier::STATIC) == 0) { in FillMethod()
762 FunctionType functionType(extractor_, method, name); in FillMethod()
763 fn(functionType, name); in FillMethod()
768 FunctionType functionType(extractor_, method, name); in FillMethod()
769 recorder_->SetIdentifierTypeIndex(identifier, functionType.GetTypeIndexShift()); in FillMethod()
770 fn(functionType, name); in FillMethod()
995 FunctionType functionType(extractor_, method, name); in FillMethod()
1001 FunctionType functionType(extractor_, method, name); in FillMethod()
1002 recorder_->SetIdentifierTypeIndex(identifier, functionType.GetTypeIndexShift()); in FillMethod()
[all …]
DtypeExtractor.cpp440 FunctionType functionType(this, node, name); in GetTypeIndexFromFunctionNode() local
441 typeIndex = functionType.GetTypeIndexShift(); in GetTypeIndexFromFunctionNode()
592 FunctionType functionType(this, type->AsTSFunctionType(), ""); in GetTypeIndexFromAnnotation() local
593 return functionType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
595 FunctionType functionType(this, type->AsTSConstructorType(), ""); in GetTypeIndexFromAnnotation() local
596 return functionType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
609 FunctionType functionType(this, typeAnnotation->AsTSFunctionType(), ""); in GetTypeIndexFromAnnotation() local
610 return functionType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
613 FunctionType functionType(this, typeAnnotation->AsTSConstructorType(), ""); in GetTypeIndexFromAnnotation() local
614 return functionType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
[all …]
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dgc_barriers.cpp74 auto functionType = in EmitPreWRB() local
76 builder->CreateCall(functionType, entrypoint, {load}); in EmitPreWRB()
Dllvm_ir_constructor.cpp70 inline llvm::Function *CreateFunctionDeclaration(llvm::FunctionType *functionType, const std::strin… in CreateFunctionDeclaration() argument
73 ASSERT(functionType != nullptr); in CreateFunctionDeclaration()
84 function = llvm::Function::Create(functionType, llvm::Function::ExternalLinkage, name, module); in CreateFunctionDeclaration()
980 auto functionType = llvm::FunctionType::get(func_->getReturnType(), argTypes, false); in CreateTailCallInterpreter() local
981 return builder_.CreateCall(functionType, ptr, ccValues_); in CreateTailCallInterpreter()
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/
Dts_type_parser_test.cpp227 JSHandle<TSFunctionType> functionType(type); in HWTEST_F_L0() local
228 EXPECT_EQ(resultGT, functionType->GetGT()); in HWTEST_F_L0()
229 EXPECT_EQ(functionType->GetLength(), numOfParas); in HWTEST_F_L0()
230 …EXPECT_EQ(functionType->GetParameterTypeGT(0), GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableId… in HWTEST_F_L0()
232 …EXPECT_EQ(functionType->GetParameterTypeGT(1), GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableId… in HWTEST_F_L0()
234 …EXPECT_EQ(functionType->GetReturnGT(), GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableIdx::PRIMI… in HWTEST_F_L0()
/arkcompiler/ets_frontend/ets2panda/util/
DdeclgenEts2Ts.h51 …void GenFunctionType(const checker::ETSFunctionType *functionType, const ir::MethodDefinition *met…
/arkcompiler/ets_frontend/es2panda/
DCMakeLists.txt266 typescript/types/functionType.cpp
DBUILD.gn230 "typescript/types/functionType.cpp",
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.cpp3829 JSHandle<TSFunctionType> functionType(thread_, header); in NewTSFunctionType() local
3831 functionType->SetGT(GlobalTSTypeRef::Default()); in NewTSFunctionType()
3832 functionType->SetName(thread_, JSTaggedValue::Undefined()); in NewTSFunctionType()
3833 functionType->SetParameterTypes(thread_, JSTaggedValue::Undefined()); in NewTSFunctionType()
3834 functionType->SetReturnGT(GlobalTSTypeRef::Default()); in NewTSFunctionType()
3835 functionType->SetThisGT(GlobalTSTypeRef::Default()); in NewTSFunctionType()
3836 functionType->ClearBitField(); in NewTSFunctionType()
3837 functionType->SetMethodOffset(0); in NewTSFunctionType()
3840 functionType->SetParameterTypes(thread_, parameterTypes); in NewTSFunctionType()
3842 return functionType; in NewTSFunctionType()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dlitecg_ir_builder.cpp821 LiteCGType *functionType = lmirBuilder_->CreateFuncType(paramTys, retType, false); in GenerateFuncType() local
822 return functionType; in GenerateFuncType()
2008 …LiteCGType *functionType = lmirBuilder_->CreateFuncType(paramTys, lmirBuilder_->i64RefType, false); in GetExperimentalDeoptTy() local
2009 return functionType; in GetExperimentalDeoptTy()
Dllvm_ir_builder.cpp2722 auto functionType = LLVMFunctionType(returnType, paramTys.data(), paramTys.size(), false); in GenerateFuncType() local
2723 return functionType; in GenerateFuncType()
/arkcompiler/ets_runtime/ecmascript/tests/
Ddump_test.cpp1082 JSHandle<TSFunctionType> functionType = factory->NewTSFunctionType(1); in HWTEST_F_L0() local
1083 DUMP_FOR_HANDLE(functionType); in HWTEST_F_L0()
/arkcompiler/ets_frontend/ets2panda/
DBUILD.gn96 "checker/types/ts/functionType.cpp",
DCMakeLists.txt415 checker/types/ts/functionType.cpp
/arkcompiler/ets_frontend/ets2panda/checker/
DETSAnalyzer.cpp931 static checker::Signature *ResolveCallExtensionFunction(checker::ETSFunctionType *functionType, in ResolveCallExtensionFunction() argument
937 …checker->ResolveCallExpressionAndTrailingLambda(functionType->CallSignatures(), expr, expr->Start(… in ResolveCallExtensionFunction()
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D3_types.rst223 | functionType
1293 functionType: