Home
last modified time | relevance | path

Searched refs:argType (Results 1 - 17 of 17) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DstringConstructorLowering.cpp69 auto *argType = arg->TsType(); in ReplaceStringConstructor() local
72 if (argType->IsETSNullType() || argType->IsETSUndefinedType()) { in ReplaceStringConstructor()
73 auto *literal = argType->IsETSNullType() ? checker->AllocNode<ir::StringLiteral>("null") in ReplaceStringConstructor()
91 if (argType->PossiblyETSNull() && !argType->PossiblyETSUndefined()) { in ReplaceStringConstructor()
94 } else if (argType->PossiblyETSUndefined() && !argType->PossiblyETSNull()) { in ReplaceStringConstructor()
97 } else if (argType->PossiblyETSNullish()) { in ReplaceStringConstructor()
H A DlambdaLowering.cpp899 auto *argType = ast->Parent()->AsCallExpression()->Signature()->Params()[ix]->TsType(); in GuessSignature() local
905 checker->Relation(), ast, tmpFunType, argType, ast->Start(), {}, checker::TypeRelationFlag::NO_THROW}; in GuessSignature() local
/arkcompiler/ets_runtime/ecmascript/ic/
H A Dic_binary_op.h37 JSTaggedValue right, JSTaggedValue argType) in AddWithTSType()
40 BinaryType addType = static_cast<BinaryType>(argType.GetInt()); in AddWithTSType()
107 JSTaggedValue right, JSTaggedValue argType) in SubWithTSType()
110 BinaryType subType = static_cast<BinaryType>(argType.GetInt()); in SubWithTSType()
140 JSTaggedValue right, JSTaggedValue argType) in MulWithTSType()
143 BinaryType mulType = static_cast<BinaryType>(argType.GetInt()); in MulWithTSType()
175 JSTaggedValue right, JSTaggedValue argType) in DivWithTSType()
178 BinaryType divType = static_cast<BinaryType>(argType.GetInt()); in DivWithTSType()
211 JSTaggedValue right, JSTaggedValue argType) in ModWithTSType()
214 BinaryType modType = static_cast<BinaryType>(argType in ModWithTSType()
36 AddWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) AddWithTSType() argument
106 SubWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) SubWithTSType() argument
139 MulWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) MulWithTSType() argument
174 DivWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) DivWithTSType() argument
210 ModWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) ModWithTSType() argument
294 ShlWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) ShlWithTSType() argument
310 ShrWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) ShrWithTSType() argument
324 AshrWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) AshrWithTSType() argument
340 AndWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) AndWithTSType() argument
353 OrWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) OrWithTSType() argument
366 XorWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) XorWithTSType() argument
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
H A Dstd_core_Method.cpp63 auto argType = meth->GetArgType(firstRealArg + i); in TypeAPIMethodInvokeImplementation() local
64 if (argType == EtsType::OBJECT) { in TypeAPIMethodInvokeImplementation()
68 EtsPrimitiveTypeEnumToComptimeConstant(argType, [&](auto type) -> void { in TypeAPIMethodInvokeImplementation()
/arkcompiler/runtime_core/static_core/verification/type/
H A Dtype_system.cpp138 Type argType; in GetMethodSignature() local
140 argType = DescriptorToType(method->GetRefArgType(refIdx++).data); in GetMethodSignature()
142 argType = Type::FromTypeId(method->GetArgType(i).GetId()); in GetMethodSignature()
144 sig.args.push_back(argType); in GetMethodSignature()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
H A Dintrinsics.cpp36 MIRType *IntrinDesc::GetTypeFromArgTy(IntrinArgType argType) const in GetTypeFromArgTy()
38 switch (argType) { in GetTypeFromArgTy()
/arkcompiler/runtime_core/static_core/plugins/ets/arkts_header/
H A Dheader_writer.cpp133 auto argType = pda.GetArgType(idx); in PrintPrototype() local
135 if (!argType.IsPrimitive()) { in PrintPrototype()
139 ProcessProtoType(argType, klassId, sign, args); in PrintPrototype()
/arkcompiler/ets_frontend/ets2panda/checker/
H A DETSAnalyzer.cpp937 checker::Type *argType = checker->GetApparentType(expr->argument_->Check(checker)); in Check() local
939 if (!argType->IsETSObjectType() || in Check()
940 (argType->AsETSObjectType()->GetOriginalBaseType() != checker->GlobalBuiltinPromiseType())) { in Check()
946 Type *type = argType->AsETSObjectType()->TypeArguments().at(0); in Check()
1664 static checker::Type *GetTypeOfStringType(checker::Type *argType, ETSChecker *checker) in GetTypeOfStringType() argument
1666 if (auto unboxed = checker->MaybePrimitiveBuiltinType(argType); in GetTypeOfStringType()
1685 if (argType->IsETSUndefinedType()) { in GetTypeOfStringType()
1688 if (argType->IsETSArrayType() || argType->IsETSNullType()) { in GetTypeOfStringType()
1691 if (argType in GetTypeOfStringType()
1707 ComputeTypeOfType(ETSChecker *checker, checker::Type *argType) ComputeTypeOfType() argument
1743 auto argType = expr->argument_->Check(checker); Check() local
2402 auto *argType = st->argument_->Check(checker); Check() local
[all...]
H A DETSchecker.h383 [[nodiscard]] bool EnhanceSubstitutionForGenericType(const ArenaVector<Type *> &typeParams, const Type *argType,
385 [[nodiscard]] static bool HasTypeArgsOfObject(Type *argType, Type *paramType);
593 void CheckValidGenericTypeParameter(Type *argType, const lexer::SourcePosition &pos);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dintrinsics.h52 MIRType *GetTypeFromArgTy(IntrinArgType argType) const;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/
H A Dets_method_test.cpp185 EtsType argType; in TEST_F() local
188 argType = fooMethod->GetArgType(i); in TEST_F()
189 ASSERT_EQ(argType, expectedArgTypes[i]); in TEST_F()
/arkcompiler/runtime_core/static_core/abc2program/
H A Dabc_method_processor.cpp160 auto argType = PFTypeToPandasmType(protoAccessor.GetArgType(i), protoAccessor, refIdx); in GetParams() local
161 function_.params.emplace_back(argType, keyData_.GetFileLanguage()); in GetParams()
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dmethod_data_accessor-inl.h339 auto argType = pda.GetArgType(idx); in EnumerateTypesInProto() local
341 if (!argType.IsPrimitive()) { in EnumerateTypesInProto()
344 cb(argType, klassId); in EnumerateTypesInProto()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dfunction_helpers.h94 auto *const argType = arg->IsSpreadElement() in InferUntilFail() local
106 if (checker->EnhanceSubstitutionForType(sigInfo->typeParams, paramType, argType, substitution)) { in InferUntilFail()
H A Dfunction.cpp86 bool ETSChecker::HasTypeArgsOfObject(Type *argType, Type *paramType) in HasTypeArgsOfObject() argument
88 return paramType->IsETSObjectType() && argType->IsETSObjectType() && in HasTypeArgsOfObject()
89 !argType->AsETSObjectType()->TypeArguments().empty() && in HasTypeArgsOfObject()
107 bool ETSChecker::EnhanceSubstitutionForGenericType(const ArenaVector<Type *> &typeParams, const Type *argType, in EnhanceSubstitutionForGenericType() argument
112 if (!argType->AsETSObjectType()->GetDeclNode()->IsClassDefinition()) { in EnhanceSubstitutionForGenericType()
123 objectParams.push_back(argType->AsETSObjectType()->TypeArguments()[i]); in EnhanceSubstitutionForGenericType()
143 argType->AsETSObjectType()->TypeArguments()[j], substitution); in EnhanceSubstitutionForGenericType()
H A Dhelpers.cpp2161 void ETSChecker::CheckValidGenericTypeParameter(Type *const argType, const lexer::SourcePosition &pos) in CheckValidGenericTypeParameter() argument
2163 if (!argType->IsETSEnumType()) { in CheckValidGenericTypeParameter()
2167 argType->ToString(ss); in CheckValidGenericTypeParameter()
/arkcompiler/runtime_core/static_core/disassembler/
H A Ddisassembler.cpp668 auto argType = PFTypeToPandasmType(protoAccessor.GetArgType(i), protoAccessor, refIdx); in GetParams() local
669 method->params.emplace_back(argType, fileLanguage_); in GetParams()

Completed in 23 milliseconds