Home
last modified time | relevance | path

Searched refs:allocator (Results 1 - 25 of 913) sorted by relevance

12345678910>>...37

/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DASTVerifier.cpp40 ASTVerifier::ASTVerifier(ArenaAllocator *allocator) in ASTVerifier() argument
42 AddInvariant<NodeHasParent>(allocator, "NodeHasParent"); in ASTVerifier()
43 AddInvariant<NodeHasSourceRange>(allocator, "NodeHasSourceRange"); in ASTVerifier()
44 AddInvariant<NodeHasType>(allocator, "NodeHasType"); in ASTVerifier()
45 AddInvariant<IdentifierHasVariable>(allocator, "IdentifierHasVariable"); in ASTVerifier()
46 AddInvariant<VariableHasScope>(allocator, "VariableHasScope"); in ASTVerifier()
47 AddInvariant<EveryChildHasValidParent>(allocator, "EveryChildHasValidParent"); in ASTVerifier()
48 AddInvariant<EveryChildInParentRange>(allocator, "EveryChildInParentRange"); in ASTVerifier()
49 AddInvariant<VariableHasEnclosingScope>(allocator, "VariableHasEnclosingScope"); in ASTVerifier()
50 AddInvariant<CheckInfiniteLoop>(allocator, "CheckInfiniteLoo in ASTVerifier()
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dregion_allocator_test.cpp51 // we don't need young space for non-movable or humongous allocator tests in RegionAllocatorTestBase()
77 void AddMemoryPoolToAllocator([[maybe_unused]] ObjectAllocator &allocator) final {}
79 void AddMemoryPoolToAllocatorProtected([[maybe_unused]] ObjectAllocator &allocator) final {}
81 bool AllocatedByThisAllocator([[maybe_unused]] ObjectAllocator &allocator, [[maybe_unused]] void *mem) override
83 return allocator.ContainObject(reinterpret_cast<ObjectHeader *>(mem));
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_ argument
155 AllocateLargeObject(NonObjectRegionAllocator &allocator, size_t &freeRegions, size_t size) AllocateLargeObject() argument
168 AllocateYoungRegular(NonObjectRegionAllocator &allocator, size_t size) AllocateYoungRegular() argument
[all...]
H A Dfreelist_allocator_test.cpp80 ASSERT_TRUE(0 && "Can't add mem pool to allocator");
90 bool AllocatedByThisAllocator(NonObjectFreeListAllocator &allocator, void *mem) override
92 return allocator.AllocatedByFreeListAllocator(mem);
120 NonObjectFreeListAllocator allocator(memStats); in TEST_F()
121 AddMemoryPoolToAllocator(allocator); in TEST_F()
124 void *mem = allocator.Alloc(i); in TEST_F()
199 NonObjectFreeListAllocator allocator(memStats); in TEST_F()
200 AddMemoryPoolToAllocator(allocator); in TEST_F()
205 void *mem = allocator.Alloc(MIN_ALLOC_SIZE); in TEST_F()
213 allocator in TEST_F()
[all...]
H A Dallocator_test_base.h31 #include "runtime/mem/bump-allocator.h"
68 * @brief Add pool to allocator (maybe empty for some allocators)
69 * @param allocator - allocator for pool memory adding
71 virtual void AddMemoryPoolToAllocator([[maybe_unused]] Allocator &allocator) = 0;
74 * @brief Add pool to allocator and protect (maybe empty for some allocators)
75 * @param allocator - allocator for pool memory addition and protection
77 virtual void AddMemoryPoolToAllocatorProtected([[maybe_unused]] Allocator &allocator) = 0;
80 * @brief Check to allocated by this allocator
365 FreeAllocatedElements(std::array<std::vector<void *>, POOLS_COUNT> &allocatedElements, Allocator &allocator, size_t i) FreeAllocatedElements() argument
772 AllocatedByThisAllocatorTest(Allocator &allocator) AllocatedByThisAllocatorTest() argument
806 MtAllocTest(Allocator *allocator, size_t minElementsCount, size_t maxElementsCount) MtAllocTest() argument
981 ObjectIteratingSetUp(size_t freeGranularity, size_t poolsCount, Allocator &allocator, size_t &elementsCount, std::vector<void *> &allocatedElements, std::unordered_set<size_t> &usedIndexes) ObjectIteratingSetUp() argument
1093 MtAllocRun(AllocatorTest<Allocator> *allocatorTestInstance, Allocator *allocator, std::atomic<size_t> *numFinished, size_t minAllocSize, size_t maxAllocSize, size_t minElementsCount, size_t maxElementsCount) MtAllocRun() argument
1138 MtAllocFreeRun(AllocatorTest<Allocator> *allocatorTestInstance, Allocator *allocator, std::atomic<size_t> *numFinished, size_t freeGranularity, size_t minAllocSize, size_t maxAllocSize, size_t minElementsCount, size_t maxElementsCount) MtAllocFreeRun() argument
1204 MtAllocIterateRun(AllocatorTest<Allocator> *allocatorTestInstance, Allocator *allocator, std::atomic<size_t> *numFinished, size_t rangeIterationSize, size_t minAllocSize, size_t maxAllocSize, size_t minElementsCount, size_t maxElementsCount) MtAllocIterateRun() argument
1257 MtAllocCollectRun(AllocatorTest<Allocator> *allocatorTestInstance, Allocator *allocator, std::atomic<size_t> *numFinished, size_t minAllocSize, size_t maxAllocSize, size_t minElementsCount, size_t maxElementsCount, uint32_t maxThreadWithCollect, std::atomic<uint32_t> *threadWithCollect) MtAllocCollectRun() argument
1296 MTTestPrologue(Allocator &allocator, size_t allocSize) MTTestPrologue() argument
[all...]
H A Drem_set_test.cpp92 NonObjectRegionAllocator allocator(memStats, &spaces_); in TEST_F()
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()
128 cls->SetObjectSize(allocator.GetMaxRegularObjectSize()); in TEST_F()
130 auto obj1 = static_cast<ObjectHeader *>(allocator.Alloc(allocator in TEST_F()
[all...]
H A Dmalloc-proxy-allocator-test.cpp21 #include "runtime/mem/malloc-proxy-allocator-inl.h"
48 void AddMemoryPoolToAllocator([[maybe_unused]] MallocProxyNonObjectAllocator &allocator) override {}
49 void AddMemoryPoolToAllocatorProtected([[maybe_unused]] MallocProxyNonObjectAllocator &allocator) override {}
50 bool AllocatedByThisAllocator([[maybe_unused]] MallocProxyNonObjectAllocator &allocator,
61 MallocProxyNonObjectAllocator allocator(memStats); in TEST_F()
62 void *a1 = allocator.Alloc(SIZE); in TEST_F()
63 allocator.Free(a1); in TEST_F()
81 MallocProxyNonObjectAllocator allocator(memStats); in TEST_F()
89 auto *mem = allocator.Alloc(i); in TEST_F()
93 allocator in TEST_F()
[all...]
H A Dmock_queue_thread_pool.cpp90 explicit MockQueue(mem::InternalAllocatorPtr allocator) : queue_(allocator->Adapter()) {} in MockQueue() argument
91 MockQueue(mem::InternalAllocatorPtr allocator, size_t queueSize) in MockQueue() argument
92 : TaskQueueInterface<MockTask>(queueSize), queue_(allocator->Adapter()) in MockQueue()
183 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); in TestThreadPool() local
184 auto queue = allocator->New<MockQueue>(allocator); in TestThreadPool()
185 auto controller = allocator->New<MockTaskController>(); in TestThreadPool()
186 auto threadPool = allocator->New<ThreadPool<MockTask, MockProcessor, MockTaskController *>>( in TestThreadPool()
187 allocator, queu in TestThreadPool()
288 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); TestThreadPoolWithControllers() local
[all...]
/arkcompiler/runtime_core/compiler/optimizer/ir/
H A Ddump.cpp31 std::enable_if_t<std::is_integral_v<T>, ArenaString> ToArenaString(T value, ArenaAllocator *allocator) in ToArenaString() argument
33 ArenaString res(std::to_string(value), allocator->Adapter()); in ToArenaString()
37 ArenaString GetId(uint32_t id, ArenaAllocator *allocator) in GetId() argument
39 return (id == INVALID_ID ? ArenaString("XX", allocator->Adapter()) : ToArenaString(id, allocator)); in GetId()
42 ArenaString IdToString(uint32_t id, ArenaAllocator *allocator, bool v_reg, bool is_phi) in IdToString() argument
44 ArenaString reg(v_reg ? "v" : "", allocator->Adapter()); in IdToString()
45 ArenaString phi(is_phi ? "p" : "", allocator->Adapter()); in IdToString()
46 return reg + GetId(id, allocator) + phi; in IdToString()
62 ArenaString InstId(const Inst *inst, ArenaAllocator *allocator) in InstId() argument
75 BBId(const BasicBlock *block, ArenaAllocator *allocator) BBId() argument
86 auto allocator = inst->GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpUsers() local
104 GetCondCodeToString(ConditionCode cc, ArenaAllocator *allocator) GetCondCodeToString() argument
139 PcToString(uint32_t pc, ArenaAllocator *allocator) PcToString() argument
146 BBDependence(const char *type, const ArenaVector<BasicBlock *> &bb_vector, std::ostream *out, ArenaAllocator *allocator) BBDependence() argument
160 DumpTypedFieldOpcode(std::ostream *out, Opcode opcode, uint32_t type_id, const ArenaString &field_name, ArenaAllocator *allocator) DumpTypedFieldOpcode() argument
170 DumpTypedOpcode(std::ostream *out, Opcode opcode, uint32_t type_id, ArenaAllocator *allocator) DumpTypedOpcode() argument
180 const auto &allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpInputs() local
196 const auto &allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpInputs() local
230 const auto &allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpInputs() local
294 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
307 auto allocator = mixin_inst->GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcodeAnyTypeMixin() local
332 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
343 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
390 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); Dump() local
502 const auto &allocator = GetGraph()->GetLocalAllocator(); Dump() local
[all...]
/arkcompiler/ets_frontend/es2panda/binder/
H A Dscope.h56 explicit TSBindings(ArenaAllocator *allocator) : allocator_(allocator) {} in TSBindings() argument
106 explicit ExportBindings(ArenaAllocator *allocator) in ExportBindings() argument
107 : exportBindings_(allocator->Adapter()), in ExportBindings()
108 exportTSBindings_(allocator) in ExportBindings()
309 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() argument
313 return AddBinding(allocator, FindLocal(decl->Name()), decl, extension); in AddDecl()
316 bool AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl() argument
319 return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension); in AddTsDecl()
328 T *NewDecl(ArenaAllocator *allocator, Arg
432 Scope(ArenaAllocator *allocator, Scope *parent) Scope() argument
589 VariableScope(ArenaAllocator *allocator, Scope *parent) VariableScope() argument
650 ParamScope(ArenaAllocator *allocator, Scope *parent) ParamScope() argument
664 FunctionParamScope(ArenaAllocator *allocator, Scope *parent) FunctionParamScope() argument
712 ScopeWithParamScope(ArenaAllocator *allocator, Scope *parent) ScopeWithParamScope() argument
756 FunctionScope(ArenaAllocator *allocator, Scope *parent) FunctionScope() argument
839 LocalScope(ArenaAllocator *allocator, Scope *parent) LocalScope() argument
852 ClassScope(ArenaAllocator *allocator, Scope *parent) ClassScope() argument
944 CatchParamScope(ArenaAllocator *allocator, Scope *parent) CatchParamScope() argument
959 CatchScope(ArenaAllocator *allocator, Scope *parent) CatchScope() argument
972 LoopScope(ArenaAllocator *allocator, Scope *parent) LoopScope() argument
993 StaticBlockScope(ArenaAllocator *allocator, Scope *parent) StaticBlockScope() argument
1012 GlobalScope(ArenaAllocator *allocator) GlobalScope() argument
1044 ModuleScope(ArenaAllocator *allocator, parser::Program *program) ModuleScope() argument
1089 TSModuleScope(ArenaAllocator *allocator, Scope *parent, ExportBindings *exportBindings) TSModuleScope() argument
1157 TSEnumScope(ArenaAllocator *allocator, Scope *parent, VariableMap *enumMemberBindings) TSEnumScope() argument
1218 AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddVar() argument
1246 AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddFunction() argument
1283 AddClass(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddClass() argument
1304 AddTSBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, Decl *newDecl, VariableFlags flags) AddTSBinding() argument
1314 AddTSBinding(ArenaAllocator *allocator, Decl *newDecl, VariableFlags flags) AddTSBinding() argument
1341 AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddLexical() argument
1354 NewDecl(ArenaAllocator *allocator, Args &&... args) NewDecl() argument
1363 AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags) AddDecl() argument
1381 CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags flags, const ir::AstNode *node) CreateVar() argument
1393 PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&... args) PropagateBinding() argument
[all...]
H A Dscope.cpp423 bool Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddLocal() argument
438 scope->Bindings().insert({newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)}); in AddLocal()
440 scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocal()
447 newDecl->Name(), allocator->New<EnumLiteralVariable>(newDecl, VariableFlags::ENUM_LITERAL)); in AddLocal()
450 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE)}); in AddLocal()
466 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}); in AddLocal()
472 bool ParamScope::AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags) in AddParam() argument
481 auto *param = allocator->New<LocalVariable>(newDecl, flags); in AddParam()
488 std::tuple<ParameterDecl *, const ir::AstNode *> ParamScope::AddParamDecl(ArenaAllocator *allocator, in AddParamDecl() argument
491 const auto [name, pattern] = util::Helpers::ParamName(allocator, para in AddParamDecl()
523 BindName(ArenaAllocator *allocator, util::StringView name) BindName() argument
529 AddBinding([[maybe_unused]] ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, [[maybe_unused]] Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
582 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
665 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
700 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
740 ConvertLocalVariableToModuleVariable(ArenaAllocator *allocator, util::StringView localName) ConvertLocalVariableToModuleVariable() argument
762 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
823 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
843 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
849 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dscope.h218 Variable *AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() argument
223 return AddBinding(allocator, FindLocal(decl->Name(), options), decl, extension); in AddDecl()
226 Variable *AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl() argument
229 return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension); in AddTsDecl()
233 T *NewDecl(ArenaAllocator *allocator, Args &&...args);
236 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags);
239 static VariableType *CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags flags,
243 Variable *PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args);
255 ArenaMap<util::StringView, Variable *> OrderedBindings(ArenaAllocator *allocator) const in OrderedBindings()
257 ArenaMap<util::StringView, Variable *> result(allocator in OrderedBindings()
283 Scope(ArenaAllocator *allocator, Scope *parent) Scope() argument
288 Scope(ArenaAllocator *allocator, Scope *parent, ScopeFlags flags) Scope() argument
400 VariableScope(ArenaAllocator *allocator, Scope *parent) VariableScope() argument
441 ParamScope(ArenaAllocator *allocator, Scope *parent) ParamScope() argument
456 FunctionParamScope(ArenaAllocator *allocator, Scope *parent) FunctionParamScope() argument
495 ScopeWithParamScope(ArenaAllocator *allocator, Scope *parent) ScopeWithParamScope() argument
528 LocalScope(ArenaAllocator *allocator, Scope *parent) LocalScope() argument
529 LocalScope(ArenaAllocator *allocator, Scope *parent, ScopeFlags flags) LocalScope() argument
542 LocalScopeWithTypeAlias(ArenaAllocator *allocator, Scope *parent) LocalScopeWithTypeAlias() argument
547 LocalScopeWithTypeAlias(ArenaAllocator *allocator, Scope *parent, ScopeFlags flags) LocalScopeWithTypeAlias() argument
574 FunctionScope(ArenaAllocator *allocator, Scope *parent) FunctionScope() argument
623 ClassScope(ArenaAllocator *allocator, Scope *parent) ClassScope() argument
756 CatchParamScope(ArenaAllocator *allocator, Scope *parent) CatchParamScope() argument
771 CatchScope(ArenaAllocator *allocator, Scope *parent) CatchScope() argument
786 LoopDeclarationScope(ArenaAllocator *allocator, Scope *parent) LoopDeclarationScope() argument
819 LoopScope(ArenaAllocator *allocator, Scope *parent) LoopScope() argument
860 GlobalScope(ArenaAllocator *allocator) GlobalScope() argument
900 ModuleScope(ArenaAllocator *allocator) ModuleScope() argument
950 AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddVar() argument
972 AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddFunction() argument
998 AddTSBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, Decl *newDecl, VariableFlags flags) AddTSBinding() argument
1006 AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddLexical() argument
1016 NewDecl(ArenaAllocator *allocator, Args &&...args) NewDecl() argument
1025 AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags) AddDecl() argument
1042 CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags flags, ir::AstNode *node) CreateVar() argument
1051 PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args) PropagateBinding() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DlambdaLowering.cpp82 static util::StringView CreateCalleeName(ArenaAllocator *allocator) in CreateCalleeName() argument
84 auto name = util::UString(util::StringView("lambda$invoke$"), allocator); in CreateCalleeName()
97 auto *allocator = ctx->allocator; in CloneTypeParams() local
100 auto *newScope = allocator->New<varbinder::LocalScope>(allocator, enclosingScope); in CloneTypeParams()
101 auto newTypeParams = ArenaVector<checker::ETSTypeParameter *>(allocator->Adapter()); in CloneTypeParams()
102 auto newTypeParamNodes = ArenaVector<ir::TSTypeParameter *>(allocator->Adapter()); in CloneTypeParams()
108 auto *newTypeParamId = allocator->New<ir::Identifier>(oldTypeParamNode->Name()->Name(), allocator); in CloneTypeParams()
156 auto allocator = ctx->allocator; CreateLambdaCalleeParameters() local
250 auto *allocator = ctx->allocator; SetUpCalleeMethod() local
308 auto *allocator = ctx->allocator; GetAndApplyFunctionScope() local
329 auto *allocator = ctx->allocator; CreateCalleeMethod() local
396 auto *allocator = ctx->allocator; CreateCalleeDefault() local
503 auto *allocator = ctx->allocator; CreateCallee() local
542 auto *allocator = ctx->allocator; CreateLambdaClassFields() local
567 auto *allocator = ctx->allocator; CreateLambdaClassConstructor() local
623 auto *allocator = ctx->allocator; CreateCallForLambdaClassInvoke() local
672 auto *allocator = ctx->allocator; CreateLambdaClassInvoke() local
750 auto *allocator = ctx->allocator; CreateLambdaClass() local
813 auto *allocator = ctx->allocator; CreateConstructorCall() local
852 auto *allocator = ctx->allocator; ConvertLambda() local
927 auto *allocator = ctx->allocator; CreateWrappingLambda() local
986 auto *allocator = ctx->allocator; ConvertFunctionReference() local
1062 auto *allocator = ctx->allocator; InsertInvokeCall() local
[all...]
H A DboxingForLocals.cpp27 auto *allocator = ctx->allocator; in FindCaptured() local
28 auto captured = ArenaSet<varbinder::Variable *>(allocator->Adapter()); in FindCaptured()
31 auto innermostArrowScopes = ArenaSet<varbinder::Scope *>(allocator->Adapter()); in FindCaptured()
38 auto savedScopes = ArenaSet<varbinder::Scope *>(allocator->Adapter()); in FindCaptured()
78 auto varsToBox = ArenaSet<varbinder::Variable *>(allocator->Adapter()); in FindCaptured()
84 auto *allocator = ctx->allocator; in FindModified() local
85 auto modified = ArenaSet<varbinder::Variable *>(allocator->Adapter()); in FindModified()
105 auto *allocator in FindVariablesToBox() local
119 auto *allocator = ctx->allocator; HandleFunctionParam() local
174 auto *allocator = ctx->allocator; HandleVariableDeclarator() local
306 auto *allocator = ctx->allocator; HandleScriptFunction() local
[all...]
/arkcompiler/ets_frontend/es2panda/typescript/types/
H A 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 in GlobalTypesHolder()
[all...]
/arkcompiler/runtime_core/static_core/compiler/code_info/
H A Dcode_info_builder.h29 CodeInfoBuilder(Arch arch, ArenaAllocator *allocator) in CodeInfoBuilder() argument
31 stackMaps_(allocator), in CodeInfoBuilder()
32 inlineInfos_(allocator), in CodeInfoBuilder()
33 rootsRegMasks_(allocator), in CodeInfoBuilder()
34 rootsStackMasks_(allocator), in CodeInfoBuilder()
35 methodIds_(allocator), in CodeInfoBuilder()
36 vregsCatalogue_(allocator), in CodeInfoBuilder()
37 vregsMap_(allocator), in CodeInfoBuilder()
38 vregMasks_(allocator), in CodeInfoBuilder()
39 implicitNullchecks_(allocator), in CodeInfoBuilder()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dmem_reference_table.h29 explicit MemDefUse(MapleAllocator &allocator) : defSet(allocator.Adapter()), useSet(allocator.Adapter()) {} in MemDefUse() argument
84 MemReferenceTable(MapleAllocator &allocator, MIRFunction &func) in MemReferenceTable() argument
85 : allocator(allocator), func(func), ostTable(allocator.Adapter()), memDefUsePart(allocator.Adapter()) in MemReferenceTable()
111 auto *newDefUse = allocator.New<MemDefUse>(allocator); in GetOrCreateMemDefUseFromBaseNode()
117 MapleAllocator &allocator; global() member in maple::MemReferenceTable
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Ddump.cpp39 std::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
83 BBId(const BasicBlock *block, ArenaAllocator *allocator) BBId() argument
94 auto allocator = inst->GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpUsers() local
112 GetCondCodeToString(ConditionCode cc, ArenaAllocator *allocator) GetCondCodeToString() argument
147 PcToString(uint32_t pc, ArenaAllocator *allocator) PcToString() argument
155 BBDependence(const char *type, const T &bbVector, std::ostream *out, ArenaAllocator *allocator) BBDependence() argument
168 FieldToString(RuntimeInterface *runtime, ObjectType type, RuntimeInterface::FieldPtr field, ArenaAllocator *allocator) FieldToString() argument
187 DumpTypedFieldOpcode(std::ostream *out, Opcode opcode, uint32_t typeId, const ArenaString &fieldName, ArenaAllocator *allocator) DumpTypedFieldOpcode() argument
197 DumpTypedOpcode(std::ostream *out, Opcode opcode, uint32_t typeId, ArenaAllocator *allocator) DumpTypedOpcode() argument
205 DumpTypedOpcode(std::ostream *out, Opcode opcode, uint32_t typeId, const ArenaString &flags, ArenaAllocator *allocator) DumpTypedOpcode() argument
216 const auto &allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpInputs() local
237 const auto &allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpInputs() local
305 const auto &allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpInputs() local
364 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpInputs() local
372 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
385 auto allocator = mixinInst->GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcodeAnyTypeMixin() local
426 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
438 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
512 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
523 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
534 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
545 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
592 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
638 auto *allocator = graph->GetLocalAllocator(); DumpObjectPairOpcode() local
763 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
777 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
795 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); DumpOpcode() local
820 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
839 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
854 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
869 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
885 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
902 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
912 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
922 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
934 auto allocator = graph->GetLocalAllocator(); DumpOpcode() local
955 auto allocator = graph->GetLocalAllocator(); DumpInputs() local
970 const auto &allocator = graph->GetLocalAllocator(); DumpInputs() local
985 const auto &allocator = graph->GetLocalAllocator(); DumpInputs() local
1030 const auto &allocator = graph->GetLocalAllocator(); DumpInputs() local
1051 const auto &allocator = graph->GetLocalAllocator(); DumpInputs() local
1074 auto allocator = graph->GetLocalAllocator(); DumpInputs() local
1139 auto allocator = GetBasicBlock()->GetGraph()->GetLocalAllocator(); Dump() local
1282 const auto &allocator = GetGraph()->GetLocalAllocator(); Dump() local
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dmir_nodes.h116 virtual BaseNode *CloneTree(MapleAllocator &allocator) const in CloneTree()
118 return allocator.GetMemPool()->New<BaseNode>(*this); in CloneTree()
232 UnaryNode *CloneTree(MapleAllocator &allocator) const override
234 auto *node = allocator.GetMemPool()->New<UnaryNode>(*this);
235 node->SetOpnd(uOpnd->CloneTree(allocator), 0);
285 TypeCvtNode *CloneTree(MapleAllocator &allocator) const override
287 auto *node = allocator.GetMemPool()->New<TypeCvtNode>(*this);
288 node->SetOpnd(Opnd(0)->CloneTree(allocator), 0);
325 RetypeNode *CloneTree(MapleAllocator &allocator) const override
327 auto *node = allocator
1326 SwitchNode(MapleAllocator &allocator) SwitchNode() argument
1330 SwitchNode(MapleAllocator &allocator, LabelIdx label) SwitchNode() argument
1332 SwitchNode(MapleAllocator &allocator, LabelIdx label, BaseNode *opnd) SwitchNode() argument
1339 SwitchNode(MapleAllocator &allocator, const SwitchNode &node) SwitchNode() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Dsparse_datainfo.h33 SparseDataInfo(uint32 bitNum, const MapleAllocator &alloc) : allocator(alloc), info(allocator), maxRegNum(bitNum) {} 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(); in operator =()
95 return allocator; in GetAllocator()
156 MapleAllocator allocator; member in maplebe::SparseDataInfo
[all...]
/arkcompiler/runtime_core/compiler/tests/
H A Dreg_alloc_interference_graph_new_test.cpp92 ArenaAllocator allocator {SpaceType::SPACE_TYPE_COMPILER}; in HWTEST_F()
93 GraphMatrix matrix(&allocator); in HWTEST_F()
115 ArenaAllocator allocator {SpaceType::SPACE_TYPE_COMPILER}; in HWTEST_F()
116 GraphMatrix matrix(&allocator); in HWTEST_F()
138 ArenaAllocator allocator {SpaceType::SPACE_TYPE_COMPILER}; in HWTEST_F()
139 ColorNode node1(0, allocator.Adapter()); in HWTEST_F()
141 ColorNode node2(1, allocator.Adapter()); in HWTEST_F()
153 ArenaAllocator allocator {SpaceType::SPACE_TYPE_COMPILER}; in HWTEST_F()
154 ColorNode node(0, allocator.Adapter()); in HWTEST_F()
169 ArenaAllocator allocator {SpaceTyp in HWTEST_F()
[all...]
/arkcompiler/runtime_core/static_core/runtime/
H A Dthread.cpp41 // WORKAROUND(v.cherkashin): EcmaScript side build doesn't have HeapManager, so we get internal allocator from in GetInternalAllocator()
68 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); in FreeAllocatedMemory() local
69 ASSERT(allocator != nullptr); in FreeAllocatedMemory()
70 allocator->Delete(preBuff_); in FreeAllocatedMemory()
74 allocator->Free(signalStack_.ss_sp); in FreeAllocatedMemory()
91 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Thread() local
92 signalStack_.ss_sp = allocator->Alloc(SIGSTKSZ * 8U); in Thread()
131 auto allocator = GetInternalAllocator(this); in InitPreBuff() local
135 preBuff_ = allocator->New<PandaVector<ObjectHeader *>>(); in InitPreBuff()
156 mem::InternalAllocatorPtr allocator in Initialize() local
166 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); Shutdown() local
185 mem::InternalAllocatorPtr allocator = runtime->GetInternalAllocator(); Create() local
196 mem::InternalAllocatorPtr allocator = runtime->GetInternalAllocator(); Create() local
207 ManagedThread(ThreadId id, mem::InternalAllocatorPtr allocator, PandaVM *pandaVm, Thread::ThreadType threadType, ark::panda_file::SourceLang threadLang) ManagedThread() argument
267 mem::InternalAllocatorPtr allocator = GetInternalAllocator(this); ~ManagedThread() local
283 auto allocator = GetInternalAllocator(this); InitBuffers() local
614 MTManagedThread(ThreadId id, mem::InternalAllocatorPtr allocator, PandaVM *pandaVm, ark::panda_file::SourceLang threadLang) MTManagedThread() argument
935 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); FreeInternalMemory() local
[all...]
/arkcompiler/ets_frontend/ets2panda/util/
H A 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()
111 Path::Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *allocator) in Path() argument
113 Initializer(relativePath.Mutf8(), allocator); in Path()
117 Path::Path(const std::string &absolutePath, ArenaAllocator *allocator) in Path() argument
119 Initializer(absolutePath, allocator); in Path()
122 Path::Path(const std::string &relativePath, const std::string &basePath, ArenaAllocator *allocator) in Path() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/types/
H A DglobalTypesHolder.cpp71 void GlobalTypesHolder::AddFunctionTypes(ArenaAllocator *allocator) in AddFunctionTypes() argument
76 builtinNameMappings_.emplace(util::UString("ThrowingFunction" + std::to_string(nargs), allocator).View(), in AddFunctionTypes()
85 builtinNameMappings_.emplace(util::UString("RethrowingFunction" + std::to_string(nargs), allocator).View(), in AddFunctionTypes()
94 builtinNameMappings_.emplace(util::UString("Function" + std::to_string(nargs), allocator).View(), in AddFunctionTypes()
101 void GlobalTypesHolder::AddTSSpecificTypes(ArenaAllocator *allocator) in AddTSSpecificTypes() argument
103 globalTypes_[static_cast<size_t>(GlobalTypeId::NUMBER)] = allocator->New<NumberType>(); in AddTSSpecificTypes()
104 globalTypes_[static_cast<size_t>(GlobalTypeId::ANY)] = allocator->New<AnyType>(); in AddTSSpecificTypes()
105 globalTypes_[static_cast<size_t>(GlobalTypeId::STRING)] = allocator->New<StringType>(); in AddTSSpecificTypes()
106 globalTypes_[static_cast<size_t>(GlobalTypeId::BOOLEAN)] = allocator->New<BooleanType>(); in AddTSSpecificTypes()
107 globalTypes_[static_cast<size_t>(GlobalTypeId::VOID)] = allocator in AddTSSpecificTypes()
133 AddEtsSpecificTypes(ArenaAllocator *allocator) AddEtsSpecificTypes() argument
195 GlobalTypesHolder(ArenaAllocator *allocator) GlobalTypesHolder() argument
[all...]
/arkcompiler/runtime_core/compiler/optimizer/analysis/
H A Ddominators_tree.cpp152 auto allocator = GetGraph()->GetLocalAllocator(); in Init() local
153 ancestors_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
154 buckets_ = allocator->New<ArenaVector<BlocksVector>>(allocator->Adapter()); in Init()
155 idoms_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
156 labels_ = allocator->New<BlocksVector>(allocator->Adapter()); in Init()
157 parents_ = allocator in Init()
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A 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 in Init()
[all...]

Completed in 20 milliseconds

12345678910>>...37