Home
last modified time | relevance | path

Searched refs:GetType (Results 1 – 25 of 585) sorted by relevance

12345678910>>...24

/arkcompiler/runtime_core/static_core/runtime/include/
Dtyped_value.h115 panda_file::Type::TypeId GetType() const in GetType() function
122 return GetType() == panda_file::Type::TypeId::INVALID; in IsInvalid()
127 return GetType() == panda_file::Type::TypeId::VOID; in IsVoid()
132 return GetType() == panda_file::Type::TypeId::U1; in IsU1()
137 return GetType() == panda_file::Type::TypeId::I8; in IsI8()
142 return GetType() == panda_file::Type::TypeId::U8; in IsU8()
147 return GetType() == panda_file::Type::TypeId::I16; in IsI16()
152 return GetType() == panda_file::Type::TypeId::U16; in IsU16()
157 return GetType() == panda_file::Type::TypeId::I32; in IsI32()
162 return GetType() == panda_file::Type::TypeId::U32; in IsU32()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dconst_folding.cpp142 if (graph->IsBytecodeOptimizer() && IsInt32Bit(inst->GetType()) && !isLiteralData) { in ConstFoldingCreateIntConst()
151 …tFoldingCreateIntConst(inst, ConvertIntToInt(static_cast<T>(cnst->GetIntValue()), inst->GetType()), in ConstFoldingCreateConst()
183 auto instType = DataType::GetCommonType(inst->GetType()); in ConstFoldingCastIntConst()
206 auto instType = DataType::GetCommonType(inst->GetType()); in ConstFoldingCastConst()
207 if (cnst->GetType() == DataType::INT32 || cnst->GetType() == DataType::INT64) { in ConstFoldingCastConst()
210 if (cnst->GetType() == DataType::FLOAT32) { in ConstFoldingCastConst()
216 … return graph->FindOrCreateConstant(ConvertFloatToInt(cnst->GetFloatValue(), inst->GetType())); in ConstFoldingCastConst()
226 } else if (cnst->GetType() == DataType::FLOAT64) { in ConstFoldingCastConst()
231 … DataType::GetTypeSize(inst->GetType(), graph->GetArch())) in ConstFoldingCastConst()
232 : ConvertFloatToInt(cnst->GetDoubleValue(), inst->GetType()); in ConstFoldingCastConst()
[all …]
Dpeepholes.cpp55 auto instType = inst->GetType(); in VisitNeg()
56 auto inputType = input->GetType(); in VisitNeg()
96 if (!DataType::IsTypeSigned(inst->GetType())) { in VisitAbs()
239 if (DataType::IsFloatType(inst->GetType())) { in VisitAdd()
347 if (DataType::IsFloatType(inst->GetType())) { in VisitSub()
384 if (inst->GetType() == prevInput->GetType()) { in VisitSub()
444 } else if (DataType::GetCommonType(inst->GetType()) == DataType::INT64) { in VisitMulOneConst()
473 if (DataType::IsFloatType(inst->GetType())) { in VisitMul()
508 if (DataType::IsFloatType(inst->GetType())) { in VisitDiv()
547 } else if (DataType::GetCommonType(inst->GetType()) == DataType::INT64) { in VisitDiv()
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
Dreference.h62 return GetType() == ObjectType::STACK; in IsStack()
67 ObjectType type = GetType(); in IsLocal()
73 return GetType() == ObjectType::GLOBAL; in IsGlobal()
78 return GetType() == ObjectType::GLOBAL_FIXED; in IsGlobalFixed()
83 return GetType() == ObjectType::WEAK; in IsWeak()
104 static ObjectType GetType(const Reference *ref) in GetType() function
122 ObjectType GetType() const in GetType() function
124 return Reference::GetType(this); in GetType()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dgraph_checker.cpp263 [[maybe_unused]] auto realInputType = GetCommonType(input->GetType()); in CheckInputType()
308 if (DataType::Is32Bits(inst->GetType(), arch)) { in CheckInstUsers()
314 … if (inst->IsLoad() && !DataType::IsTypeSigned(inst->GetType()) && arch == Arch::AARCH64 && in CheckInstUsers()
317 … if (inst->IsLoad() && !DataType::IsTypeSigned(inst->GetType()) && arch == Arch::AARCH64) { in CheckInstUsers()
323 userInputType == DataType::POINTER && inst->GetType() == DataType::REFERENCE; in CheckInstUsers()
530 GetGraph()->IsDynamicMethod() || inst->GetType() != DataType::ANY, in CheckInstUsers()
560 … if (DataType::IsFloatType(inst->GetType()) && !graph->GetUsedRegs<DataType::FLOAT64>()->empty()) { in CheckInstUsers()
1099 ASSERT_DO_EXT_VISITOR(DataType::IsFloatType(inst->GetType()), in CheckInstUsers()
1106 if (inst->GetType() == DataType::POINTER) { in CheckInstUsers()
1112 ASSERT_DO_EXT_VISITOR(DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckInstUsers()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmir_const.cpp37 return ((&intConst.GetType() == &GetType()) && (intConst.value == value)); in operator ==()
83 if (&GetType() != &rhs.GetType()) { in operator ==()
106 return (&GetType() == &rhs.GetType()) && (puIdx == rhsAf.puIdx); in operator ==()
250 LogInfo::MapleLogger() << "conststr " << GetPrimTypeName(GetType().GetPrimType()); in Dump()
264 return (&rhs.GetType() == &GetType()) && (value == rhsCs.value); in operator ==()
274 LogInfo::MapleLogger() << "conststr16 " << GetPrimTypeName(GetType().GetPrimType()); in Dump()
291 return (&GetType() == &rhs.GetType()) && (value == rhsCs.value); in operator ==()
/arkcompiler/runtime_core/static_core/compiler/tests/
Dencoder_operands.cpp201 ASSERT_EQ(typedImmU8Z.GetType(), INT8_TYPE); in TEST()
202 ASSERT_EQ(typedImmU8.GetType(), INT8_TYPE); in TEST()
213 ASSERT_EQ(typedImmU16Z.GetType(), INT16_TYPE); in TEST()
214 ASSERT_EQ(typedImmU16.GetType(), INT16_TYPE); in TEST()
225 ASSERT_EQ(typedImmU32Z.GetType(), INT32_TYPE); in TEST()
226 ASSERT_EQ(typedImmU32.GetType(), INT32_TYPE); in TEST()
237 ASSERT_EQ(typedImmU64Z.GetType(), INT64_TYPE); in TEST()
238 ASSERT_EQ(typedImmU64.GetType(), INT64_TYPE); in TEST()
251 ASSERT_EQ(typedImmI8Z.GetType(), INT8_TYPE); in TEST()
252 ASSERT_EQ(typedImmI8.GetType(), INT8_TYPE); in TEST()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Dbounds_analysis.cpp635 ASSERT(!IsFloatType(inst->GetType())); in FindBoundsRange()
636 …ASSERT(inst->GetType() == DataType::REFERENCE || DataType::GetCommonType(inst->GetType()) == DataT… in FindBoundsRange()
638 ASSERT(inst->GetType() == DataType::REFERENCE); in FindBoundsRange()
642 ASSERT(inst->GetType() == DataType::REFERENCE); in FindBoundsRange()
654 ASSERT(inst->GetType() == DataType::INT64); in FindBoundsRange()
659 ASSERT(inst->GetType() == DataType::INT32); in FindBoundsRange()
670 return BoundsRange(0, maxLength, nullptr, inst->GetType()); in FindBoundsRange()
673 return BoundsRange(inst->GetType()); in FindBoundsRange()
685 …ASSERT(inst->GetType() == DataType::REFERENCE || DataType::GetCommonType(inst->GetType()) == DataT… in SetBoundsRange()
686 ASSERT(range.GetLeft() >= BoundsRange::GetMin(inst->GetType())); in SetBoundsRange()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/
Dets_intrinsics_peephole.cpp36 compare->SetType(intrinsic->GetType()); in PeepholeStringEquals()
37 ASSERT(input0->GetType() == input1->GetType()); in PeepholeStringEquals()
38 compare->SetOperandsType(input0->GetType()); in PeepholeStringEquals()
55 if (inst->GetOpcode() != Opcode::Shr || inst->GetType() != DataType::INT32) { in GetStringFromLength()
82 if (!begin->IsConst() || begin->GetType() != DataType::INT64) { in PeepholeStringSubstring()
108 auto type = intrinsic->GetType(); in TryInsertFieldInst()
151 auto type = IS_STORE ? DataType::VOID : intrinsic->GetType(); in TryInsertCallInst()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/
Dpgo_method_type_set.cpp46 AddDefine(fromType.GetOffset(), fromType.GetType()); in Merge()
68 PGOSampleType::ConvertFrom(context, scalerInfo->GetType())); in ParseFromBinary()
72 type.ConvertFrom(context, defineInfo->GetType()); in ParseFromBinary()
97 if (!typeInfo.GetType().IsNone()) { in ProcessToBinary()
98 … PGOSampleTypeRef sampleTypeRef = PGOSampleTypeRef::ConvertFrom(context, typeInfo.GetType()); in ProcessToBinary()
122 typeRef.ConvertFrom(context, typeInfo.GetType()); in ProcessToBinary()
164 if (typeInfoIter.GetType().IsNone()) { in ProcessToText()
175 text += typeInfoIter.GetType().GetTypeString(); in ProcessToText()
Dpgo_method_type_set.h39 auto combineType = result->GetType().CombineType(type); in AddType()
50 auto combineType = result->GetType().CombineCallTargetType(type); in AddCallTargetType()
224 SampleType combineType = GetType().CombineType(typeInfo.GetType()); in Merge()
228 SampleType GetType() const in GetType() function
256 return this->offset_ < right.GetOffset() || this->GetType() < right.GetType();
264 text += this->GetType().GetTypeString(); in ProcessToText()
268 PGODefineOpType GetType() const in GetType() function
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsIndexedAccessType.cpp41 checker::Type *resolved = GetType(checker); in Check()
61 checker::Type *TSIndexedAccessType::GetType(checker::Checker *checker) const in GetType() function in panda::es2panda::ir::TSIndexedAccessType
68 checker::Type *baseType = objectType_->AsTypeNode()->GetType(checker); in GetType()
69 checker::Type *indexType = indexType_->AsTypeNode()->GetType(checker); in GetType()
DtsUnionType.cpp43 GetType(checker); in Check()
47 checker::Type *TSUnionType::GetType(checker::Checker *checker) const in GetType() function in panda::es2panda::ir::TSUnionType
57 types.push_back(it->AsTypeNode()->GetType(checker)); in GetType()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/
Dencode.cpp145 ScopedTmpReg tmpReg(this, src0.GetType()); in EncodeJump()
149 ScopedTmpReg tmpReg(this, src1.GetType()); in EncodeJump()
153 } else if (src0.GetType() == FLOAT32_TYPE) { in EncodeJump()
193 ScopedTmpReg tmpReg(this, src.GetType()); in EncodeJump()
205 ScopedTmpReg tmpReg(this, src0.GetType()); in EncodeJumpTest()
209 ScopedTmpReg tmpReg(this, src1.GetType()); in EncodeJumpTest()
229 ScopedTmpReg tmpReg(this, src.GetType()); in EncodeJumpTest()
245 ScopedTmpReg tmpReg(this, src.GetType()); in EncodeJump()
246 if (src.GetType() == FLOAT32_TYPE) { in EncodeJump()
428 if (dst.GetType() == FLOAT32_TYPE) { in EncodeMov()
[all …]
/arkcompiler/runtime_core/static_core/compiler/code_info/
Dvreg_info.h86 Type GetType() const in GetType() function
122 return GetType() == Type::OBJECT; in IsObject()
127 return GetType() == Type::FLOAT32 || GetType() == Type::FLOAT64; in IsFloat()
132 return GetType() == VRegInfo::Type::FLOAT64 || GetType() == VRegInfo::Type::INT64; in Has64BitValue()
174 switch (GetType()) { in GetTypeString()
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsIndexedAccessType.cpp62 checker::Type *TSIndexedAccessType::GetType([[maybe_unused]] checker::TSChecker *checker) in GetType() function in panda::es2panda::ir::TSIndexedAccessType
68 checker::Type *baseType = objectType_->GetType(checker); in GetType()
69 checker::Type *indexType = indexType_->GetType(checker); in GetType()
DtsArrayType.cpp64 checker::Type *TSArrayType::GetType([[maybe_unused]] checker::TSChecker *checker) in GetType() function in panda::es2panda::ir::TSArrayType
66 return checker->Allocator()->New<checker::ArrayType>(elementType_->GetType(checker)); in GetType()
74 checker::Type *TSArrayType::GetType(checker::ETSChecker *checker) in GetType() function in panda::es2panda::ir::TSArrayType
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dobject.cpp60 IsTypeAssignableTo(propType, numberInfo->GetType(), in CheckIndexConstraints()
62 … "' is not assignable to numeric index type '", numberInfo->GetType(), "'."}, in CheckIndexConstraints()
71 IsTypeAssignableTo(propType, stringInfo->GetType(), in CheckIndexConstraints()
73 … "' is not assignable to string index type '", stringInfo->GetType(), "'."}, in CheckIndexConstraints()
77 if (numberInfo && !IsTypeAssignableTo(numberInfo->GetType(), stringInfo->GetType())) { in CheckIndexConstraints()
78 ThrowTypeError({"Number index info type ", numberInfo->GetType(), in CheckIndexConstraints()
79 … " is not assignable to string index info type ", stringInfo->GetType(), "."}, in CheckIndexConstraints()
140 stringInfoTypes.push_back(objType->StringIndexInfo()->GetType()); in ResolveUnionTypeMembers()
144 numberInfoTypes.push_back(objType->NumberIndexInfo()->GetType()); in ResolveUnionTypeMembers()
328 collectedTypes.push_back(objType->StringIndexInfo()->GetType()); in GetPropertyOfUnionType()
[all …]
/arkcompiler/ets_frontend/ets2panda/checker/ts/
Dobject.cpp58 IsTypeAssignableTo(propType, numberInfo->GetType(), in CheckIndexConstraints()
60 … "' is not assignable to numeric index type '", numberInfo->GetType(), "'."}, in CheckIndexConstraints()
69 IsTypeAssignableTo(propType, stringInfo->GetType(), in CheckIndexConstraints()
71 … "' is not assignable to string index type '", stringInfo->GetType(), "'."}, in CheckIndexConstraints()
75 … if (numberInfo != nullptr && !IsTypeAssignableTo(numberInfo->GetType(), stringInfo->GetType())) { in CheckIndexConstraints()
76 ThrowTypeError({"Number index info type ", numberInfo->GetType(), in CheckIndexConstraints()
77 … " is not assignable to string index info type ", stringInfo->GetType(), "."}, in CheckIndexConstraints()
138 stringInfoTypes.push_back(objType->StringIndexInfo()->GetType()); in ResolveUnionTypeMembers()
142 numberInfoTypes.push_back(objType->NumberIndexInfo()->GetType()); in ResolveUnionTypeMembers()
324 collectedTypes.push_back(objType->StringIndexInfo()->GetType()); in GetPropertyOfUnionType()
[all …]
/arkcompiler/ets_frontend/ets2panda/ir/ets/
DetsUnionType.cpp65 return GetType(checker); in Check()
68 checker::Type *ETSUnionType::GetType([[maybe_unused]] checker::ETSChecker *checker) in GetType() function in panda::es2panda::ir::ETSUnionType
77 types.push_back(it->GetType(checker)); in GetType()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgc_trigger.h125 virtual GCTriggerType GetType() const = 0;
140 GCTriggerType GetType() const override in GetType() function
193 GCTriggerType GetType() const override in GetType() function
216 GCTriggerType GetType() const override in GetType() function
234 GCTriggerType GetType() const override in GetType() function
252 GCTriggerType GetType() const override in GetType() function
271 GCTriggerType GetType() const override in GetType() function
307 GCTriggerType GetType() const override in GetType() function
/arkcompiler/runtime_core/assembler/tests/
Decmascript_meta_test.cpp42 EXPECT_EQ(err.GetType(), result1->GetType());
53 EXPECT_EQ(result4->GetType(), pandasm::Metadata::Error::Type::UNEXPECTED_VALUE);
125 EXPECT_EQ(result3->GetType(), pandasm::Metadata::Error::Type::UNKNOWN_ATTRIBUTE);
149 EXPECT_EQ(err.GetType(), pandasm::Metadata::Error::Type::MISSING_ATTRIBUTE);
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dgraph_checker.h123 (inst1->GetType() == DataType::ANY || inst2->GetType() == DataType::ANY)) { in CheckCommonTypes()
126 DataType::Type type1 = inst1->GetType(); in CheckCommonTypes()
127 DataType::Type type2 = inst2->GetType(); in CheckCommonTypes()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
Dspill_fill_encoder.cpp188 auto type = sf.GetType(); in EncodeImmToX()
189 if (graph_->IsDynamicMethod() && constInst->GetType() == DataType::INT64) { in EncodeImmToX()
225 auto srcReg = codegen_->ConvertRegister(sf.SrcValue(), sf.GetType()); in EncodeRegisterToX()
226 auto dstReg = GetDstReg(sf.GetDst(), srcReg.GetType()); in EncodeRegisterToX()
236 auto srcReg = codegen_->ConvertRegister(sf.SrcValue(), sf.GetType()); in EncodeRegisterToX()
240 if (srcReg.GetSize() < DOUBLE_WORD_SIZE && !srcReg.GetType().IsFloat()) { in EncodeRegisterToX()
266 auto typeInfo = Codegen::ConvertDataType(sf.GetType(), codegen_->GetArch()); in EncodeStackToX()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
Djs_value.h62 napi_valuetype GetType() const in GetType() function
128 ASSERT(GetType() == napi_boolean); in GetBoolean()
134 ASSERT(GetType() == napi_number); in GetNumber()
140 ASSERT(GetType() == napi_string); in GetString()
210 ASSERT(jsValue->GetType() == napi_undefined); in AllocUndefined()
226 ASSERT(IsRefType(GetType())); in GetNapiRef()

12345678910>>...24