Home
last modified time | relevance | path

Searched +full:ctxallocator +full:- (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/test/unit/plugin_conversion_rule/
Dplugin_conversion_rule_part_iii.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
31 auto *allocatorE2p = reinterpret_cast<Context *>(context)->allocator; in TEST_F()
33 {reinterpret_cast<Context *>(context)->allocator->Adapter()}; in TEST_F()
44 auto *ctxAllocator = ctx->allocator; in TEST_F()
45 …auto *astNode = (ctxAllocator->New<ir::ETSModule>(allocatorE2p, std::move(statementListArenaVector… in TEST_F()
47 astNode->AddAstNodeFlags(ir::AstNodeFlags::NOCLEANUP); in TEST_F()
63 auto *allocatorE2p = reinterpret_cast<Context *>(context)->allocator; in TEST_F()
65 auto *ctxAllocator = ctx->allocator; in TEST_F()
66 auto *astNode = (ctxAllocator->New<ir::ETSFunctionType>( in TEST_F()
69 astNode->AddAstNodeFlags(ir::AstNodeFlags::NOCLEANUP); in TEST_F()
[all …]
Dplugin_conversion_rule_part_i.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
39 …ctor<ir::TypeNode *> typesArenaVector {reinterpret_cast<Context *>(context)->allocator->Adapter()}; in TEST_F()
46 auto *allocatorE2p = reinterpret_cast<Context *>(context)->allocator; in TEST_F()
48 auto *ctxAllocator = ctx->allocator; in TEST_F()
49 … auto *astNode = (ctxAllocator->New<ir::ETSUnionType>(std::move(typesArenaVector), allocatorE2p)); in TEST_F()
50 astNode->AddAstNodeFlags(ir::AstNodeFlags::NOCLEANUP); in TEST_F()
67 auto *ctxAllocator = ctx->allocator; in TEST_F()
68 …Vector = ((reinterpret_cast< ir::AnnotationAllowed<ir::AstNode> *>(classInstance))->Annotations()); in TEST_F()
70 auto apiRes = ctxAllocator->New<es2panda_AstNode *[]>(*returnTypeLen); in TEST_F()
95 auto *targetSignaturesArenaVector = reinterpret_cast<Context *>(context)->allocator-> in TEST_F()
[all …]
Dplugin_conversion_rule_part_iv.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
33 auto *ctxAllocator = ctx->allocator; in TEST_F()
34 return reinterpret_cast<es2panda_Signature *>(ctxAllocator->New<checker::Signature> in TEST_F()
50 const checker::Signature *>(classInstance))->GetSignatureInfo()); in TEST_F()
65 auto *checkerE2p = reinterpret_cast<Context *>(context)->checker; in TEST_F()
68 auto *ctxAllocator = ctx->allocator; in TEST_F()
69 … return reinterpret_cast<es2panda_CheckerContext *>(ctxAllocator->New<checker::CheckerContext> in TEST_F()
85 (classInstance))->Status()); in TEST_F()
100 auto *checkerE2p = reinterpret_cast<Context *>(context)->checker; in TEST_F()
103 auto *ctxAllocator = ctx->allocator; in TEST_F()
[all …]
Dplugin_conversion_rule_part_ii.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
29 ((reinterpret_cast<checker::Type *>(classInstance))->Identical(relationE2p, otherE2p)); in TEST_F()
48 ->IsIdenticalTo(sourceE2p, targetE2p)); in TEST_F()
63 auto *checkerE2p = reinterpret_cast<Context *>(context)->checker; in TEST_F()
65 auto *ctxAllocator = ctx->allocator; in TEST_F()
66 …return reinterpret_cast<es2panda_TypeRelation *>(ctxAllocator->New<checker::TypeRelation>(checkerE… in TEST_F()
85 ->IsIdenticalTo(sourceE2p, targetE2p)); in TEST_F()
102 ((reinterpret_cast<const checker::ObjectType *>(classInstance))->NumberIndexInfo()); in TEST_F()
119 ((reinterpret_cast<checker::GlobalTypesHolder *>(classInstance))->GlobalNullType()); in TEST_F()
136 …reinterpret_cast<const checker::GlobalTypesHolder *>(classInstance))->GlobalClassCastErrorBuiltinT… in TEST_F()
[all …]
/arkcompiler/ets_frontend/ets2panda/public/
DcppToCTypes.yaml1 # Copyright (c) 2021-2025 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - es2panda_arg:
21 - type: '|element_type|'
24 - type: '|element_type|'
29 - type:
33 - type:
40 {reinterpret_cast<Context *>(context)->allocator->Adapter()};\n
50 \tauto *ctxAllocator = ctx->allocator;\n
54 …\tauto apiRes = ctxAllocator->New<|new_args.0.type.const| |new_args.0.type.name| |new_args.0.type.…
[all …]
DREADME.md26 - es2panda_arg:
36 - type:
44 - type:
51 expression: >-
57 start: >-
67 start: >-
68 (reinterpret_cast<?const? ir::FunctionSignature *>(classInstance))->
72 start: >-
73 ctxAllocator->New<ir::FunctionSignature>(
84- `return_args` is needed only if you return new type from function and this type expands to multi…
[all …]
Des2panda_lib_impl.inc.erb2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
16 // Autogenerated file -- DO NOT EDIT!
17 // NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic, readability-non-const-parameter)
18 // NOLINTBEGIN(readability-function-size, readability-magic-numbers)
40 (index - 1).to_s + "U" else "(uint64_t)0U" end %>) != 0 ? <%=
82 %>) != 0 ? e2pFlags | <%= if index > 0 then "(uint64_t)1U << " + (index - 1).to_s + "U"
104 // NOLINTEND(readability-function-size, readability-magic-numbers)
106 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
111 return node->Is##e2p_name(); \
[all …]