/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | class_helper.h | 47 static const uint8_t *GetArrayDescriptor(const uint8_t *componentName, size_t rank, PandaString *storage); 57 static const uint8_t *GetPrimitiveArrayDescriptor(panda_file::Type type, size_t rank, PandaString *storage); 149 auto rank = 0; in GetNameUndecorated() local 150 while (descriptor[rank] == '[') { // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in GetNameUndecorated() 151 rank++; in GetNameUndecorated() 154 switch (descriptor[rank]) { // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in GetNameUndecorated() 196 result.append(utf::Mutf8AsCString(descriptor + rank + 1)); // cut 'L' at the beginning in GetNameUndecorated() 207 while (rank > 0) { in GetNameUndecorated() 209 rank--; in GetNameUndecorated()
|
/arkcompiler/runtime_core/static_core/runtime/templates/ |
H A D | intrinsics.rb | 88 rank = type.count('[') 89 type = type[0...-(rank * 2)] if rank > 0 90 return '[' * rank + get_primitive_descriptor(type) if primitive_type?(type) 91 '[' * rank + 'L' + type.gsub('.', '/') + ';'
|
/arkcompiler/runtime_core/assembler/ |
H A D | assembly-type.cpp | 62 std::string Type::GetName(std::string_view component_name, size_t rank) in GetName() argument 65 while (rank-- > 0) { in GetName() 83 size_t rank = i; in FromDescriptor() local 93 return Type(descriptor, rank); in FromDescriptor() 96 return Type(reverse_primitive_types[descriptor], rank); in FromDescriptor()
|
H A D | assembly-type.h | 38 Type(const std::string_view &component_name, size_t rank, bool ignore_primitive = false) in Type() argument 39 : component_name_(component_name), rank_(rank) in Type() 45 Type(const Type &component_type, size_t rank) in Type() argument 46 : Type(component_type.GetComponentName(), component_type.GetRank() + rank) in Type() 172 static std::string GetName(std::string_view component_name, size_t rank);
|
H A D | assembly-parser.cpp | 120 size_t rank = 0; in ParseType() local 131 ++rank; in ParseType() 134 *type = Type(component_name, rank); in ParseType()
|
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | assembly-type.cpp | 79 std::string Type::GetName(std::string_view componentName, size_t rank) in GetName() argument 82 while (rank-- > 0) { in GetName() 100 size_t rank = i; in FromDescriptor() local 110 return Type(descriptor, rank); in FromDescriptor() 113 return Type(reversePrimitiveTypes[descriptor], rank); in FromDescriptor()
|
H A D | assembly-type.h | 40 Type(std::string_view componentName, size_t rank, bool ignorePrimitive = false) in Type() argument 41 : componentName_(componentName), rank_(rank) in Type() 47 Type(const Type &componentType, size_t rank) in Type() argument 48 : Type(componentType.GetComponentName(), componentType.GetRank() + rank) in Type() 180 static PANDA_PUBLIC_API std::string GetName(std::string_view componentName, size_t rank);
|
H A D | assembly-parser.cpp | 121 size_t rank = 0; in ParseType() local 132 ++rank; in ParseType() 135 *type = Type(componentName, rank); in ParseType()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | class_helper.cpp | 33 const uint8_t *ClassHelper::GetArrayDescriptor(const uint8_t *componentName, size_t rank, PandaString *storage) in GetArrayDescriptor() argument 36 storage->append(rank, '['); in GetArrayDescriptor() 106 const uint8_t *ClassHelper::GetPrimitiveArrayDescriptor(panda_file::Type type, size_t rank, PandaString *storage) in GetPrimitiveArrayDescriptor() argument 109 storage->append(rank, '['); in GetPrimitiveArrayDescriptor()
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
H A D | etsArrayType.cpp | 59 uint32_t rank = 1; in Rank() local 63 rank++; in Rank() 66 return rank; in Rank()
|
/arkcompiler/ets_frontend/ets2panda/evaluate/ |
H A D | helpers.cpp | 101 size_t rank = std::count(typeSignature.begin(), typeSignature.end(), '['); in ReferenceToTypeNode() local 102 auto *elementType = ToTypeNode(typeSignature.substr(rank), checker); in ReferenceToTypeNode() 104 for (size_t i = 0; i < rank; ++i) { in ReferenceToTypeNode() 213 auto rank = std::count(typeSignature.begin(), typeSignature.end(), '['); in ReferenceToName() local 214 auto elementType = ToTypeName(typeSignature.substr(rank), globalTypes); in ReferenceToName() 221 arrayType.resize(subtypeSize + rank * ARRAY_RANK_SYMBOLS); in ReferenceToName()
|
/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | assemblyTypeProto.cpp | 30 auto *type = allocator->New<panda::pandasm::Type>(protoType.componentname(), protoType.rank()); in Deserialize()
|
/arkcompiler/runtime_core/assembler/tests/ |
H A D | assembler_ins_test.cpp | 224 size_t rank = 0; in HWTEST_F() local 225 panda::pandasm::Type type(component_name, rank); in HWTEST_F() 247 rank = 0; in HWTEST_F() 248 panda::pandasm::Type type1(component_name, rank); in HWTEST_F()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
H A D | emitter.cpp | 747 panda::pandasm::Type Emitter::DeduceArrayEnumType(const ir::Expression *value, uint8_t rank, in DeduceArrayEnumType() argument 758 return panda::pandasm::Type("f64", rank); in DeduceArrayEnumType() 761 return panda::pandasm::Type(ir::Annotation::stringClassName, rank); in DeduceArrayEnumType() 769 return panda::pandasm::Type("f64", rank); in DeduceArrayEnumType() 774 return panda::pandasm::Type("f64", rank); in DeduceArrayEnumType() 780 return panda::pandasm::Type(ir::Annotation::stringClassName, rank); in DeduceArrayEnumType() 786 return panda::pandasm::Type(ir::Annotation::stringClassName, rank); in DeduceArrayEnumType() 798 uint8_t rank = 1; in CreateLiteralArrayProp() local 801 ++rank; in CreateLiteralArrayProp() 806 annoRecordField.type = panda::pandasm::Type("f64", rank); in CreateLiteralArrayProp() [all...] |
H A D | emitter.h | 151 panda::pandasm::Type DeduceArrayEnumType(const ir::Expression *value, uint8_t rank, bool &needToCreateArrayValue);
|
/arkcompiler/runtime_core/libpandafile/ |
H A D | file_items.h | 263 void SetPGORank(uint32_t rank) in SetPGORank() argument 265 pgo_rank_ = rank; in SetPGORank() 273 void SetOriginalRank(uint32_t rank) in SetOriginalRank() argument 275 original_rank_ = rank; in SetOriginalRank() 283 void SetReLayoutRank(ItemRank rank) in SetReLayoutRank() argument 285 re_layout_rank_ = rank; in SetReLayoutRank()
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | file_items.h | 239 void SetPGORank(uint32_t rank) in SetPGORank() argument 241 pgoRank_ = rank; in SetPGORank() 249 void SetOriginalRank(uint32_t rank) in SetOriginalRank() argument 251 originalRank_ = rank; in SetOriginalRank()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | interpreter_test.cpp | 1917 auto GetArrayDescriptor(const char *name, int rank) in GetArrayDescriptor() argument 1921 return ClassHelper::GetArrayDescriptor(utf::CStringAsMutf8(name), rank, &descriptor); in GetArrayDescriptor()
|