| /arkcompiler/runtime_core/static_core/runtime/include/ |
| H A D | typed_value.h | 115 panda_file::Type::TypeId GetType() const in GetType() function in ark::TypedValue 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() in IsU32() [all...] |
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| H A D | const_folding.cpp | 142 if (graph->IsBytecodeOptimizer() && IsInt32Bit(inst->GetType()) && !isLiteralData) { in ConstFoldingCreateIntConst() 151 return ConstFoldingCreateIntConst(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(), grap in ConstFoldingCastConst() [all...] |
| H A D | peepholes.cpp | 55 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() [all...] |
| H A D | lowering.cpp | 102 auto type = inst->GetType(); in VisitCast() 111 if (!inputInst->IsLoad() || inputInst->GetType() != inputType) { in VisitCast() 288 auto typeSize = DataType::GetTypeSize(inst->GetType(), graph->GetArch()); in ReplaceSignedDivPowerOfTwo() 290 graph->CreateInstAShr(inst->GetType(), inst->GetPc(), input0, graph->FindOrCreateConstant(typeSize - 1)); in ReplaceSignedDivPowerOfTwo() 292 auto shr = graph->CreateInstShr(inst->GetType(), inst->GetPc(), ashr, graph->FindOrCreateConstant(typeSize - n)); in ReplaceSignedDivPowerOfTwo() 294 auto add = graph->CreateInstAdd(inst->GetType(), inst->GetPc(), shr, input0); in ReplaceSignedDivPowerOfTwo() 296 Inst *ashr2 = graph->CreateInstAShr(inst->GetType(), inst->GetPc(), add, graph->FindOrCreateConstant(n)); in ReplaceSignedDivPowerOfTwo() 301 result = graph->CreateInstNeg(inst->GetType(), inst->GetPc(), ashr2); in ReplaceSignedDivPowerOfTwo() 329 auto shrInst = graph->CreateInstShr(inst->GetType(), inst->GetPc(), input0, power); in ReplaceUnsignedDivPowerOfTwo() 340 if (DataType::IsFloatType(inst->GetType())) { in SatisfyReplaceDivMovConditions() [all...] |
| /arkcompiler/runtime_core/static_core/runtime/mem/refstorage/ |
| H A D | reference.h | 62 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 in ark::ark::mem::Reference::ObjectType 122 ObjectType GetType() const in GetType() function in ark::ark::mem::Reference::ObjectType 124 return Reference::GetType(this); in GetType()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
| H A D | mir_const.cpp | 41 return ((&intConst.GetType() == &GetType()) && (intConst.value == value)); in operator ==() 90 if (&GetType() != &rhs.GetType()) { in operator ==() 117 return (&GetType() == &rhs.GetType()) && (puIdx == rhsAf.puIdx); in operator ==() 241 LogInfo::MapleLogger() << "conststr " << GetPrimTypeName(GetType().GetPrimType()); in Dump() 256 return (&rhs.GetType() == &GetType()) && (value == rhsCs.value); in operator ==() 267 LogInfo::MapleLogger() << "conststr16 " << GetPrimTypeName(GetType() in Dump() [all...] |
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| H A D | type.h | 232 uint32_t type = GetType(); in IsAnyType() 238 uint32_t type = GetType(); in IsNumberType() 246 uint32_t type = GetType(); in IsIntType() 252 uint32_t type = GetType(); in IsDoubleType() 258 uint32_t type = GetType(); in IsStringType() 264 uint32_t type = GetType(); in IsNullType() 270 uint32_t type = GetType(); in IsUndefinedType() 276 uint32_t type = GetType(); in IsBooleanType() 282 uint32_t type = GetType(); in IsBigIntType() 298 uint32_t type = GetType(); in IsSymbolType() 349 uint32_t GetType() const GetType() function in panda::ecmascript::kungfu::GateType [all...] |
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
| H A D | graph_checker.cpp | 253 [[maybe_unused]] auto realInputType = GetCommonType(input->GetType()); in CheckInputType() 294 ASSERT(DataType::Is32Bits(inst->GetType(), GetGraph()->GetArch())); in CheckUserOfInt32() 302 if (inst->IsLoad() && !DataType::IsTypeSigned(inst->GetType()) && arch == Arch::AARCH64 && in CheckUserOfInt32() 305 if (inst->IsLoad() && !DataType::IsTypeSigned(inst->GetType()) && arch == Arch::AARCH64) { in CheckUserOfInt32() 310 [[maybe_unused]] bool refToPtr = userInputType == DataType::POINTER && inst->GetType() == DataType::REFERENCE; in CheckUserOfInt32() 336 if (DataType::Is32Bits(inst->GetType(), GetGraph()->GetArch())) { in CheckUserOfInt32() 553 GetGraph()->IsDynamicMethod() || inst->GetType() != DataType::ANY, in CheckUserOfInt32() 588 if (DataType::IsFloatType(inst->GetType()) && !graph->GetUsedRegs<DataType::FLOAT64>()->empty()) { in CheckUserOfInt32() 1224 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::IsFloatType(inst->GetType()), in CheckUserOfInt32() 1231 if (inst->GetType() in CheckUserOfInt32() [all...] |
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| H A D | encoder_operands.cpp | 209 ASSERT_EQ(typedImmU8Z.GetType(), INT8_TYPE); in TEST() 210 ASSERT_EQ(typedImmU8.GetType(), INT8_TYPE); in TEST() 221 ASSERT_EQ(typedImmU16Z.GetType(), INT16_TYPE); in TEST() 222 ASSERT_EQ(typedImmU16.GetType(), INT16_TYPE); in TEST() 251 ASSERT_EQ(typedImmU32Z.GetType(), INT32_TYPE); in TEST() 252 ASSERT_EQ(typedImmU32.GetType(), INT32_TYPE); in TEST() 263 ASSERT_EQ(typedImmU64Z.GetType(), INT64_TYPE); in TEST() 264 ASSERT_EQ(typedImmU64.GetType(), INT64_TYPE); in TEST() 287 ASSERT_EQ(typedImmI8Z.GetType(), INT8_TYPE); in TEST() 288 ASSERT_EQ(typedImmI8.GetType(), INT8_TYP in TEST() [all...] |
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/call/ |
| H A D | proto_reader.h | 45 if (GetType().IsReference()) { in Advance() 51 ALWAYS_INLINE panda_file::Type GetType() in GetType() function in ark::ets::interop::js::ProtoReader 58 ASSERT(GetType().IsReference()); in GetClass() 64 ASSERT(GetType().IsReference()); in GetLoadedClass()
|
| /arkcompiler/ets_frontend/ets2panda/ir/ts/ |
| H A D | tsArrayType.cpp | 67 checker::Type *TSArrayType::GetType([[maybe_unused]] checker::TSChecker *checker) in GetType() function in ark::es2panda::ir::TSArrayType 69 return checker->Allocator()->New<checker::ArrayType>(elementType_->GetType(checker)); in GetType() 77 checker::Type *TSArrayType::GetType(checker::ETSChecker *checker) in GetType() function in ark::es2panda::ir::TSArrayType 79 auto *type = checker->CreateETSArrayType(elementType_->GetType(checker)); in GetType()
|
| H A D | tsIndexedAccessType.cpp | 69 checker::Type *TSIndexedAccessType::GetType([[maybe_unused]] checker::TSChecker *checker) in GetType() function in ark::es2panda::ir::TSIndexedAccessType 75 checker::Type *baseType = objectType_->GetType(checker); in GetType() 76 checker::Type *indexType = indexType_->GetType(checker); in GetType()
|
| /arkcompiler/ets_frontend/es2panda/ir/ts/ |
| H A D | tsIndexedAccessType.cpp | 41 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()
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/ |
| H A D | pgo_method_type_set.h | 46 auto combineType = result->GetType().CombineType(type); in AddType() 57 auto combineType = result->GetType().CombineCallTargetType(type); in AddCallTargetType() 248 SampleType combineType = GetType().CombineType(typeInfo.GetType()); in Merge() 252 SampleType GetType() const in GetType() function in panda::ecmascript::pgo::PGOMethodTypeSet::ScalarOpTemplate 283 return this->GetType() < right.GetType(); in operator <() 291 text += this->GetType().GetTypeString(); in ProcessToText() 297 this->GetType().GetTypeJson(sameOffsetTypeArray, std::to_string(this->GetOffset())); in ProcessToJson() 300 PGODefineOpType GetType() cons function in panda::ecmascript::pgo::PGOMethodTypeSet::ObjDefOpTemplate [all...] |
| H A D | pgo_method_type_set.cpp | 40 AddDefine(fromType.GetOffset(), fromType.GetType()); in Merge() 65 PGOSampleType::ConvertFrom(context, scalerInfo->GetType())); in ParseFromBinary() 69 type.ConvertFrom(context, defineInfo->GetType()); in ParseFromBinary() 94 if (!typeInfo.GetType().IsNone()) { in ProcessToBinary() 95 PGOSampleTypeRef sampleTypeRef = PGOSampleTypeRef::ConvertFrom(context, typeInfo.GetType()); in ProcessToBinary() 120 typeRef.ConvertFrom(context, typeInfo.GetType()); in ProcessToBinary() 162 if (typeInfoIter.GetType().IsNone()) { in ProcessToText() 173 text += typeInfoIter.GetType().GetTypeString(); in ProcessToText() 204 if (typeInfoIter.GetType().IsNone()) { in ProcessToJson() 209 typeInfoIter.GetType() in ProcessToJson() [all...] |
| /arkcompiler/runtime_core/static_core/compiler/code_info/ |
| H A D | vreg_info.h | 86 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/runtime_core/static_core/compiler/optimizer/code_generator/ |
| H A D | operands.h | 76 constexpr TypeInfo GetType() const in GetType() function in ark::compiler::final 83 return GetType().GetSize(); in GetSize() 88 return GetType().IsScalar(); in IsScalar() 93 return GetType().IsFloat(); in IsFloat() 108 return (GetId() == other.GetId()) && (GetType() == other.GetType()); in operator ==() 255 TypeInfo GetType() const in GetType() function in ark::compiler::final 311 TypeInfo GetType() const in GetType() function in ark::compiler::final 422 ShiftType GetType() const in GetType() function in ark::compiler::final
|
| /arkcompiler/ets_frontend/ets2panda/checker/ts/ |
| H A D | object.cpp | 58 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() [all...] |
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/ |
| H A D | encode.cpp | 191 ASSERT(imm.GetType() == INT64_TYPE); in ArchImm() 197 ASSERT(imm.GetType() == INT64_TYPE); in ImmToUnsignedInt() 432 ScopedTmpReg tmpReg(this, src0.GetType()); in EncodeJump() 436 ScopedTmpReg tmpReg(this, src1.GetType()); in EncodeJump() 440 } else if (src0.GetType() == FLOAT32_TYPE) { in EncodeJump() 480 ScopedTmpReg tmpReg(this, src.GetType()); in EncodeJump() 492 ScopedTmpReg tmpReg(this, src0.GetType()); in EncodeJumpTest() 496 ScopedTmpReg tmpReg(this, src1.GetType()); in EncodeJumpTest() 516 ScopedTmpReg tmpReg(this, src.GetType()); in EncodeJumpTest() 532 ScopedTmpReg tmpReg(this, src.GetType()); in EncodeJump() [all...] |
| /arkcompiler/runtime_core/assembler/tests/ |
| H A D | ecmascript_meta_test.cpp | 42 EXPECT_EQ(err.GetType(), result1->GetType()); in HWTEST_F() 53 EXPECT_EQ(result4->GetType(), pandasm::Metadata::Error::Type::UNEXPECTED_VALUE); in HWTEST_F() 125 EXPECT_EQ(result3->GetType(), pandasm::Metadata::Error::Type::UNKNOWN_ATTRIBUTE); in HWTEST_F() 149 EXPECT_EQ(err.GetType(), pandasm::Metadata::Error::Type::MISSING_ATTRIBUTE); in HWTEST_F()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
| H A D | bounds_analysis.cpp | 692 ASSERT(!IsFloatType(inst->GetType())); in FindBoundsRange() 693 ASSERT(inst->GetType() == DataType::REFERENCE || DataType::GetCommonType(inst->GetType()) == DataType::INT64); in FindBoundsRange() 695 ASSERT(inst->GetType() == DataType::REFERENCE); in FindBoundsRange() 699 ASSERT(inst->GetType() == DataType::REFERENCE); in FindBoundsRange() 711 ASSERT(inst->GetType() == DataType::INT64); in FindBoundsRange() 716 ASSERT(inst->GetType() == DataType::INT32); in FindBoundsRange() 727 return BoundsRange(0, maxLength, nullptr, inst->GetType()); in FindBoundsRange() 730 return BoundsRange(inst->GetType()); in FindBoundsRange() 742 ASSERT(inst->GetType() in SetBoundsRange() [all...] |
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
| H A D | gc_trigger.h | 125 virtual GCTriggerType GetType() const = 0; 140 GCTriggerType GetType() const override 193 GCTriggerType GetType() const override 216 GCTriggerType GetType() const override 234 GCTriggerType GetType() const override 252 GCTriggerType GetType() const override 271 GCTriggerType GetType() const override 307 GCTriggerType GetType() const override
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| H A D | graph_checker.h | 123 (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/compiler/optimizer/ir_builder/ |
| H A D | inst_builder-inl.h | 50 ASSERT(input->GetType() == DataType::REFERENCE); in BuildCastToAnyString() 67 auto type = input->GetType(); in BuildCastToAnyNumber() 70 if (const_insn->GetType() == DataType::INT64) { in BuildCastToAnyNumber()
|
| /arkcompiler/runtime_core/plugins/ecmascript/tests/ |
| H A D | ecmascript_meta_test.cpp | 31 ASSERT_EQ(err.GetType(), result1->GetType()); in HWTEST() 42 ASSERT_EQ(result4->GetType(), pandasm::Metadata::Error::Type::UNEXPECTED_VALUE); in HWTEST()
|