/arkcompiler/runtime_core/docs/diagrams/ |
D | gc-trigger-sequence-OOM.pusequence | 23 participant Allocator 27 AppThread1 -> Allocator: Request for the allocation 28 Allocator -> Allocator: OOM 29 Allocator -> GCTaskQueue: Add new GC task and wait for GC 30 Allocator -> AppThread2: Suspend 35 GC --> Allocator : GC finished 36 Allocator -> AppThread2 : Resume 37 Allocator -> AppThread1 : Return allocated memory
|
D | gc-trigger-sequence-threshold.pusequence | 23 participant Allocator 27 AppThread1 -> Allocator: Request for the allocation 28 Allocator -> Allocator: threshold for heap occupancy reached 29 Allocator -> GCTaskQueue: Add new GC task 30 Allocator -> AppThread1 : Return allocated memory
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | allocator.h | 28 class Allocator { 30 Allocator() = default; 31 virtual ~Allocator() = default; 32 NO_COPY_SEMANTIC(Allocator); 33 NO_MOVE_SEMANTIC(Allocator); 36 class BumpPointerAllocator : public Allocator { 81 class FreeListAllocator : public Allocator {
|
/arkcompiler/ets_frontend/es2panda/typescript/extractor/ |
D | typeSystem.h | 266 buffer_->Add(recorder_->Allocator()->New<ir::UserTypeIndexLiteral>(typeIndex, in FillTypeIndexLiteralBuffer() 267 util::UString(ss.str(), recorder_->Allocator()).View())); in FillTypeIndexLiteralBuffer() 269 buffer_->Add(recorder_->Allocator()->New<ir::BuiltinTypeIndexLiteral>(typeIndex)); in FillTypeIndexLiteralBuffer() 271 buffer_->Add(recorder_->Allocator()->New<ir::NumberLiteral>(typeIndex)); in FillTypeIndexLiteralBuffer() 359 buffer_->Add(recorder_->Allocator()->New<ir::NumberLiteral>(userType.size() + in FillLiteralBuffer() 366 buffer_->Add(recorder_->Allocator()->New<ir::NumberLiteral>(userType.size())); in FillLiteralBuffer() 372 buffer_->Add(recorder_->Allocator()->New<ir::NumberLiteral>(anonymousReExport.size())); in FillLiteralBuffer() 374 buffer_->Add(recorder_->Allocator()->New<ir::StringLiteral>(t)); in FillLiteralBuffer() 412 buffer_->Add(recorder_->Allocator()->New<ir::NumberLiteral>(UserType::INDEXSIG)); in FillLiteralBuffer() 416 buffer_->Add(recorder_->Allocator()->New<ir::NumberLiteral>(indexSignatures->size())); in FillLiteralBuffer() [all …]
|
/arkcompiler/ets_frontend/es2panda/binder/ |
D | binder.h | 48 functionScopes_(Allocator()->Adapter()), in Binder() 49 functionNames_(Allocator()->Adapter()), in Binder() 50 anonymousFunctionNames_(Allocator()->Adapter()), in Binder() 51 functionHashNames_(Allocator()->Adapter()), in Binder() 52 variableNames_(Allocator()->Adapter()), in Binder() 53 specialFuncNameIndexMap_(Allocator()->Adapter()), in Binder() 104 inline ArenaAllocator *Allocator() const in Allocator() function 106 return program_->Allocator(); in Allocator() 241 …: LexicalScope(binder->Allocator()->New<T>(binder->Allocator(), binder->scope_, std::forward<Args>… in LexicalScope() 281 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsTupleType.cpp | 50 …checker::ObjectDescriptor *desc = checker->Allocator()->New<checker::ObjectDescriptor>(checker->Al… in GetType() 52 ArenaVector<checker::ElementFlags> elementFlags(checker->Allocator()->Adapter()); in GetType() 56 ArenaVector<checker::Type *> numberIndexTypes(checker->Allocator()->Adapter()); in GetType() 58 util::StringView memberIndex = util::Helpers::ToStringView(checker->Allocator(), index); in GetType() 61 … binder::Scope::CreateVar(checker->Allocator(), memberIndex, binder::VariableFlags::PROPERTY, it); in GetType() 108 …desc->numberIndexInfo = checker->Allocator()->New<checker::IndexInfo>(numberIndexType, "x", false); in GetType()
|
D | tsIndexSignature.cpp | 58 … checker->Allocator()->New<checker::IndexInfo>(indexType, paramName, readonly_, this->Start()); in Check() 59 …checker::ObjectDescriptor *desc = checker->Allocator()->New<checker::ObjectDescriptor>(checker->Al… in Check() 60 checker::ObjectType *placeholder = checker->Allocator()->New<checker::ObjectLiteralType>(desc); in Check()
|
D | tsInterfaceDeclaration.cpp | 77 ArenaVector<binder::LocalVariable *> inheritedProperties(checker->Allocator()->Adapter()); in CheckInheritedPropertiesAreIdentical() 106 checker->Allocator()->New<checker::ObjectDescriptor>(checker->Allocator()); in Check() 107 …resolvedType = checker->Allocator()->New<checker::InterfaceType>(checker->Allocator(), id_->Name()… in Check()
|
D | tsTypeLiteral.cpp | 62 …checker::ObjectDescriptor *desc = checker->Allocator()->New<checker::ObjectDescriptor>(checker->Al… in GetType() 63 checker::Type *type = checker->Allocator()->New<checker::ObjectLiteralType>(desc); in GetType()
|
D | tsFunctionType.cpp | 55 auto *signatureInfo = checker->Allocator()->New<checker::SignatureInfo>(checker->Allocator()); in Check() 59 …checker->Allocator()->New<checker::Signature>(signatureInfo, returnType_->AsTypeNode()->GetType(ch… in Check()
|
D | tsConstructorType.cpp | 56 auto *signatureInfo = checker->Allocator()->New<checker::SignatureInfo>(checker->Allocator()); in Check() 60 …checker->Allocator()->New<checker::Signature>(signatureInfo, returnType_->AsTypeNode()->GetType(ch… in Check()
|
D | tsMethodSignature.cpp | 67 auto *signatureInfo = checker->Allocator()->New<checker::SignatureInfo>(checker->Allocator()); in Check() 70 …auto *callSignature = checker->Allocator()->New<checker::Signature>(signatureInfo, checker->Global… in Check()
|
D | tsSignatureDeclaration.cpp | 64 auto *signatureInfo = checker->Allocator()->New<checker::SignatureInfo>(checker->Allocator()); in Check() 82 auto *signature = checker->Allocator()->New<checker::Signature>(signatureInfo, returnType); in Check()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | arrayExpression.cpp | 153 ArenaVector<checker::Type *> tupleElementTypes(checker->Allocator()->Adapter()); in GetSpreadElementType() 175 ArenaVector<checker::Type *> spreadTypes(checker->Allocator()->Adapter()); in GetSpreadElementType() 210 ArenaVector<checker::Type *> elementTypes(checker->Allocator()->Adapter()); in Check() 211 ArenaVector<checker::ElementFlags> elementFlags(checker->Allocator()->Adapter()); in Check() 241 …checker::ObjectDescriptor *desc = checker->Allocator()->New<checker::ObjectDescriptor>(checker->Al… in Check() 245 util::StringView memberIndex = util::Helpers::ToStringView(checker->Allocator(), index); in Check() 247 …binder::Scope::CreateVar(checker->Allocator(), memberIndex, binder::VariableFlags::PROPERTY, nullp… in Check() 268 return checker->Allocator()->New<checker::ArrayType>(arrayElementType); in Check() 273 …checker::ObjectDescriptor *desc = checker->Allocator()->New<checker::ObjectDescriptor>(checker->Al… in CheckPattern() 274 ArenaVector<checker::ElementFlags> elementFlags(checker->Allocator()->Adapter()); in CheckPattern() [all …]
|
D | functionExpression.cpp | 53 auto *signatureInfo = checker->Allocator()->New<checker::SignatureInfo>(checker->Allocator()); in Check() 57 …checker->Allocator()->New<checker::Signature>(signatureInfo, checker->GlobalResolvingReturnType()); in Check()
|
D | objectExpression.cpp | 250 return pg->Allocator()->New<TaggedLiteral>(LiteralTag::ACCESSOR); in CreateLiteral() 267 return pg->Allocator()->New<TaggedLiteral>(tag, method->Scope()->InternalName()); in CreateLiteral() 270 return pg->Allocator()->New<NullLiteral>(); in CreateLiteral() 298 util::StringView name = util::Helpers::LiteralToPropName(pg->Allocator(), prop->Key()); in CompileStaticProperties() 323 propBuf.push_back(pg->Allocator()->New<StringLiteral>(name)); in CompileStaticProperties() 330 …Literal *methodAffiliate = pg->Allocator()->New<TaggedLiteral>(LiteralTag::METHODAFFILIATE, paramN… in CompileStaticProperties() 447 …checker::ObjectDescriptor *desc = checker->Allocator()->New<checker::ObjectDescriptor>(checker->Al… in CheckPattern() 456 … checker->Allocator()->New<checker::IndexInfo>(checker->GlobalAnyType(), indexInfoName, false); in CheckPattern() 566 … checker->Allocator(), prop->Key()->AsIdentifier()->Name(), binder::VariableFlags::PROPERTY, *it); in CheckPattern() 576 checker::Type *returnType = checker->Allocator()->New<checker::ObjectLiteralType>(desc); in CheckPattern() [all …]
|
D | arrowFunctionExpression.cpp | 53 auto *signatureInfo = checker->Allocator()->New<checker::SignatureInfo>(checker->Allocator()); in Check() 57 …checker->Allocator()->New<checker::Signature>(signatureInfo, checker->GlobalResolvingReturnType()); in Check()
|
/arkcompiler/ets_frontend/es2panda/parser/program/ |
D | program.h | 48 ArenaAllocator *Allocator() const in Allocator() function 130 sourceCode_ = util::UString(sourceCode, Allocator()); in SetSource() 131 sourceFile_ = util::UString(sourceFile, Allocator()); in SetSource() 138 recordName_ = util::UString(recordName, Allocator()); in SetRecordName() 140 formatedRecordName_ = util::UString(formatedRecordName, Allocator()); in SetRecordName()
|
D | program.cpp | 26 sourceCode_(Allocator()), in Program() 27 sourceFile_(Allocator()), in Program() 75 moduleRecord_ = allocator_->New<SourceTextModuleRecord>(Allocator()); in SetKind() 76 typeModuleRecord_ = allocator_->New<SourceTextModuleRecord>(Allocator()); in SetKind()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
D | typeElaborationContext.cpp | 31 ArenaVector<Type *> bestMatchingType(checker_->Allocator()->Adapter()); in GetBestMatchingType() 65 util::StringView memberIndex = util::Helpers::ToStringView(checker_->Allocator(), index_); in Start() 116 … propKeyType = checker_->Allocator()->New<StringLiteralType>(prop->Key()->AsIdentifier()->Name()); in Start() 121 … checker_->Allocator()->New<NumberLiteralType>(prop->Key()->AsNumberLiteral()->Number()); in Start() 125 …propKeyType = checker_->Allocator()->New<StringLiteralType>(prop->Key()->AsStringLiteral()->Str()); in Start()
|
D | destructuringContext.cpp | 213 util::StringView memberIndex = util::Helpers::ToStringView(checker_->Allocator(), index_); in GetTypeFromTupleByIndex() 249 ArenaVector<Type *> unionTypes(checker_->Allocator()->Adapter()); in NextInferedType() 281 ArenaVector<Type *> unionTypes(checker_->Allocator()->Adapter()); in CreateArrayTypeForRest() 303 return checker_->Allocator()->New<ArrayType>(restArrayElementType); in CreateArrayTypeForRest() 308 ObjectDescriptor *desc = checker_->Allocator()->New<ObjectDescriptor>(checker_->Allocator()); in CreateTupleTypeForRest() 309 ArenaVector<ElementFlags> elementFlags(checker_->Allocator()->Adapter()); in CreateTupleTypeForRest() 317 … util::StringView memberIndex = util::Helpers::ToStringView(checker_->Allocator(), iterIndex); in CreateTupleTypeForRest() 319 …binder::Scope::CreateVar(checker_->Allocator(), memberIndex, binder::VariableFlags::PROPERTY, null… in CreateTupleTypeForRest() 359 ArenaVector<Type *> tupleUnion(checker_->Allocator()->Adapter()); in GetRestType() 448 util::StringView name = util::Helpers::ToStringView(checker_->Allocator(), 0); in Start() [all …]
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | small_vector.h | 52 template <typename Allocator, typename T, bool use_allocator> 55 using Adapter = typename Allocator::template AdapterType<T>; 58 template <typename Allocator, typename T> 59 class AllocatorConfig<Allocator, T, false> { 61 using Adapter = Allocator; 75 template <typename T, size_t N, typename Allocator = std::allocator<T>, bool use_allocator = false> 78 static_assert(alignof(Allocator *) > 1); 87 … using VectorType = std::vector<T, typename AllocatorConfig<Allocator, T, use_allocator>::Adapter>; 226 explicit SmallVector(Allocator *allocator) : allocator_(AddStaticFlag(allocator)) in SmallVector() 578 allocator_ = reinterpret_cast<Allocator *>(bit_cast<uintptr_t>(allocator_) & ~1LLU); in MoveToVector() [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
D | loopStatement.cpp | 32 ArenaVector<ir::Statement *> statements(binder->Allocator()->Adapter()); in UpdateChildStatement() 37 return binder->Allocator()->New<ir::BlockStatement>(nullptr, std::move(statements)); in UpdateChildStatement()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
D | commonjs.cpp | 59 ArenaVector<ir::Expression *> elements(Allocator()->Adapter()); in AddReflectApplyArgs() 79 ArenaVector<ir::Expression *> params(Allocator()->Adapter()); in ParseCommonjs() 99 ArenaVector<ir::Expression *> arguments(Allocator()->Adapter()); in ParseCommonjs() 111 ArenaVector<ir::Statement *> statements(Allocator()->Adapter()); in ParseCommonjs()
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
D | classDefinition.cpp | 136 compiler::LiteralBuffer staticBuf(pg->Allocator()); in CreateClassStaticProperties() 169 util::StringView name = util::Helpers::LiteralToPropName(pg->Allocator(), prop->Key()); in CreateClassStaticProperties() 184 literalBuf->Add(pg->Allocator()->New<StringLiteral>(name)); in CreateClassStaticProperties() 198 value = pg->Allocator()->New<TaggedLiteral>(LiteralTag::METHOD, internalName); in CreateClassStaticProperties() 200 … Literal *methodAffiliate = pg->Allocator()->New<TaggedLiteral>(LiteralTag::METHODAFFILIATE, in CreateClassStaticProperties() 209 value = pg->Allocator()->New<NullLiteral>(); in CreateClassStaticProperties() 224 buf->Add(pg->Allocator()->New<NumberLiteral>(instancePropertyCount)); in CreateClassStaticProperties()
|