/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
D | aarch64_operand.cpp | 31 if (GetKind() != right.GetKind()) { in Less() 32 return GetKind() < right.GetKind(); in Less() 51 if (GetKind() != right.GetKind()) { in Less() 52 return GetKind() < right.GetKind(); in Less()
|
D | aarch64_memlayout.cpp | 69 DEBUG_ASSERT(ty->GetKind() == kTypeStruct || ty->GetKind() == kTypeClass || in ComputeStackSpaceRequirementForCall() 70 ty->GetKind() == kTypeUnion, in ComputeStackSpaceRequirementForCall() 72 if (ty->GetKind() == kTypeStruct || ty->GetKind() == kTypeUnion) { in ComputeStackSpaceRequirementForCall() 82 DEBUG_ASSERT(ty->GetKind() == kTypePointer, "expect pointer"); in ComputeStackSpaceRequirementForCall() 85 DEBUG_ASSERT(ty->GetKind() == kTypeStruct || ty->GetKind() == kTypeClass || in ComputeStackSpaceRequirementForCall() 86 ty->GetKind() == kTypeUnion, in ComputeStackSpaceRequirementForCall() 88 if (ty->GetKind() == kTypeStruct || ty->GetKind() == kTypeUnion) { in ComputeStackSpaceRequirementForCall()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
D | mir_const.cpp | 33 if (GetKind() != rhs.GetKind()) { in operator ==() 79 if (GetKind() != rhs.GetKind()) { in operator ==() 102 if (GetKind() != rhs.GetKind()) { in operator ==() 121 if (GetKind() != rhs.GetKind()) { in operator ==() 133 if (GetKind() != rhs.GetKind()) { in operator ==() 155 if (GetKind() != rhs.GetKind()) { in operator ==() 177 if (GetKind() != rhs.GetKind()) { in operator ==() 192 if (GetKind() != rhs.GetKind()) { in operator ==() 260 if (GetKind() != rhs.GetKind()) { in operator ==() 287 if (GetKind() != rhs.GetKind()) { in operator ==()
|
D | mir_module.cpp | 263 if (type->GetKind() == kTypeByName) { in DumpGlobals() 319 if (symbolType == nullptr || symbolType->GetKind() != kTypeArray) { in DumpGlobalArraySymbol() 420 if (type->GetKind() == kTypeByName) { in DumpDefType() 522 if (type->GetKind() == kTypeClass || type->GetKind() == kTypeInterface) { in DumpToHeaderFile() 553 …DEBUG_ASSERT(ty.GetKind() == kTypeClass || ty.GetKind() == kTypeStruct || ty.GetKind() == kTypeUni… in DumpTypeTreeToCxxHeaderFile() 554 ty.GetKind() == kTypeInterface, in DumpTypeTreeToCxxHeaderFile() 559 if (ty.GetKind() == kTypeInterface) { in DumpTypeTreeToCxxHeaderFile() 564 DEBUG_ASSERT(ty.GetKind() != kTypeStruct, "type is not supposed to be struct"); in DumpTypeTreeToCxxHeaderFile() 565 DEBUG_ASSERT(ty.GetKind() != kTypeUnion, "type is not supposed to be union"); in DumpTypeTreeToCxxHeaderFile() 566 DEBUG_ASSERT(ty.GetKind() != kTypeInterface, "type is not supposed to be interface"); in DumpTypeTreeToCxxHeaderFile() [all …]
|
D | mir_type.cpp | 959 if (elemType->GetKind() == kTypeScalar) { in DetermineName() 963 } else if (elemType->GetKind() == kTypePointer) { in DetermineName() 966 if (pType->GetKind() == kTypeByName || pType->GetKind() == kTypeClass || in DetermineName() 967 pType->GetKind() == kTypeInterface || pType->GetKind() == kTypeClassIncomplete || in DetermineName() 968 pType->GetKind() == kTypeInterfaceIncomplete) { in DetermineName() 972 } else if (pType->GetKind() == kTypeJArray) { in DetermineName() 1023 if (pointedType->GetKind() == kTypeFunction) { // no * for function pointer in Dump() 1228 fieldVar->GetKonst()->GetKind() == kConstStr16Const) { in DumpFields() 1385 if (fieldType->GetKind() != kTypeBitField) { in GetSize() 1430 if (fieldType->GetKind() == kTypeBitField) { in GetAlign() [all …]
|
D | parser.cpp | 587 MIRTypeKind tyKind = type.GetKind(); in ParseFields() 848 …DEBUG_ASSERT(prevType->GetKind() == kTypeStruct || prevType->IsIncomplete(), "type kind should be … in ParseStructType() 859 if (prevType->GetKind() == kTypeByName || in ParseStructType() 860 (prevType->GetKind() == kTypeStructIncomplete && tkind == kTypeStruct)) { in ParseStructType() 894 if (prevType != nullptr && prevType->GetKind() != kTypeByName) { in ParseClassType() 895 …DEBUG_ASSERT(prevType->GetKind() == kTypeClass || prevType->IsIncomplete(), "type kind should be c… in ParseClassType() 939 DEBUG_ASSERT(prevType->GetKind() == kTypeInterface || prevType->IsIncomplete(), in ParseInterfaceType() 1215 if (stype->GetKind() == kind) { in ParseDefinedTypename() 1530 if (type->GetKind() == kTypePointer) { in FixForwardReferencedTypeForOneAgg() 1536 } else if (type->GetKind() == kTypeArray) { in FixForwardReferencedTypeForOneAgg() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
D | ir_safe_cast_traits.def | 22 REGISTER_SAFE_CAST(MIRIntConst, from.GetKind() == kConstInt); 23 REGISTER_SAFE_CAST(MIRAddrofConst, from.GetKind() == kConstAddrof); 24 REGISTER_SAFE_CAST(MIRAddroffuncConst, from.GetKind() == kConstAddrofFunc); 25 REGISTER_SAFE_CAST(MIRLblConst, from.GetKind() == kConstLblConst); 26 REGISTER_SAFE_CAST(MIRStrConst, from.GetKind() == kConstStrConst); 27 REGISTER_SAFE_CAST(MIRStr16Const, from.GetKind() == kConstStr16Const); 28 REGISTER_SAFE_CAST(MIRFloatConst, from.GetKind() == kConstFloatConst); 29 REGISTER_SAFE_CAST(MIRDoubleConst, from.GetKind() == kConstDoubleConst); 30 REGISTER_SAFE_CAST(MIRFloat128Const, from.GetKind() == kConstFloat128Const); 31 REGISTER_SAFE_CAST(MIRAggConst, from.GetKind() == kConstAggConst); [all …]
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
D | locations.h | 67 return NAMES[static_cast<unsigned>(GetKind())]; in GetName() 87 return GetKind() == Kind::INVALID; in IsInvalid() 92 return GetKind() == Kind::IMMEDIATE; in IsConstant() 97 return GetKind() == Kind::REGISTER; in IsRegister() 102 return GetKind() == Kind::FP_REGISTER; in IsFpRegister() 107 return GetKind() == Kind::STACK; in IsStack() 112 return GetKind() == Kind::STACK_ARGUMENT; in IsStackArgument() 117 return GetKind() == Kind::STACK_PARAMETER; in IsStackParameter() 136 Kind GetKind() const in GetKind() function
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | locations.h | 66 return names[static_cast<unsigned>(GetKind())]; in GetName() 86 return GetKind() == Kind::INVALID; in IsInvalid() 91 return GetKind() == Kind::IMMEDIATE; in IsConstant() 96 return GetKind() == Kind::REGISTER; in IsRegister() 101 return GetKind() == Kind::FP_REGISTER; in IsFpRegister() 106 return GetKind() == Kind::STACK; in IsStack() 111 return GetKind() == Kind::STACK_ARGUMENT; in IsStackArgument() 116 return GetKind() == Kind::STACK_PARAMETER; in IsStackParameter() 135 Kind GetKind() const in GetKind() function
|
D | spill_fill_data.h | 38 return src_.GetKind(); in SrcType() 42 return dst_.GetKind(); in DstType()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
D | operand.cpp | 153 if (GetKind() != right.GetKind()) { in Less() 154 return GetKind() < right.GetKind(); in Less() 214 if (GetKind() != right.GetKind()) { in Less() 215 return GetKind() < right.GetKind(); in Less()
|
D | cfgo.cpp | 39 … if (!bb->IsEmptyOrCommentOnly() || bb->IsUnreachable() || bb->GetKind() != BB::kBBFallthru) { in NoInsnBetween() 178 if (newTarget->GetKind() == BB::kBBGoto) { in ClearCurBBAndResetTargetBB() 225 if (curBB.GetKind() == BB::kBBFallthru) { in Optimize() 229 if (curBB.GetKind() == BB::kBBGoto && !curBB.IsEmpty()) { in Optimize() 249 if (sucBB->GetKind() == BB::kBBGoto && !IsLabelInLSDAOrSwitchTable(sucBB->GetLabIdx()) && in Optimize() 256 sucBB->GetKind() != BB::kBBThrow) { in Optimize() 280 …sucBB->GetKind() == BB::kBBReturn && sucBB->GetPreds().size() > 1 && sucBB->GetPrev() != nullptr && in Optimize() 282 … (sucBB->GetPrev()->GetKind() == BB::kBBFallthru || sucBB->GetPrev()->GetKind() == BB::kBBGoto)) { in Optimize() 316 if (curBB.GetKind() == BB::kBBGoto && !curBB.IsEmpty()) { in Optimize() 329 } else if (curBB.GetKind() == BB::kBBIf) { in Optimize() [all …]
|
D | cg.cpp | 67 … if ((mirType->GetKind() != kTypeClass) && (mirType->GetKind() != kTypeClassIncomplete)) { in GenExtraTypeMetadata() 206 if (curStructType.GetKind() == kTypeClass) { in AppendReferenceOffsets64() 210 if (maybeParent->GetKind() == kTypeClass) { in AppendReferenceOffsets64() 226 auto fieldTypeKind = fieldType->GetKind(); in AppendReferenceOffsets64() 267 if (structType.GetKind() == kTypeClass) { in GetReferenceOffsets64() 273 … } else if (structType.GetKind() != kTypeInterface) { /* interface doesn't have reference fields */ in GetReferenceOffsets64()
|
D | cg_cfg.cpp | 55 BB::BBKind kind = curBB->GetKind(); in BuildCFG() 271 if (first.GetKind() == BB::kBBReturn || second.GetKind() == BB::kBBReturn) { in BBJudge() 325 if (mergee.GetKind() == BB::kBBReturn) { in MergeBB() 333 if (mergee.GetKind() == BB::kBBRangeGoto) { in MergeBB() 341 if (merger.GetKind() == BB::kBBGoto) { in MergeBB() 374 merger.SetKind(mergee.GetKind()); in MergeBB() 512 if (preBB->GetKind() == BB::kBBIgoto) { in RemoveBB() 564 switch (curBB.GetKind()) { in GetTargetSuc() 570 (curBB.GetKind() == BB::kBBGoto || curBB.GetKind() == BB::kBBIf) && in GetTargetSuc() 571 … (curBB.GetPrev()->GetKind() == BB::kBBGoto || curBB.GetPrev()->GetKind() == BB::kBBIf)) { in GetTargetSuc() [all …]
|
D | cg_critical_edge.cpp | 38 if (pred->GetKind() == BB::kBBGoto || pred->GetKind() == BB::kBBIgoto) { in CollectCriticalEdges()
|
D | emit.cpp | 415 MIRTypeKind kind = mirSymbol.GetType()->GetKind(); in EmitAsmLabel() 439 …if (mirSymbol.GetType()->GetKind() == kTypeStruct || mirSymbol.GetType()->GetKind() == kTypeClass … in EmitAsmLabel() 440 … mirSymbol.GetType()->GetKind() == kTypeArray || mirSymbol.GetType()->GetKind() == kTypeUnion) { in EmitAsmLabel() 597 if ((nextType == nullptr) || (kTypeBitField != nextType->GetKind())) { in EmitBitFieldConstant() 725 switch (mirConst.GetKind()) { in EmitScalarConstant() 1248 if (pAddrConst->GetKind() == kConstAddrof) { in GetAddroffuncConst() 1255 if (funcAddrConst->GetKind() == kConstAddrofFunc) { in GetAddroffuncConst() 1258 } else if (funcAddrConst->GetKind() == kConstInt) { in GetAddroffuncConst() 1269 if (funcConst->GetKind() == kConstAddrofFunc) { in GetAddroffuncConst() 1273 } else if (pAddrConst->GetKind() == kConstAddrofFunc) { in GetAddroffuncConst() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
D | x64_memlayout.cpp | 51 DEBUG_ASSERT(ty->GetKind() == kTypeStruct || ty->GetKind() == kTypeClass || in ComputeStackSpaceRequirementForCall() 52 ty->GetKind() == kTypeUnion, in ComputeStackSpaceRequirementForCall() 54 if (ty->GetKind() == kTypeStruct || ty->GetKind() == kTypeUnion) { in ComputeStackSpaceRequirementForCall() 64 DEBUG_ASSERT(ty->GetKind() == kTypePointer, "expect pointer"); in ComputeStackSpaceRequirementForCall() 67 DEBUG_ASSERT(ty->GetKind() == kTypeStruct || ty->GetKind() == kTypeClass || in ComputeStackSpaceRequirementForCall() 68 ty->GetKind() == kTypeUnion, in ComputeStackSpaceRequirementForCall() 70 if (ty->GetKind() == kTypeStruct || ty->GetKind() == kTypeUnion) { in ComputeStackSpaceRequirementForCall()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/types/ |
D | pgo_profile_type.h | 215 return GetKind() == Kind::BuiltinsId; in IsBuiltinsType() 220 return GetKind() == Kind::ClassId; in IsClassType() 225 return GetKind() == Kind::MethodId; in IsMethodId() 230 return GetKind() == Kind::BuiltinFunctionId; in IsBuiltinFunctionId() 235 return GetKind() == Kind::LiteralId; in IsLiteralType() 240 return GetKind() == Kind::ConstructorId; in IsConstructor() 245 return GetKind() == Kind::PrototypeId; in IsPrototype() 250 return GetKind() == Kind::MegaStateKinds; in IsMegaStateType() 258 Kind GetKind() const in GetKind() function 292 ", kind: " << std::showbase << std::dec << static_cast<uint32_t>(GetKind()) << in GetTypeString() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | bytecodes.h | 126 return GetKind() == BytecodeKind::MOV; in IsMov() 131 return GetKind() == BytecodeKind::RETURN_BC; in IsReturn() 136 return GetKind() == BytecodeKind::THROW_BC; in IsThrow() 146 return GetKind() == BytecodeKind::CONDITIONAL_JUMP; in IsCondJump() 151 return GetKind() == BytecodeKind::JUMP_IMM; in IsJumpImm() 156 return GetKind() == BytecodeKind::SUSPEND; in IsSuspend() 161 return GetKind() == BytecodeKind::SET_CONSTANT; in IsSetConstant() 181 return GetKind() == BytecodeKind::GENERATOR_RESOLVE; in IsGeneratorResolve() 186 BytecodeKind kind = GetKind(); in IsGeneratorRelative() 193 return GetKind() == BytecodeKind::DISCARDED; in IsDiscarded() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/ |
D | becommon.cpp | 166 if (structType.GetKind() != kTypeUnion) { in ComputeStructTypeSizesAligns() 167 if (fieldType->GetKind() == kTypeBitField) { in ComputeStructTypeSizesAligns() 210 if ((j != 0) && ((j + 1) == fields.size()) && (fieldType->GetKind() == kTypeArray) && in ComputeStructTypeSizesAligns() 281 if ((fieldType->GetKind() == kTypePointer) && (fieldType->GetPrimType() == PTY_a64)) { in ComputeClassTypeSizesAligns() 303 AddElementToJClassLayout(classType, JClassFieldInfo(fieldType->GetKind() == kTypePointer, in ComputeClassTypeSizesAligns() 370 switch (ty.GetKind()) { in ComputeTypeSizesAligns() 422 switch (ty.GetKind()) { in LowerJavaTypeAttribute() 440 if (fieldType->GetKind() == kTypeClass) { in LowerJavaVolatileInClassType() 449 if (structType.GetKind() == kTypeClass) { in IsRefField() 490 if ((fieldType->GetKind() == kTypePointer) && (fieldType->GetPrimType() == PTY_a64)) { in GenFieldOffsetMap() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
D | class_hierarchy.cpp | 60 …DEBUG_ASSERT(type->GetKind() == kTypeClass || type->GetKind() == kTypeInterface || type->IsIncompl… in Klass() 447 if (baseType->GetKind() == kTypePointer && targetType->GetKind() == kTypePointer) { in UpdateFieldID() 451 if (baseType->GetKind() != kTypeClass || targetType->GetKind() != kTypeClass) { in UpdateFieldID() 546 MIRTypeKind kd = type->GetKind(); in AddKlasses() 562 …} else if (type == nullptr || (type->GetKind() != kTypeClass && type->GetKind() != kTypeInterface)… in AddKlasses() 968 …if ((n.GetPrimType() == PTY_ref || n.GetPrimType() == PTY_ptr) && type.GetKind() == kTypePointer) { in MayRefString() 984 …if ((n.GetPrimType() == PTY_ref || n.GetPrimType() == PTY_ptr) && type.GetKind() == kTypePointer) { in MayRefMeta() 1035 …CHECK_FATAL((n.GetPrimType() == PTY_ref || n.GetPrimType() == PTY_ptr) && type.GetKind() == kTypeP… in MayNotRefCyclicly() 1049 if (type.GetKind() == kTypeScalar) { // primitive type in NotCyclicType() 1052 if (type.GetKind() == kTypePointer) { in NotCyclicType() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
D | operand.h | 98 OperandType GetKind() const in GetKind() function 206 return opndKind == op.GetKind() && size == op.GetSize(); in BasicEquals() 331 if (opndKind != right.GetKind()) { in Less() 332 return opndKind < right.GetKind(); in Less() 744 if (opndKind != right.GetKind()) { in Less() 745 return opndKind < right.GetKind(); in Less() 1494 if (opndKind != right.GetKind()) { in Less() 1495 return opndKind < right.GetKind(); in Less() 1563 if (opndKind != right.GetKind()) { in Less() 1564 return opndKind < right.GetKind(); in Less() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
D | ic_handler_test.cpp | 69 EXPECT_EQ(HandlerBase::GetKind(result.GetInt()), HandlerKind::ELEMENT); in HWTEST_F_L0() 93 EXPECT_EQ(HandlerBase::GetKind(handlerInfo1->GetInt()), HandlerKind::NON_EXIST); in HWTEST_F_L0() 104 EXPECT_EQ(HandlerBase::GetKind(handlerInfo3->GetInt()), HandlerKind::FIELD); in HWTEST_F_L0() 128 EXPECT_EQ(HandlerBase::GetKind(handlerInfo1->GetInt()), HandlerKind::ELEMENT); in HWTEST_F_L0() 129 EXPECT_EQ(HandlerBase::GetKind(handlerInfo2->GetInt()), HandlerKind::ELEMENT); in HWTEST_F_L0() 130 EXPECT_EQ(HandlerBase::GetKind(handlerInfo3->GetInt()), HandlerKind::ELEMENT); in HWTEST_F_L0() 174 EXPECT_EQ(HandlerBase::GetKind(handlerInfo3->GetInt()), HandlerKind::FIELD); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | ic_handler.h | 91 return GetKind(handler) == HandlerKind::NON_EXIST; in IsNonExist() 96 return GetKind(handler) == HandlerKind::FIELD; in IsField() 101 return static_cast<StoreHandlerKind>(GetKind(handler)) == StoreHandlerKind::S_FIELD; in IsNonSharedStoreField() 116 return GetKind(handler) == HandlerKind::STRING; in IsString() 121 return GetKind(handler) == HandlerKind::STRING_LENGTH; in IsStringLength() 131 return GetKind(handler) == HandlerKind::ELEMENT; in IsNormalElement() 136 return GetKind(handler) == HandlerKind::STRING; in IsStringElement() 141 return GetKind(handler) == HandlerKind::TYPED_ARRAY; in IsTypedArrayElement() 146 return GetKind(handler) == HandlerKind::DICTIONARY; in IsDictionary() 154 static inline HandlerKind GetKind(uint32_t handler) in GetKind() function
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
D | ets_typeapi_create.h | 130 virtual TypeCreatorKind GetKind() const = 0; 148 TypeCreatorKind GetKind() const override in GetKind() function 171 TypeCreatorKind GetKind() const override in GetKind() function 201 TypeCreatorKind GetKind() const override in GetKind() function
|