Home
last modified time | relevance | path

Searched refs:Elements (Results 1 - 25 of 59) sorted by relevance

123

/arkcompiler/ets_frontend/ets2panda/util/
H A Dhelpers.h191 template <typename... Elements>
192 static void LogDebug(Elements &&...elems);
193 template <typename... Elements>
194 static void LogInfo(Elements &&...elems);
195 template <typename... Elements>
196 static void LogWarning(Elements &&...elems);
197 template <typename... Elements>
198 static void LogError(Elements &&...elems);
199 template <typename... Elements>
200 static void LogFatal(Elements
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DspreadLowering.cpp31 for (const auto *element : array->Elements()) { in CreateLengthString()
39 int newArrayLength = array->Elements().size() - spreadElementCount; in CreateLengthString()
61 for (std::uint32_t i = 0; i < array->Elements().size(); ++i) { in CreateETSCode()
62 if (array->Elements()[i]->Type() == ir::AstNodeType::SPREAD_ELEMENT) { in CreateETSCode()
64 array->Elements()[i]->AsSpreadElement()->Argument()->AsIdentifier()->Name().Mutf8(); in CreateETSCode()
65 src << "let elementOfSpread" << i << ": " << array->Elements()[i]->TsType()->ToString() << std::endl; in CreateETSCode()
76 node.emplace_back(array->Elements()[i]->Clone(ctx->allocator, nullptr)); in CreateETSCode()
99 std::any_of(node->AsArrayExpression()->Elements().begin(), node->AsArrayExpression()->Elements().end(), in Perform()
/arkcompiler/ets_runtime/ecmascript/
H A Delements.cpp21 CMap<ElementsKind, std::pair<ConstantIndex, ConstantIndex>> Elements::InitializeHClassMap() in InitializeHClassMap()
32 std::string Elements::GetString(ElementsKind kind) in GetString()
37 bool Elements::IsInt(ElementsKind kind) in IsInt()
42 bool Elements::IsNumber(ElementsKind kind) in IsNumber()
47 bool Elements::IsTagged(ElementsKind kind) in IsTagged()
52 bool Elements::IsObject(ElementsKind kind) in IsObject()
57 bool Elements::IsHole(ElementsKind kind) in IsHole()
63 ConstantIndex Elements::GetGlobalContantIndexByKind(ElementsKind kind) in GetGlobalContantIndexByKind()
95 ElementsKind Elements::MergeElementsKind(ElementsKind curKind, ElementsKind newKind) in MergeElementsKind()
102 ElementsKind Elements
[all...]
H A Delement_accessor-inl.h38 Elements::MigrateArrayWithKind(thread, receiver, oldKind, newKind); in Set()
H A Delements.h56 class PUBLIC_API Elements { class
H A Delement_accessor.cpp121 if (rawValue.IsHole() && Elements::IsInNumbers(kind)) { in ConvertTaggedValueWithElementsKind()
H A Djs_array.cpp258 if (Elements::IsGeneric(oldKind)) { in SetCapacity()
268 newKind = Elements::ToElementsKind(val, newKind); in SetCapacity()
280 Elements::MigrateArrayWithKind(thread, array, oldKind, newKind); in SetCapacity()
H A Djs_hclass.cpp710 newKind = Elements::MergeElementsKind(newKind, current); in TransitToElementsKind()
726 if (Elements::IsGeneric(current)) { in TransitToElementsKind()
729 auto newKind = Elements::ToElementsKind(value.GetTaggedValue(), kind); in TransitToElementsKind()
731 newKind = Elements::MergeElementsKind(current, newKind); in TransitToElementsKind()
/arkcompiler/ets_frontend/ets2panda/parser/context/
H A DclassPrivateContext.h42 const std::vector<const ir::ClassElement *> &Elements() in Elements() function in ark::es2panda::ark::es2panda::parser::ClassPrivateContext
/arkcompiler/ets_frontend/es2panda/ir/module/
H A DassertClause.h40 const ArenaVector<AssertEntry *> &Elements() const in Elements() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::AssertClause
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
H A DarrayExpression.h62 [[nodiscard]] const ArenaVector<Expression *> &Elements() const noexcept
67 [[nodiscard]] ArenaVector<Expression *> &Elements() noexcept
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DtypeRelationContext.cpp35 for (uint32_t index = 0; index < node->Elements().size(); index++) { in ValidateArrayTypeInitializerByElement()
36 ir::Expression *currentArrayElem = node->Elements()[index]; in ValidateArrayTypeInitializerByElement()
H A DvalidateHelpers.cpp332 if (arrayExpr->Elements().size() < static_cast<size_t>(tuple->GetMinTupleSize())) { in ValidateTupleMinElementSize()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
H A DarrayExpression.h41 const ArenaVector<Expression *> &Elements() const in Elements() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::ArrayExpression
/arkcompiler/ets_frontend/ets2panda/compiler/base/
H A Ddestructuring.cpp73 for (const auto *element : array->Elements()) { in GenElement()
118 if (array->Elements().empty()) { in GenArray()
/arkcompiler/ets_frontend/es2panda/compiler/base/
H A Ddestructuring.cpp76 if (array->Elements().empty()) { in GenArray()
83 for (const auto *element : array->Elements()) { in GenArray()
/arkcompiler/ets_frontend/ets2panda/checker/ts/
H A DtypeElaborationContext.cpp59 for (auto *it : sourceNode_->AsArrayExpression()->Elements()) { in Start()
H A DdestructuringContext.cpp450 auto *it = id_->AsArrayPattern()->Elements()[index_]; in SetRemainingParameterTypes()
453 } while (++index_ != id_->AsArrayPattern()->Elements().size()); in SetRemainingParameterTypes()
503 for (auto *it : id_->AsArrayPattern()->Elements()) { in Start()
H A Dfunction.cpp148 if (inferredTuple->FixedLength() > arrayPattern->Elements().size()) { in CreateParameterTypeForArrayAssignmentPattern()
155 for (uint32_t index = inferredTuple->FixedLength(); index < arrayPattern->Elements().size(); index++) { in CreateParameterTypeForArrayAssignmentPattern()
474 const auto &elements = node->AsArrayPattern()->Elements(); in CreatePatternParameterName()
/arkcompiler/ets_frontend/es2panda/typescript/core/
H A DtypeElaborationContext.cpp59 for (auto *it : sourceNode_->AsArrayExpression()->Elements()) { in Start()
H A DdestructuringContext.cpp446 const auto *it = id_->AsArrayPattern()->Elements()[index_]; in SetRemainingPatameterTypes()
449 } while (++index_ != id_->AsArrayPattern()->Elements().size()); in SetRemainingPatameterTypes()
460 for (const auto *it : id_->AsArrayPattern()->Elements()) { in Start()
H A Dfunction.cpp150 if (inferedTuple->FixedLength() > arrayPattern->Elements().size()) { in CreateParameterTypeForArrayAssignmentPattern()
157 for (uint32_t index = inferedTuple->FixedLength(); index < arrayPattern->Elements().size(); index++) { in CreateParameterTypeForArrayAssignmentPattern()
463 const auto &elements = node->AsArrayPattern()->Elements(); in CreatePatternParameterName()
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
H A Dpgo_type_infer.cpp97 if (Elements::IsGeneric(kind)) { in InferCreateArray()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dnative_inline_lowering.cpp1562 if (Elements::IsHole(kind)) { in TryInlineArrayForEach()
1598 if (Elements::IsHole(kind)) { in TryInlineArrayFindOrFindIndex()
1637 if (Elements::IsHole(kind)) { in TryInlineArrayFilter()
1674 if (Elements::IsHole(kind)) { in TryInlineArrayMap()
1711 if (Elements::IsHole(kind)) { in TryInlineArraySome()
1746 if (Elements::IsHole(kind)) { in TryInlineArrayEvery()
1844 if (Elements::IsHole(kind)) { in TryInlineArraySort()
H A Dgate_accessor.cpp699 return Elements::FixElementsKind(gatePtr->GetJSBytecodeMetaData()->GetElementsKind()); in TryGetElementsKind()
711 if (Elements::IsGeneric(kind)) { in TryGetArrayElementsKind()
716 kind = Elements::MergeElementsKind(kind, x); in TryGetArrayElementsKind()
729 if (Elements::IsGeneric(kind)) { in TryGetArrayElementsKindAfterTransition()
734 kind = Elements::MergeElementsKind(kind, x); in TryGetArrayElementsKindAfterTransition()
1934 return Elements::IsObject(kind); in IsHeapObjectFromElementsKind()

Completed in 23 milliseconds

123