Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/arkcompiler/runtime_core/static_core/runtime/tests/
Dregion_allocator_test.cpp77 void AddMemoryPoolToAllocator([[maybe_unused]] ObjectAllocator &allocator) final {} in AddMemoryPoolToAllocator() argument
79 void AddMemoryPoolToAllocatorProtected([[maybe_unused]] ObjectAllocator &allocator) final {} in AddMemoryPoolToAllocatorProtected() argument
81 …bool AllocatedByThisAllocator([[maybe_unused]] ObjectAllocator &allocator, [[maybe_unused]] void *… in AllocatedByThisAllocator() argument
83 return allocator.ContainObject(reinterpret_cast<ObjectHeader *>(mem)); in AllocatedByThisAllocator()
104 size_t GetNumFreeRegions(NonObjectRegionAllocator &allocator) in GetNumFreeRegions() argument
106 return allocator.GetSpace()->GetPool()->GetFreeRegionsNumInRegionBlock(); in GetNumFreeRegions()
120 void *AllocateObjectWithClass(NonObjectRegionAllocator &allocator) in AllocateObjectWithClass() argument
122 void *mem = allocator.Alloc<ALLOC_TYPE>(OBJECT_SIZE); in AllocateObjectWithClass()
130 …void AllocateRegularObject(NonObjectRegionAllocator &allocator, size_t &freeRegions, size_t &freeB… in AllocateRegularObject() argument
133 ASSERT_EQ(GetNumFreeRegions(allocator), freeRegions); in AllocateRegularObject()
[all …]
Dfreelist_allocator_test.cpp90 bool AllocatedByThisAllocator(NonObjectFreeListAllocator &allocator, void *mem) override in AllocatedByThisAllocator() argument
92 return allocator.AllocatedByFreeListAllocator(mem); in AllocatedByThisAllocator()
120 NonObjectFreeListAllocator allocator(memStats); in TEST_F() local
121 AddMemoryPoolToAllocator(allocator); in TEST_F()
124 void *mem = allocator.Alloc(i); in TEST_F()
199 NonObjectFreeListAllocator allocator(memStats); in TEST_F() local
200 AddMemoryPoolToAllocator(allocator); in TEST_F()
205 void *mem = allocator.Alloc(MIN_ALLOC_SIZE); in TEST_F()
214 allocator.Free(std::get<0>(pair)); in TEST_F()
218 allocator.Free(std::get<0>(pair)); in TEST_F()
[all …]
Dallocator_test_base.h71 virtual void AddMemoryPoolToAllocator([[maybe_unused]] Allocator &allocator) = 0;
77 virtual void AddMemoryPoolToAllocatorProtected([[maybe_unused]] Allocator &allocator) = 0;
84 …virtual bool AllocatedByThisAllocator([[maybe_unused]] Allocator &allocator, [[maybe_unused]] void…
351 void AllocatedByThisAllocatorTest(Allocator &allocator);
363 void MtAllocTest(Allocator *allocator, size_t minElementsCount, size_t maxElementsCount);
417 …void ObjectIteratingSetUp(size_t freeGranularity, size_t poolsCount, Allocator &allocator, size_t …
424 void MTTestPrologue(Allocator &allocator, size_t allocSize);
426 static void MtAllocRun(AllocatorTest<Allocator> *allocatorTestInstance, Allocator *allocator,
430 … static void MtAllocFreeRun(AllocatorTest<Allocator> *allocatorTestInstance, Allocator *allocator,
434 …tatic void MtAllocIterateRun(AllocatorTest<Allocator> *allocatorTestInstance, Allocator *allocator,
[all …]
Drunslots_allocator_test.cpp82 bool AllocatedByThisAllocator(NonObjectAllocator &allocator, void *mem) override in AllocatedByThisAllocator() argument
84 return allocator.AllocatedByRunSlotsAllocator(mem); in AllocatedByThisAllocator()
120 NonObjectAllocator allocator(&memStats); in TEST_F() local
121 AddMemoryPoolToAllocator(allocator); in TEST_F()
124 void *mem = allocator.Alloc(i); in TEST_F()
135 NonObjectAllocator allocator(&memStats); in TEST_F() local
136 AddMemoryPoolToAllocator(allocator); in TEST_F()
140 void *mem = allocator.Alloc(ALLOC_SIZE); in TEST_F()
151 allocator.Free(elements.back()); in TEST_F()
156 ReleasePages(allocator); in TEST_F()
[all …]
Drem_set_test.cpp92 NonObjectRegionAllocator allocator(memStats, &spaces_); in TEST_F() local
94 cls->SetObjectSize(allocator.GetMaxRegularObjectSize()); in TEST_F()
96 auto obj1 = static_cast<ObjectHeader *>(allocator.Alloc(allocator.GetMaxRegularObjectSize())); in TEST_F()
100 auto obj2 = static_cast<ObjectHeader *>(allocator.Alloc(allocator.GetMaxRegularObjectSize())); in TEST_F()
126 NonObjectRegionAllocator allocator(memStats, &spaces_); in TEST_F() local
128 cls->SetObjectSize(allocator.GetMaxRegularObjectSize()); in TEST_F()
130 auto obj1 = static_cast<ObjectHeader *>(allocator.Alloc(allocator.GetMaxRegularObjectSize())); in TEST_F()
134 auto obj2 = static_cast<ObjectHeader *>(allocator.Alloc(allocator.GetMaxRegularObjectSize())); in TEST_F()
158 NonObjectRegionAllocator allocator(memStats, &spaces_); in TEST_F() local
160 cls->SetObjectSize(allocator.GetMaxRegularObjectSize()); in TEST_F()
[all …]
Dmalloc-proxy-allocator-test.cpp48 …void AddMemoryPoolToAllocator([[maybe_unused]] MallocProxyNonObjectAllocator &allocator) override … in AddMemoryPoolToAllocator() argument
49 …moryPoolToAllocatorProtected([[maybe_unused]] MallocProxyNonObjectAllocator &allocator) override {} in AddMemoryPoolToAllocatorProtected() argument
50 bool AllocatedByThisAllocator([[maybe_unused]] MallocProxyNonObjectAllocator &allocator, in AllocatedByThisAllocator() argument
61 MallocProxyNonObjectAllocator allocator(memStats); in TEST_F() local
62 void *a1 = allocator.Alloc(SIZE); in TEST_F()
63 allocator.Free(a1); in TEST_F()
81 MallocProxyNonObjectAllocator allocator(memStats); in TEST_F() local
89 auto *mem = allocator.Alloc(i); in TEST_F()
93 allocator.Free(mem); in TEST_F()
Dmock_queue_thread_pool.cpp87 explicit MockQueue(mem::InternalAllocatorPtr allocator) : queue_(allocator->Adapter()) {} in MockQueue() argument
88 MockQueue(mem::InternalAllocatorPtr allocator, size_t queueSize) in MockQueue() argument
89 : TaskQueueInterface<MockTask>(queueSize), queue_(allocator->Adapter()) in MockQueue()
181 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); in TestThreadPool() local
182 auto queue = allocator->New<MockQueue>(allocator); in TestThreadPool()
183 auto controller = allocator->New<MockTaskController>(); in TestThreadPool()
184 auto threadPool = allocator->New<ThreadPool<MockTask, MockProcessor, MockTaskController *>>( in TestThreadPool()
185 allocator, queue, controller, initialNumberOfThreads, "Test thread"); in TestThreadPool()
211 allocator->Delete(threadPool); in TestThreadPool()
212 allocator->Delete(controller); in TestThreadPool()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir/
Ddump.cpp38 …::enable_if_t<std::is_integral_v<T>, ArenaString> ToArenaString(T value, ArenaAllocator *allocator) in ToArenaString() argument
40 ArenaString res(std::to_string(value), allocator->Adapter()); in ToArenaString()
44 ArenaString GetId(uint32_t id, ArenaAllocator *allocator) in GetId() argument
46 …return (id == INVALID_ID ? ArenaString("XX", allocator->Adapter()) : ToArenaString(id, allocator)); in GetId()
49 ArenaString IdToString(uint32_t id, ArenaAllocator *allocator, bool v_reg, bool is_phi) in IdToString() argument
51 ArenaString reg(v_reg ? "v" : "", allocator->Adapter()); in IdToString()
52 ArenaString phi(is_phi ? "p" : "", allocator->Adapter()); in IdToString()
53 return reg + GetId(id, allocator) + phi; in IdToString()
69 ArenaString InstId(const Inst *inst, ArenaAllocator *allocator) in InstId() argument
73 return ArenaString("ss", allocator->Adapter()) + in InstId()
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/types/
DglobalTypesHolder.cpp40 GlobalTypesHolder::GlobalTypesHolder(ArenaAllocator *allocator) in GlobalTypesHolder() argument
42 globalTypes_[static_cast<size_t>(GlobalTypeId::NUMBER)] = allocator->New<NumberType>(); in GlobalTypesHolder()
43 globalTypes_[static_cast<size_t>(GlobalTypeId::ANY)] = allocator->New<AnyType>(); in GlobalTypesHolder()
44 globalTypes_[static_cast<size_t>(GlobalTypeId::STRING)] = allocator->New<StringType>(); in GlobalTypesHolder()
45 globalTypes_[static_cast<size_t>(GlobalTypeId::SYMBOL)] = allocator->New<SymbolType>(); in GlobalTypesHolder()
46 globalTypes_[static_cast<size_t>(GlobalTypeId::BOOLEAN)] = allocator->New<BooleanType>(); in GlobalTypesHolder()
47 globalTypes_[static_cast<size_t>(GlobalTypeId::VOID)] = allocator->New<VoidType>(); in GlobalTypesHolder()
48 globalTypes_[static_cast<size_t>(GlobalTypeId::NULL_ID)] = allocator->New<NullType>(); in GlobalTypesHolder()
49 globalTypes_[static_cast<size_t>(GlobalTypeId::UNDEFINED)] = allocator->New<UndefinedType>(); in GlobalTypesHolder()
50 globalTypes_[static_cast<size_t>(GlobalTypeId::UNKNOWN)] = allocator->New<UnknownType>(); in GlobalTypesHolder()
[all …]
DobjectDescriptor.cpp35 void ObjectDescriptor::Copy(ArenaAllocator *allocator, ObjectDescriptor *copiedDesc, TypeRelation *… in Copy() argument
40 auto *copiedProp = it->Copy(allocator, it->Declaration()); in Copy()
41 copiedProp->SetTsType(it->TsType()->Instantiate(allocator, relation, globalTypes)); in Copy()
46 copiedDesc->callSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy()
50 copiedDesc->constructSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy()
54 copiedDesc->numberIndexInfo = numberIndexInfo->Copy(allocator, relation, globalTypes); in Copy()
58 copiedDesc->stringIndexInfo = stringIndexInfo->Copy(allocator, relation, globalTypes); in Copy()
/arkcompiler/ets_frontend/ets2panda/varbinder/
Dscope.h212 …Variable *AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extensio… in AddDecl() argument
215 …return AddBinding(allocator, FindLocal(decl->Name(), varbinder::ResolveBindingOptions::BINDINGS), … in AddDecl()
219 …Variable *AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extens… in AddTsDecl() argument
222 …return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension); in AddTsDecl()
226 T *NewDecl(ArenaAllocator *allocator, Args &&...args);
229 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags);
232 …static VariableType *CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags fla…
236 Variable *PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args);
248 … virtual Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
267 explicit Scope(ArenaAllocator *allocator, Scope *parent) in Scope() argument
[all …]
Dscope.cpp197 Variable *Scope::AddLocalVar(ArenaAllocator *allocator, Decl *newDecl) in AddLocalVar() argument
208 …return scope->InsertBinding(newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)).fi… in AddLocalVar()
211 return scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocalVar()
214 Variable *Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddLocal() argument
220 return AddLocalVar(allocator, newDecl); in AddLocal()
223 …return bindings_.insert({newDecl->Name(), allocator->New<EnumVariable>(newDecl, false)}).first->se… in AddLocal()
227 … .insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::ENUM_LITERAL)}) in AddLocal()
231 …return bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::IN… in AddLocal()
236 … .insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::TYPE_PARAMETER)}) in AddLocal()
256 …return bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}).first->s… in AddLocal()
[all …]
/arkcompiler/ets_frontend/es2panda/binder/
Dscope.h52 explicit TSBindings(ArenaAllocator *allocator) : allocator_(allocator) {} in TSBindings() argument
102 explicit ExportBindings(ArenaAllocator *allocator) in ExportBindings() argument
103 : exportBindings_(allocator->Adapter()), in ExportBindings()
104 exportTSBindings_(allocator) in ExportBindings()
299 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() argument
302 return AddBinding(allocator, FindLocal(decl->Name()), decl, extension); in AddDecl()
305 … bool AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl() argument
308 …return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension); in AddTsDecl()
317 T *NewDecl(ArenaAllocator *allocator, Args &&... args);
320 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags);
[all …]
Dscope.cpp325 bool Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddLocal() argument
340 … scope->Bindings().insert({newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)}); in AddLocal()
342 … scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocal()
349 … newDecl->Name(), allocator->New<EnumLiteralVariable>(newDecl, VariableFlags::ENUM_LITERAL)); in AddLocal()
352 …bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE… in AddLocal()
368 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}); in AddLocal()
374 bool ParamScope::AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, Vari… in AddParam() argument
382 auto *param = allocator->New<LocalVariable>(newDecl, flags); in AddParam()
389 std::tuple<ParameterDecl *, const ir::AstNode *> ParamScope::AddParamDecl(ArenaAllocator *allocator, in AddParamDecl() argument
392 const auto [name, pattern] = util::Helpers::ParamName(allocator, param, params_.size()); in AddParamDecl()
[all …]
/arkcompiler/runtime_core/static_core/compiler/code_info/
Dcode_info_builder.h27 CodeInfoBuilder(Arch arch, ArenaAllocator *allocator) in CodeInfoBuilder() argument
29 stackMaps_(allocator), in CodeInfoBuilder()
30 inlineInfos_(allocator), in CodeInfoBuilder()
31 rootsRegMasks_(allocator), in CodeInfoBuilder()
32 rootsStackMasks_(allocator), in CodeInfoBuilder()
33 methodIds_(allocator), in CodeInfoBuilder()
34 vregsCatalogue_(allocator), in CodeInfoBuilder()
35 vregsMap_(allocator), in CodeInfoBuilder()
36 vregMasks_(allocator), in CodeInfoBuilder()
37 implicitNullchecks_(allocator), in CodeInfoBuilder()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Ddump.cpp39 …::enable_if_t<std::is_integral_v<T>, ArenaString> ToArenaString(T value, ArenaAllocator *allocator) in ToArenaString() argument
41 ArenaString res(std::to_string(value), allocator->Adapter()); in ToArenaString()
45 ArenaString GetId(uint32_t id, ArenaAllocator *allocator) in GetId() argument
47 …return (id == INVALID_ID ? ArenaString("XX", allocator->Adapter()) : ToArenaString(id, allocator)); in GetId()
50 ArenaString IdToString(uint32_t id, ArenaAllocator *allocator, bool vReg, bool isPhi) in IdToString() argument
52 ArenaString reg(vReg ? "v" : "", allocator->Adapter()); in IdToString()
53 ArenaString phi(isPhi ? "p" : "", allocator->Adapter()); in IdToString()
54 return reg + GetId(id, allocator) + phi; in IdToString()
70 ArenaString InstId(const Inst *inst, ArenaAllocator *allocator) in InstId() argument
74 return ArenaString("ss", allocator->Adapter()) + in InstId()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dmir_nodes.h114 virtual BaseNode *CloneTree(MapleAllocator &allocator) const in CloneTree() argument
116 return allocator.GetMemPool()->New<BaseNode>(*this); in CloneTree()
241 UnaryNode *CloneTree(MapleAllocator &allocator) const override in CloneTree() argument
243 auto *node = allocator.GetMemPool()->New<UnaryNode>(*this); in CloneTree()
244 node->SetOpnd(uOpnd->CloneTree(allocator), 0); in CloneTree()
300 TypeCvtNode *CloneTree(MapleAllocator &allocator) const override in CloneTree() argument
302 auto *node = allocator.GetMemPool()->New<TypeCvtNode>(*this); in CloneTree()
303 node->SetOpnd(Opnd(0)->CloneTree(allocator), 0); in CloneTree()
339 RetypeNode *CloneTree(MapleAllocator &allocator) const override in CloneTree() argument
341 auto *node = allocator.GetMemPool()->New<RetypeNode>(*this); in CloneTree()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dsparse_datainfo.h33 …SparseDataInfo(uint32 bitNum, const MapleAllocator &alloc) : allocator(alloc), info(allocator), ma… in SparseDataInfo()
36 : allocator(alloc), in SparseDataInfo()
37 info(other.info, allocator), in SparseDataInfo()
43 : allocator(other.allocator), in SparseDataInfo()
44 info(other.info, allocator), in SparseDataInfo()
62 allocator = other.GetAllocator();
95 return allocator; in GetAllocator()
156 MapleAllocator allocator;
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Ddominators_tree.cpp153 auto allocator = GetGraph()->GetLocalAllocator(); in Init() local
154 ancestors_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
155 buckets_ = allocator->New<ArenaVector<BlocksVector>>(allocator->Adapter()); in Init()
156 idoms_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
157 labels_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
158 parents_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
159 semi_ = allocator->New<ArenaVector<int32_t>>(allocator->Adapter()); in Init()
160 vertices_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
172 buckets_->resize(blocksCount, BlocksVector(allocator->Adapter())); in Init()
/arkcompiler/runtime_core/compiler/optimizer/analysis/
Ddominators_tree.cpp153 auto allocator = GetGraph()->GetLocalAllocator(); in Init() local
154 ancestors_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
155 buckets_ = allocator->New<ArenaVector<BlocksVector>>(allocator->Adapter()); in Init()
156 idoms_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
157 labels_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
158 parents_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
159 semi_ = allocator->New<ArenaVector<int32_t>>(allocator->Adapter()); in Init()
160 vertices_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
172 buckets_->resize(blocks_count, BlocksVector(allocator->Adapter())); in Init()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgc_adaptive_stack.cpp31 auto allocator = gc_->GetInternalAllocator(); in GCAdaptiveStack() local
36 stackSrc_ = allocator->template New<PandaDeque<ObjectHeader *>>(allocator->Adapter()); in GCAdaptiveStack()
38 stackDst_ = allocator->template New<PandaDeque<ObjectHeader *>>(allocator->Adapter()); in GCAdaptiveStack()
90 auto allocator = gc_->GetInternalAllocator(); in PushToStack() local
92 …auto *newStack = allocator->New<GCAdaptiveStack>(gc_, newTaskStackSizeLimit_, newTaskStackSizeLimi… in PushToStack()
97 stackDst_ = allocator->template New<PandaDeque<ObjectHeader *>>(allocator->Adapter()); in PushToStack()
105 allocator->Delete(newStack); in PushToStack()
157 auto allocator = gc_->GetInternalAllocator(); in TraverseObjects() local
160 allocator->template New<PandaDeque<ObjectHeader *>>(allocator->Adapter()); in TraverseObjects()
173 stackSrc_ = allocator->template New<PandaDeque<ObjectHeader *>>(allocator->Adapter()); in TraverseObjects()
[all …]
/arkcompiler/ets_frontend/ets2panda/checker/types/
DglobalTypesHolder.cpp52 GlobalTypesHolder::GlobalTypesHolder(ArenaAllocator *allocator) : builtinNameMappings_(allocator->A… in GlobalTypesHolder() argument
55 globalTypes_[static_cast<size_t>(GlobalTypeId::NUMBER)] = allocator->New<NumberType>(); in GlobalTypesHolder()
56 globalTypes_[static_cast<size_t>(GlobalTypeId::ANY)] = allocator->New<AnyType>(); in GlobalTypesHolder()
57 globalTypes_[static_cast<size_t>(GlobalTypeId::STRING)] = allocator->New<StringType>(); in GlobalTypesHolder()
58 globalTypes_[static_cast<size_t>(GlobalTypeId::BOOLEAN)] = allocator->New<BooleanType>(); in GlobalTypesHolder()
59 globalTypes_[static_cast<size_t>(GlobalTypeId::VOID)] = allocator->New<VoidType>(); in GlobalTypesHolder()
60 globalTypes_[static_cast<size_t>(GlobalTypeId::NULL_ID)] = allocator->New<NullType>(); in GlobalTypesHolder()
61 globalTypes_[static_cast<size_t>(GlobalTypeId::UNDEFINED)] = allocator->New<UndefinedType>(); in GlobalTypesHolder()
62 globalTypes_[static_cast<size_t>(GlobalTypeId::UNKNOWN)] = allocator->New<UnknownType>(); in GlobalTypesHolder()
63 globalTypes_[static_cast<size_t>(GlobalTypeId::NEVER)] = allocator->New<NeverType>(); in GlobalTypesHolder()
[all …]
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
DobjectDescriptor.cpp34 void ObjectDescriptor::Copy(ArenaAllocator *allocator, ObjectDescriptor *copiedDesc, TypeRelation *… in Copy() argument
39 auto *copiedProp = it->Copy(allocator, it->Declaration()); in Copy()
40 copiedProp->SetTsType(it->TsType()->Instantiate(allocator, relation, globalTypes)); in Copy()
45 copiedDesc->callSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy()
49 copiedDesc->constructSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy()
53 copiedDesc->numberIndexInfo = numberIndexInfo->Copy(allocator, relation, globalTypes); in Copy()
57 copiedDesc->stringIndexInfo = stringIndexInfo->Copy(allocator, relation, globalTypes); in Copy()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/
Dutil.cpp38 ir::Identifier *Gensym(ArenaAllocator *const allocator) in Gensym() argument
40 util::UString const s = GenName(allocator); in Gensym()
41 return allocator->New<ir::Identifier>(s.View(), allocator); in Gensym()
44 util::UString GenName(ArenaAllocator *const allocator) in GenName() argument
49 return util::UString {GENSYM_CORE + std::to_string(++gensymCounter), allocator}; in GenName()
/arkcompiler/ets_frontend/ets2panda/util/
Dpath.cpp25 Path::Path(const util::StringView &absolutePath, ArenaAllocator *allocator) in Path() argument
27 Initializer(absolutePath.Mutf8(), allocator); in Path()
30 void Path::Initializer(const std::string &path, ArenaAllocator *allocator) in Initializer() argument
33 allocator_ = allocator; in Initializer()
34 path_ = util::UString(path, allocator).View(); in Initializer()
115 …(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *allocator) in Path() argument
117 Initializer(relativePath.Mutf8(), allocator); in Path()
121 Path::Path(const std::string &absolutePath, ArenaAllocator *allocator) in Path() argument
123 Initializer(absolutePath, allocator); in Path()
126 Path::Path(const std::string &relativePath, const std::string &basePath, ArenaAllocator *allocator) in Path() argument
[all …]

12345678910>>...29