/arkcompiler/ets_runtime/ecmascript/interpreter/ |
H A D | frame_handler.h | 64 FrameType type = GetFrameType(); in IsEntryFrame() local 65 if (type == FrameType::BUILTIN_ENTRY_FRAME || in IsEntryFrame() 66 type == FrameType::INTERPRETER_ENTRY_FRAME || in IsEntryFrame() 67 type == FrameType::ASM_INTERPRETER_ENTRY_FRAME || in IsEntryFrame() 68 type == FrameType::OPTIMIZED_ENTRY_FRAME) { in IsEntryFrame() 70 } else if (type == FrameType::ASM_INTERPRETER_BRIDGE_FRAME || in IsEntryFrame() 71 type == FrameType::INTERPRETER_FRAME) { in IsEntryFrame() 81 FrameType type = GetFrameType(); in IsInterpretedFrame() local 82 return IsInterpretedFrame(type); in IsInterpretedFrame() 85 bool IsInterpretedFrame(FrameType type) cons 92 FrameType type = GetFrameType(); IsJSFrame() local 98 FrameType type = GetFrameType(); IsOptimizedJSFunctionFrame() local 123 FrameType type = it.GetFrameType(); IsAsmInterpretedFrame() local 135 FrameType type = GetFrameType(); IsBuiltinFrame() local 146 FrameType type = GetFrameType(); IsInterpretedEntryFrame() local 162 FrameType type = GetFrameType(); IsAsmInterpretedEntryFrame() local 193 FrameType type = GetFrameType(); IsLeaveFrame() local 199 FrameType type = GetFrameType(); IsInterpreterBuiltinFrame() local [all...] |
/arkcompiler/runtime_core/assembler/tests/ |
H A D | annotation_test.cpp | 35 * @tc.type: FUNC 68 * @tc.type: FUNC 73 char type = '1'; in HWTEST_F() local 75 EXPECT_EQ(type_u1, type); in HWTEST_F() 77 type = '2'; in HWTEST_F() 79 EXPECT_EQ(type_u1, type); in HWTEST_F() 81 type = '3'; in HWTEST_F() 83 EXPECT_EQ(type_u1, type); in HWTEST_F() 85 type = '4'; in HWTEST_F() 87 EXPECT_EQ(type_u1, type); in HWTEST_F() 242 panda::pandasm::Value::Type type = Value::GetCharAsType('1'); HWTEST_F() local 368 std::string type = "u1"; HWTEST_F() local 497 panda::pandasm::Type type; HWTEST_F() local [all...] |
H A D | assembler_lexer_test.cpp | 33 * @tc.type: FUNC 41 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in HWTEST_F() 42 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in HWTEST_F() 43 EXPECT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in HWTEST_F() 44 EXPECT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in HWTEST_F() 51 * @tc.type: FUNC 59 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in HWTEST_F() 60 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in HWTEST_F() 67 * @tc.type: FUNC 75 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "I in HWTEST_F() [all...] |
H A D | lexer_test.cpp | 30 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 31 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 32 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST() 33 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST() 42 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 43 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 52 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 53 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST() 54 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected"; in TEST() 55 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "I in TEST() [all...] |
/arkcompiler/runtime_core/assembler/ |
H A D | annotation.h | 27 #include "assembly-type.h" 105 char type = '0'; in GetTypeAsChar() local 108 type = '1'; in GetTypeAsChar() 111 type = '2'; in GetTypeAsChar() 114 type = '3'; in GetTypeAsChar() 117 type = '4'; in GetTypeAsChar() 120 type = '5'; in GetTypeAsChar() 123 type = '6'; in GetTypeAsChar() 126 type = '7'; in GetTypeAsChar() 129 type in GetTypeAsChar() 179 char type = '0'; GetArrayTypeAsChar() local 241 Type type = Type::UNKNOWN; GetCharAsType() local 315 Type type = Type::UNKNOWN; GetCharAsArrayType() local 402 Value(Type type) Value() argument 501 ScalarValue(Type type, uint64_t value) ScalarValue() argument 503 ScalarValue(Type type, float value) ScalarValue() argument 505 ScalarValue(Type type, double value) ScalarValue() argument 507 ScalarValue(Type type, const std::string_view &value) ScalarValue() argument 509 ScalarValue(Type type, pandasm::Type value) ScalarValue() argument 511 ScalarValue(Type type, AnnotationData &value) ScalarValue() argument [all...] |
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | annotation.h | 27 #include "assembly-type.h" 101 char type = '0'; in GetTypeAsChar() local 104 type = '1'; in GetTypeAsChar() 107 type = '2'; in GetTypeAsChar() 110 type = '3'; in GetTypeAsChar() 113 type = '4'; in GetTypeAsChar() 116 type = '5'; in GetTypeAsChar() 119 type = '6'; in GetTypeAsChar() 122 type = '7'; in GetTypeAsChar() 125 type in GetTypeAsChar() 173 char type = '0'; GetArrayTypeAsChar() local 236 Type type = Type::UNKNOWN; GetCharAsType() local 308 Type type = Type::UNKNOWN; GetCharAsArrayType() local 392 Value(Type type) Value() argument 489 ScalarValue(Type type, uint64_t value) ScalarValue() argument 491 ScalarValue(Type type, float value) ScalarValue() argument 493 ScalarValue(Type type, double value) ScalarValue() argument 495 ScalarValue(Type type, std::string_view value) ScalarValue() argument 497 ScalarValue(Type type, pandasm::Type value) ScalarValue() argument 499 ScalarValue(Type type, AnnotationData &value) ScalarValue() argument [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | object.cpp | 41 void TSChecker::CheckIndexConstraints(Type *type) in CheckIndexConstraints() argument 43 if (!type->IsObjectType()) { in CheckIndexConstraints() 47 ObjectType *objType = type->AsObjectType(); in CheckIndexConstraints() 59 {"Property '", it->Name(), "' of type '", propType, in CheckIndexConstraints() 60 "' is not assignable to numeric index type '", numberInfo->GetType(), "'."}, in CheckIndexConstraints() 70 {"Property '", it->Name(), "' of type '", propType, in CheckIndexConstraints() 71 "' is not assignable to string index type '", 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() 83 void TSChecker::ResolveStructuredTypeMembers(Type *type) in ResolveStructuredTypeMembers() argument 105 ResolveUnionTypeMembers(UnionType *type) ResolveUnionTypeMembers() argument 162 ResolveInterfaceOrClassTypeMembers(InterfaceType *type) ResolveInterfaceOrClassTypeMembers() argument 174 ResolveObjectTypeMembers(ObjectType *type) ResolveObjectTypeMembers() argument 195 ResolvePropertiesOfObjectType(ObjectType *type, ir::AstNode *member, ArenaVector<ir::TSSignatureDeclaration *> &signatureDeclarations, ArenaVector<ir::TSIndexSignature *> &indexDeclarations, bool isInterface) ResolvePropertiesOfObjectType() argument 230 ResolveSignaturesOfObjectType(ObjectType *type, ArenaVector<ir::TSSignatureDeclaration *> &signatureDeclarations) ResolveSignaturesOfObjectType() argument 245 ResolveIndexInfosOfObjectType(ObjectType *type, ArenaVector<ir::TSIndexSignature *> &indexDeclarations) ResolveIndexInfosOfObjectType() argument 271 GetPropertyOfType(Type *type, const util::StringView &name, bool getPartial, varbinder::VariableFlags propagateFlags) GetPropertyOfType() argument 286 GetPropertyOfUnionType(UnionType *type, const util::StringView &name, bool getPartial, varbinder::VariableFlags propagateFlags) GetPropertyOfUnionType() argument 365 GetApplicableIndexInfo(Type *type, Type *indexType) GetApplicableIndexInfo() argument 391 GetPropertyTypeForIndexType(Type *type, Type *indexType) GetPropertyTypeForIndexType() argument 436 GetBaseTypes(InterfaceType *type) GetBaseTypes() argument 493 CheckExtendsBases(ObjectType *&baseObj, InterfaceType *&type, varbinder::InterfaceDecl *&decl) CheckExtendsBases() argument 504 ResolveDeclaredMembers(InterfaceType *type) ResolveDeclaredMembers() argument 528 ValidateInterfaceMemberRedeclaration(ObjectType *type, varbinder::Variable *prop, const lexer::SourcePosition &locInfo) ValidateInterfaceMemberRedeclaration() argument [all...] |
H A D | helpers.cpp | 37 void TSChecker::CheckTruthinessOfType(Type *type, lexer::SourcePosition lineInfo) in CheckTruthinessOfType() argument 39 if (type->IsVoidType()) { in CheckTruthinessOfType() 40 ThrowTypeError("An expression of type void cannot be tested for truthiness", lineInfo); in CheckTruthinessOfType() 44 Type *TSChecker::CheckNonNullType(Type *type, lexer::SourcePosition lineInfo) in CheckNonNullType() argument 46 if (type->IsNullType()) { in CheckNonNullType() 50 if (type->IsUndefinedType()) { in CheckNonNullType() 54 return type; in CheckNonNullType() 57 Type *TSChecker::GetBaseTypeOfLiteralType(Type *type) in GetBaseTypeOfLiteralType() argument 60 return type; in GetBaseTypeOfLiteralType() 63 if (type in GetBaseTypeOfLiteralType() 114 CheckTestingKnownTruthyCallableOrAwaitableType([[maybe_unused]] ir::Expression *condExpr, [[maybe_unused]] Type *type, [[maybe_unused]] ir::AstNode *body) CheckTestingKnownTruthyCallableOrAwaitableType() argument 121 ExtractDefinitelyFalsyTypes(Type *type) ExtractDefinitelyFalsyTypes() argument 158 RemoveDefinitelyFalsyTypes(Type *type) RemoveDefinitelyFalsyTypes() argument 188 GetFalsyFlags(Type *type) GetFalsyFlags() argument [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | escompat_Atomics.cpp | 35 #define SHARED_MEMORY_AT(type, postfix) \ 36 extern "C" type SharedMemoryAt##postfix(EtsSharedMemory *mem, int32_t index) \ 39 return mem->GetElement<type>(index); \ 42 #define SHARED_MEMORY_SET(type, postfix) \ 43 extern "C" void SharedMemorySet##postfix(EtsSharedMemory *mem, int32_t index, type value) \ 45 mem->SetElement<type>(index, value); \ 48 #define SHARED_MEMORY_ADD(type, postfix) \ 49 extern "C" type SharedMemoryAdd##postfix(EtsSharedMemory *mem, int32_t index, type value) \ 51 auto add = [value](type oldValu [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | free_object_list.cpp | 52 SetType type = SelectSetType(size); in Allocate() local 53 if (type == FreeObjectSet<T>::INVALID_SET_TYPE) { in Allocate() 57 SetType lastType = type - 1; in Allocate() 58 for (type = static_cast<int32_t>(CalcNextNoneEmptyIndex(type)); type > lastType && type < NUMBER_OF_SETS; in Allocate() 59 type = static_cast<int32_t>(CalcNextNoneEmptyIndex(type + 1))) { in Allocate() 60 lastType = type; in Allocate() 98 SetType type = SelectSetType(size); LookupSuitableFreeObject() local 142 SetType type = SelectSetType(size); FreeImpl() local 203 SetType type = SelectSetType(size); MatchFreeObjectInSet() local 224 SetType type = set->setType_; AddSet() local 254 SetType type = set->setType_; RemoveSet() local 312 EnumerateSets(SetType type, const Callback &cb) const EnumerateSets() argument [all...] |
H A D | concurrent_sweeper.cpp | 22 ConcurrentSweeper::ConcurrentSweeper(Heap *heap, EnableConcurrentSweepType type) in ConcurrentSweeper() argument 24 enableType_(type) in ConcurrentSweeper() 55 for (int type = startSpaceType_; type < FREE_LIST_NUM; type++) { in Sweep() 56 remainingTaskNum_[type] = FREE_LIST_NUM - startSpaceType_; in Sweep() 69 void ConcurrentSweeper::AsyncSweepSpace(MemSpaceType type, bool isMain) in AsyncSweepSpace() argument 71 auto space = heap_->GetSpaceWithType(type); in AsyncSweepSpace() 74 LockHolder holder(mutexs_[type]); in AsyncSweepSpace() 75 if (--remainingTaskNum_[type] in AsyncSweepSpace() 109 EnsureTaskFinished(MemSpaceType type) EnsureTaskFinished() argument 115 EnsureTaskFinishedNoCheck(MemSpaceType type) EnsureTaskFinishedNoCheck() argument 123 WaitingTaskFinish(MemSpaceType type) WaitingTaskFinish() argument 165 auto type = static_cast<MemSpaceType>(((i + type_) % sweepTypeNum) + sweeper_->startSpaceType_); Run() local 171 EnableConcurrentSweep(EnableConcurrentSweepType type) EnableConcurrentSweep() argument [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | object.cpp | 43 void Checker::CheckIndexConstraints(Type *type) in CheckIndexConstraints() argument 45 if (!type->IsObjectType()) { in CheckIndexConstraints() 49 ObjectType *objType = type->AsObjectType(); in CheckIndexConstraints() 61 {"Property '", it->Name(), "' of type '", propType, in CheckIndexConstraints() 62 "' is not assignable to numeric index type '", numberInfo->GetType(), "'."}, in CheckIndexConstraints() 72 {"Property '", it->Name(), "' of type '", propType, in CheckIndexConstraints() 73 "' is not assignable to string index type '", 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() 85 void Checker::ResolveStructuredTypeMembers(Type *type) in ResolveStructuredTypeMembers() argument 107 ResolveUnionTypeMembers(UnionType *type) ResolveUnionTypeMembers() argument 166 ResolveInterfaceOrClassTypeMembers(InterfaceType *type) ResolveInterfaceOrClassTypeMembers() argument 178 ResolveObjectTypeMembers(ObjectType *type) ResolveObjectTypeMembers() argument 199 ResolvePropertiesOfObjectType(ObjectType *type, const ir::Expression *member, ArenaVector<const ir::TSSignatureDeclaration *> &signatureDeclarations, ArenaVector<const ir::TSIndexSignature *> &indexDeclarations, bool isInterface) ResolvePropertiesOfObjectType() argument 235 ResolveSignaturesOfObjectType(ObjectType *type, ArenaVector<const ir::TSSignatureDeclaration *> &signatureDeclarations) ResolveSignaturesOfObjectType() argument 250 ResolveIndexInfosOfObjectType(ObjectType *type, ArenaVector<const ir::TSIndexSignature *> &indexDeclarations) ResolveIndexInfosOfObjectType() argument 277 GetPropertyOfType(Type *type, const util::StringView &name, bool getPartial, binder::VariableFlags propagateFlags) GetPropertyOfType() argument 292 GetPropertyOfUnionType(UnionType *type, const util::StringView &name, bool getPartial, binder::VariableFlags propagateFlags) GetPropertyOfUnionType() argument 376 GetApplicableIndexInfo(Type *type, Type *indexType) GetApplicableIndexInfo() argument 403 GetPropertyTypeForIndexType(Type *type, Type *indexType) GetPropertyTypeForIndexType() argument 449 GetBaseTypes(InterfaceType *type) GetBaseTypes() argument 511 ResolveDeclaredMembers(InterfaceType *type) ResolveDeclaredMembers() argument 535 ValidateInterfaceMemberRedeclaration(ObjectType *type, binder::Variable *prop, const lexer::SourcePosition &locInfo) ValidateInterfaceMemberRedeclaration() argument [all...] |
H A D | helpers.cpp | 38 void Checker::CheckTruthinessOfType(Type *type, lexer::SourcePosition lineInfo) in CheckTruthinessOfType() argument 40 if (type->IsVoidType()) { in CheckTruthinessOfType() 41 ThrowTypeError("An expression of type void cannot be tested for truthiness", lineInfo); in CheckTruthinessOfType() 45 Type *Checker::CheckNonNullType(Type *type, lexer::SourcePosition lineInfo) in CheckNonNullType() argument 47 if (type->IsNullType()) { in CheckNonNullType() 51 if (type->IsUndefinedType()) { in CheckNonNullType() 55 return type; in CheckNonNullType() 58 Type *Checker::GetBaseTypeOfLiteralType(Type *type) in GetBaseTypeOfLiteralType() argument 61 return type; in GetBaseTypeOfLiteralType() 63 CHECK_NOT_NULL(type); in GetBaseTypeOfLiteralType() 116 CheckTestingKnownTruthyCallableOrAwaitableType([[maybe_unused]] const ir::Expression *condExpr, [[maybe_unused]] Type *type, [[maybe_unused]] const ir::AstNode *body) CheckTestingKnownTruthyCallableOrAwaitableType() argument 123 ExtractDefinitelyFalsyTypes(Type *type) ExtractDefinitelyFalsyTypes() argument 160 RemoveDefinitelyFalsyTypes(Type *type) RemoveDefinitelyFalsyTypes() argument 190 GetFalsyFlags(Type *type) GetFalsyFlags() argument [all...] |
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | datatype.h | 83 inline const char *ToString(Type type) in ToString() argument 85 ASSERT(type <= Type::LAST); in ToString() 86 return internal::TYPE_NAMES[type]; in ToString() 89 constexpr inline Type GetCommonType(Type type) in GetCommonType() argument 91 switch (type) { in GetCommonType() 103 return type; in GetCommonType() 107 inline bool IsInt32Bit(Type type) in IsInt32Bit() argument 109 switch (type) { in IsInt32Bit() 123 inline bool IsTypeNumeric(Type type) in IsTypeNumeric() argument 125 switch (type) { in IsTypeNumeric() 144 IsLessInt32(Type type) IsLessInt32() argument 196 Is32Bits(Type type, Arch arch) Is32Bits() argument 217 Is64Bits(Type type, Arch arch) Is64Bits() argument 222 IsFloatType(Type type) IsFloatType() argument 233 IsTypeSigned(Type type) IsTypeSigned() argument 248 IsReference(Type type) IsReference() argument 253 IsTypeCollectable(DataType::Type type) IsTypeCollectable() argument 258 ShiftByType(Type type, Arch arch) ShiftByType() argument 288 GetTypeSize(Type type, Arch arch) GetTypeSize() argument [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/ |
H A D | reg_type.h | 23 inline DataType::Type ConvertRegTypeNotFloat(const Graph *graph, DataType::Type type) in ConvertRegTypeNotFloat() argument 25 if (graph->IsBytecodeOptimizer() && type == DataType::REFERENCE) { in ConvertRegTypeNotFloat() 26 return type; in ConvertRegTypeNotFloat() 30 if (useReg32 && DataType::Is32Bits(type, graph->GetArch())) { in ConvertRegTypeNotFloat() 37 inline DataType::Type ConvertRegType(const Graph *graph, DataType::Type type) in ConvertRegType() argument 39 if (DataType::IsFloatType(type)) { in ConvertRegType() 41 return type == DataType::FLOAT32 ? DataType::UINT32 : DataType::UINT64; in ConvertRegType() 43 return type; in ConvertRegType() 46 ASSERT(GetCommonType(type) == DataType::INT64 || type in ConvertRegType() [all...] |
/arkcompiler/runtime_core/static_core/assembler/tests/ |
H A D | lexer_test.cpp | 33 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 34 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 35 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST() 36 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST() 45 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 46 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 55 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 56 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST() 57 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "ID") << "ID expected"; in TEST() 58 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "I in TEST() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | datatype.h | 84 inline const char *ToString(Type type) in ToString() argument 86 ASSERT(type <= Type::LAST); in ToString() 87 return internal::TYPE_NAMES[type]; in ToString() 90 inline std::ostream &operator<<(std::ostream &os, const DataType::Type &type) in operator <<() argument 92 os << ToString(type); in operator <<() 97 constexpr inline Type GetCommonType(Type type) in GetCommonType() argument 99 switch (type) { in GetCommonType() 114 return type; in GetCommonType() 119 inline bool IsInt32Bit(Type type) in IsInt32Bit() argument 121 switch (type) { in IsInt32Bit() 136 IsTypeNumeric(Type type) IsTypeNumeric() argument 157 IsLessInt32(Type type) IsLessInt32() argument 212 Is32Bits(Type type, Arch arch) Is32Bits() argument 233 Is64Bits(Type type, Arch arch) Is64Bits() argument 238 IsFloatType(Type type) IsFloatType() argument 250 IsTypeSigned(Type type) IsTypeSigned() argument 265 IsReference(Type type) IsReference() argument 271 ShiftByType(Type type, Arch arch) ShiftByType() argument 301 GetTypeSize(Type type, Arch arch) GetTypeSize() argument 307 GetTypeByteSize(Type type, Arch arch) GetTypeByteSize() argument [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | typed.h | 77 explicit Typed(AstNodeType const type) : T(type) {} in Typed() argument 78 explicit Typed(AstNodeType const type, ModifierFlags const flags) : T(type, flags) {} in Typed() argument 80 // NOTE: when cloning node its type is not copied but removed empty so that it can be re-checked further. 96 explicit TypedAstNode(AstNodeType const type) : Typed<AstNode>(type) {} in TypedAstNode() argument 97 explicit TypedAstNode(AstNodeType const type, ModifierFlags const flags) : Typed<AstNode>(type, flags) {} in TypedAstNode() argument 111 explicit AnnotatedAstNode(AstNodeType const type, TypeNod argument 115 AnnotatedAstNode(AstNodeType const type) AnnotatedAstNode() argument 116 AnnotatedAstNode(AstNodeType const type, ModifierFlags const flags) AnnotatedAstNode() argument 132 TypedStatement(AstNodeType type) TypedStatement() argument 133 TypedStatement(AstNodeType type, ModifierFlags flags) TypedStatement() argument 149 AnnotatedStatement(AstNodeType type, TypeNode *typeAnnotation) AnnotatedStatement() argument 153 AnnotatedStatement(AstNodeType type) AnnotatedStatement() argument 154 AnnotatedStatement(AstNodeType type, ModifierFlags flags) AnnotatedStatement() argument [all...] |
/arkcompiler/runtime_core/static_core/abc2program/ |
H A D | abc_file_processor.cpp | 148 std::string AbcFileProcessor::ScalarValueToString(const panda_file::ScalarValue &value, const std::string &type) in ScalarValueToString() argument 152 if (type == "i8") { in ScalarValueToString() 155 } else if (type == "u1" || type == "u8") { in ScalarValueToString() 158 } else if (type == "i16") { in ScalarValueToString() 160 } else if (type == "u16") { in ScalarValueToString() 162 } else if (type == "i32") { in ScalarValueToString() 164 } else if (type == "u32") { in ScalarValueToString() 166 } else if (type == "i64") { in ScalarValueToString() 168 } else if (type in ScalarValueToString() 202 ArrayValueToString(const panda_file::ArrayValue &value, const std::string &type, const size_t idx) ArrayValueToString() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/ |
H A D | pgo_method_type_set.h | 42 void AddType(uint32_t offset, PGOSampleType type) in AddType() argument 44 auto result = scalarOpTypeInfos_.find(ScalarOpTypeInfo(offset, type)); in AddType() 46 auto combineType = result->GetType().CombineType(type); in AddType() 49 scalarOpTypeInfos_.emplace(offset, type); in AddType() 53 void AddCallTargetType(uint32_t offset, PGOSampleType type) in AddCallTargetType() argument 55 auto result = scalarOpTypeInfos_.find(ScalarOpTypeInfo(offset, type)); in AddCallTargetType() 57 auto combineType = result->GetType().CombineCallTargetType(type); in AddCallTargetType() 60 scalarOpTypeInfos_.emplace(offset, type); in AddCallTargetType() 74 void AddDefine(uint32_t offset, PGODefineOpType type) in AddDefine() argument 76 auto result = objDefOpTypeInfos_.find(ObjDefOpTypeInfo(offset, type)); in AddDefine() 93 const auto &type = typeInfo.GetTypeRef(); GetTypeInfo() local 97 const auto &type = typeInfo.GetTypeRef(); GetTypeInfo() local 101 const auto &type = typeInfo.GetTypeRef(); GetTypeInfo() local 130 TypeInfoHeader(InfoType type, uint32_t offset) TypeInfoHeader() argument 131 TypeInfoHeader(uint32_t size, InfoType type, uint32_t offset) TypeInfoHeader() argument 182 Merge(const RWScalarOpTemplate &type) Merge() argument 231 ScalarOpTemplate(uint32_t offset, SampleType type) ScalarOpTemplate() argument 239 SetType(SampleType type) SetType() argument 263 ScalarOpTemplate(uint32_t size, InfoType infoType, uint32_t offset, SampleType type) ScalarOpTemplate() argument 275 ObjDefOpTemplate(uint32_t offset, PGODefineOpType type) ObjDefOpTemplate() argument 311 ObjDefOpTemplate( uint32_t size, InfoType infoType, uint32_t offset, PGODefineOpType type) ObjDefOpTemplate() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | cfg_primitive_types.h | 33 // just for test, no primitive type for derived SIMD types to be defined 37 PrimType type; member 39 PrimitiveTypeProperty(PrimType type, bool isInteger, bool isUnsigned, bool isAddress, bool isFloat, bool isPointer, in PrimitiveTypeProperty() 41 : type(type), in PrimitiveTypeProperty() 62 if (type == PTY_u64 || type == PTY_u32) { in IsAddress() 63 if ((type == PTY_u64 && GetPointerSize() == 8) || // PTY_u64 with 8 byte pointer in IsAddress() 64 (type == PTY_u32 && GetPointerSize() == 4)) { // PTY_u32 with 4 byte pointer in IsAddress() 81 if (type in IsPointer() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/ |
H A D | lmir_builder.cpp | 23 inline Type *GetPrimitiveType(PrimType type) in GetPrimitiveType() argument 25 return GlobalTables::GetTypeTable().GetPrimType(type); in GetPrimitiveType() 88 LiteCGTypeKind LMIRBuilder::LiteCGGetTypeKind(Type *type) const in LiteCGGetTypeKind() 90 switch (type->GetKind()) { in LiteCGGetTypeKind() 132 auto type = GlobalTables::GetTypeTable().GetOrCreatePointerType(*mirType, PTY_ptr); in CreatePtrType() local 133 return type; in CreatePtrType() 138 auto type = GlobalTables::GetTypeTable().GetOrCreatePointerType(*mirType, PTY_ref); in CreateRefType() local 139 return type; in CreateRefType() 157 auto type = GlobalTables::GetTypeTable().GetOrCreateFunctionType(retType->GetTypeIndex(), params, attrs, isVarg); in CreateFuncType() local 158 return type; in CreateFuncType() 161 LiteCGGetPointedType(Type *type) LiteCGGetPointedType() argument 169 LiteCGGetFuncParamTypes(Type *type) LiteCGGetFuncParamTypes() argument 180 LiteCGGetFuncReturnType(Type *type) LiteCGGetFuncReturnType() argument 285 CreateLocalVar(Type *type, const String &name) CreateLocalVar() argument 332 CreateIntConst(Type *type, int64_t val) CreateIntConst() argument 439 CreateSwitchInternal(Type *type, Expr cond, BB &defaultBB, std::vector<std::pair<int64_t, BB *>> &cases) CreateSwitchInternal() argument 520 IntrinsicOp(IntrinsicId id, Type *type, Args &args_) IntrinsicOp() argument 530 Iread(Type *type, Expr addr, Type *baseType, FieldId fieldId) Iread() argument 561 Type *type = GetPrimitiveType(preg->GetPrimType()); Regread() local 570 Lnot(Type *type, Expr src) Lnot() argument 575 Bnot(Type *type, Expr src) Bnot() argument 580 Sqrt(Type *type, Expr src) Sqrt() argument 585 Abs(Type *type, Expr src) Abs() argument 590 CreateBinOpInternal(MIRBuilder &mirBuilder, Opcode op, Type *type, Expr src1, Expr src2) CreateBinOpInternal() argument 596 Add(Type *type, Expr src1, Expr src2) Add() argument 601 Sub(Type *type, Expr src1, Expr src2) Sub() argument 606 Mul(Type *type, Expr src1, Expr src2) Mul() argument 611 UDiv(Type *type, Expr src1, Expr src2) UDiv() argument 616 SDiv(Type *type, Expr src1, Expr src2) SDiv() argument 621 SRem(Type *type, Expr src1, Expr src2) SRem() argument 626 Shl(Type *type, Expr src1, Expr src2) Shl() argument 631 LShr(Type *type, Expr src1, Expr src2) LShr() argument 636 AShr(Type *type, Expr src1, Expr src2) AShr() argument 641 And(Type *type, Expr src1, Expr src2) And() argument 646 Or(Type *type, Expr src1, Expr src2) Or() argument 651 Xor(Type *type, Expr src1, Expr src2) Xor() argument 656 Min(Type *type, Expr src1, Expr src2) Min() argument 661 Max(Type *type, Expr src1, Expr src2) Max() argument 666 CreateExprCompare(MIRBuilder &mirBuilder, Opcode op, Type *type, Expr src1, Expr src2) CreateExprCompare() argument 672 ICmp(Type *type, Expr src1, Expr src2, IntCmpCondition cond) ICmp() argument 739 FCmp(Type *type, Expr src1, Expr src2, FloatCmpCondition cond) FCmp() argument [all...] |
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
H A D | cli.py | 50 parser.add_argument('-wi', '--warmup-iters', default=None, type=int, 52 parser.add_argument('-mi', '--measure-iters', default=None, type=int, 54 parser.add_argument('-it', '--iter-time', default=None, type=int, 56 parser.add_argument('-wt', '--warmup-time', default=None, type=int, 58 parser.add_argument('-fi', '--fast-iters', default=None, type=int, 60 parser.add_argument('-gc', '--sys-gc-pause', default=None, type=int, 64 type=str, action="append", help="aot-compiler options") 66 default=None, type=str, 69 default=None, type=str, 75 type [all...] |
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | lowering_test.cpp | 42 void ReturnTest(T val, DataType::Type type) in ReturnTest() argument 53 auto ret = graph->CreateInstReturn(type, INVALID_PC, cnst); in ReturnTest() 1066 auto type = types[0U]; in BuildGraphMultiplyAddInteger() local 1070 PARAMETER(0U, 0U).type(types[1U]); in BuildGraphMultiplyAddInteger() 1071 PARAMETER(1U, 1U).type(types[2U]); in BuildGraphMultiplyAddInteger() 1072 PARAMETER(2U, 2U).type(types[3U]); in BuildGraphMultiplyAddInteger() 1077 INST(3U, Opcode::Mul).type(type).Inputs(0U, 1U); in BuildGraphMultiplyAddInteger() 1078 INST(4U, Opcode::Add).type(type) in BuildGraphMultiplyAddInteger() 1099 auto type = types[0U]; BuildExpectedMultiplyAddInteger() local 1176 auto type = types[0U]; BuildGraphMultiplySubInteger() local 1222 auto type = types[0U]; BuildExpectedMultiplySubInteger() local 1356 auto type = types[0U]; BuildGraphMultiplyNegate() local 1399 auto type = types[0U]; BuildExpectedMultiplyNegate() local 1502 auto type = types[0U]; TestBitwiseBinaryOpWithInvertedOperand() local 1616 auto type = types[0U]; BuildGraphCommutativeBinaryOpWithShiftedOperand() local 1652 auto type = types[0]; BuildExpectedCommutativeBinaryOpWithShiftedOperand() local 1771 auto type = types[0]; BuildGraphSubWithShiftedOperand() local 1811 auto type = types[0U]; TestSubWithShiftedOperand() local 1908 auto type = types[0U]; TestNonCommutativeBinaryOpWithShiftedOperand() local 2044 auto type = types[0U]; TestBitwiseInstructionsWithInvertedShiftedOperand() local 2151 auto type = types.first; SRC_GRAPH() local 2168 auto type = types.first; OUT_GRAPH() local [all...] |
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
H A D | reg_type.h | 23 inline DataType::Type ConvertRegType(const Graph *graph, DataType::Type type) in ConvertRegType() argument 25 if (DataType::IsFloatType(type)) { in ConvertRegType() 29 ASSERT(GetCommonType(type) == DataType::INT64 || type == DataType::REFERENCE || type == DataType::POINTER || in ConvertRegType() 30 type == DataType::ANY); in ConvertRegType() 31 if (type == DataType::REFERENCE) { in ConvertRegType() 32 return type; in ConvertRegType() 35 if (DataType::Is32Bits(type, graph->GetArch())) { in ConvertRegType()
|