| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | scope.cpp | 192 bool Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddLocal() argument 207 … scope->Bindings().insert({newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)}); in AddLocal() 209 … scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocal() 216 … newDecl->Name(), allocator->New<EnumLiteralVariable>(newDecl, VariableFlags::ENUM_LITERAL)); in AddLocal() 219 …bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE… in AddLocal() 235 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}); in AddLocal() 241 bool ParamScope::AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, Vari… in AddParam() argument 249 auto *param = allocator->New<LocalVariable>(newDecl, flags); in AddParam() 256 std::tuple<ParameterDecl *, const ir::AstNode *> ParamScope::AddParamDecl(ArenaAllocator *allocator, in AddParamDecl() argument 259 const auto [name, pattern] = util::Helpers::ParamName(allocator, param, params_.size()); in AddParamDecl() [all …]
|
| D | scope.h | 47 explicit TSBindings(ArenaAllocator *allocator) : allocator_(allocator) {} in TSBindings() argument 97 explicit ExportBindings(ArenaAllocator *allocator) in ExportBindings() argument 98 : exportBindings_(allocator->Adapter()), in ExportBindings() 99 exportTSBindings_(allocator) in ExportBindings() 277 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() argument 280 return AddBinding(allocator, FindLocal(decl->Name()), decl, extension); in AddDecl() 283 … bool AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl() argument 286 …return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension); in AddTsDecl() 290 T *NewDecl(ArenaAllocator *allocator, Args &&... args); 293 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags); [all …]
|
| D | declaration.h | 140 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl() argument 141 : Decl(name), declarations_(allocator->Adapter()) in MultiDecl() 161 …explicit EnumLiteralDecl(ArenaAllocator *allocator, util::StringView name, bool isExport, bool isC… in EnumLiteralDecl() argument 162 : MultiDecl(allocator, name), isExport_(isExport), isConst_(isConst) {} in EnumLiteralDecl() 197 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl() argument 257 explicit NamespaceDecl(ArenaAllocator *allocator, util::StringView name) in NamespaceDecl() argument 258 : MultiDecl(allocator, name) in NamespaceDecl() 312 explicit FunctionDecl(ArenaAllocator *allocator, util::StringView name, const ir::AstNode *node) in FunctionDecl() argument 313 : MultiDecl(allocator, name) in FunctionDecl()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | dump.cpp | 38 …::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 …]
|
| D | dump.h | 23 ArenaString IdToString(uint32_t id, ArenaAllocator *allocator, bool v_reg = false, bool is_phi = fa… 25 ArenaString InstId(const Inst *inst, ArenaAllocator *allocator); 27 ArenaString BBId(const BasicBlock *block, ArenaAllocator *allocator);
|
| D | inst.cpp | 389 void SaveStateInst::AllocateImmediates(ArenaAllocator *allocator, size_t size) in AllocateImmediates() argument 391 immediates_ = allocator->New<ArenaVector<SaveStateImm>>(allocator->Adapter()); in AllocateImmediates() 400 auto allocator = GetBasicBlock()->GetGraph()->GetAllocator(); in AppendCatchTypeId() local 401 catch_type_ids_ = allocator->New<ArenaVector<uint32_t>>(allocator->Adapter()); in AppendCatchTypeId() 402 catch_edge_indexes_ = allocator->New<ArenaVector<uint32_t>>(allocator->Adapter()); in AppendCatchTypeId() 412 auto allocator = GetBasicBlock()->GetGraph()->GetAllocator(); in AppendThrowableInst() local 413 throw_insts_ = allocator->New<ArenaVector<const Inst *>>(allocator->Adapter()); in AppendThrowableInst() 438 auto allocator = targetGraph->GetAllocator(); in Clone() local 439 clone->catch_type_ids_ = allocator->New<ArenaVector<uint32_t>>(allocator->Adapter()); in Clone() 440 … clone->catch_edge_indexes_ = allocator->New<ArenaVector<uint32_t>>(allocator->Adapter()); in Clone()
|
| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | globalTypesHolder.cpp | 40 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 …]
|
| D | objectDescriptor.cpp | 35 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()
|
| D | constructorType.cpp | 45 Type *ConstructorType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHo… in Instantiate() argument 47 ObjectDescriptor *copiedDesc = allocator->New<ObjectDescriptor>(allocator); in Instantiate() 48 desc_->Copy(allocator, copiedDesc, relation, globalTypes); in Instantiate() 49 return allocator->New<ConstructorType>(copiedDesc); in Instantiate()
|
| D | objectDescriptor.h | 37 explicit ObjectDescriptor(ArenaAllocator *allocator) in ObjectDescriptor() argument 38 : properties(allocator->Adapter()), in ObjectDescriptor() 39 callSignatures(allocator->Adapter()), in ObjectDescriptor() 40 constructSignatures(allocator->Adapter()) in ObjectDescriptor() 49 void Copy(ArenaAllocator *allocator, ObjectDescriptor *copiedDesc, TypeRelation *relation,
|
| D | signature.h | 31 explicit SignatureInfo(ArenaAllocator *allocator) : params(allocator->Adapter()) {} in SignatureInfo() argument 33 …SignatureInfo(const SignatureInfo *other, ArenaAllocator *allocator) : params(allocator->Adapter()) in SignatureInfo() argument 36 params.push_back(it->Copy(allocator, it->Declaration())); in SignatureInfo() 42 restVar = other->restVar->Copy(allocator, other->restVar->Declaration()); in SignatureInfo() 115 …Signature *Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *globalTypes);
|
| D | functionType.cpp | 55 Type *FunctionType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolde… in Instantiate() argument 57 ObjectDescriptor *copiedDesc = allocator->New<ObjectDescriptor>(allocator); in Instantiate() 58 desc_->Copy(allocator, copiedDesc, relation, globalTypes); in Instantiate() 59 return allocator->New<FunctionType>(copiedDesc); in Instantiate()
|
| D | objectLiteralType.cpp | 86 Type *ObjectLiteralType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypes… in Instantiate() argument 88 ObjectDescriptor *copiedDesc = allocator->New<ObjectDescriptor>(allocator); in Instantiate() 89 desc_->Copy(allocator, copiedDesc, relation, globalTypes); in Instantiate() 90 return allocator->New<ObjectLiteralType>(copiedDesc); in Instantiate()
|
| D | indexInfo.cpp | 22 IndexInfo *IndexInfo::Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *gl… in Copy() argument 24 …return allocator->New<IndexInfo>(type_->Instantiate(allocator, relation, globalTypes), paramName_,… in Copy()
|
| D | signature.cpp | 20 Signature *Signature::Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *gl… in Copy() argument 22 …checker::SignatureInfo *copiedInfo = allocator->New<checker::SignatureInfo>(signatureInfo_, alloca… in Copy() 25 it->SetTsType(it->TsType()->Instantiate(allocator, relation, globalTypes)); in Copy() 28 Type *copiedReturnType = returnType_->Instantiate(allocator, relation, globalTypes); in Copy() 30 return allocator->New<Signature>(copiedInfo, copiedReturnType); in Copy()
|
| /arkcompiler/runtime_core/compiler/optimizer/analysis/ |
| D | dominators_tree.cpp | 153 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/ets_frontend/merge_abc/src/ |
| D | metaProto.cpp | 26 panda::ArenaAllocator *allocator) in Deserialize() argument 32 AnnotationMetadata::Deserialize(protoAnnoMetadata, *meta, allocator); in Deserialize() 47 panda::ArenaAllocator *allocator) in Deserialize() argument 53 AnnotationMetadata::Deserialize(protoAnnoMetadata, *meta, allocator); in Deserialize() 74 panda::ArenaAllocator *allocator) in Deserialize() argument 79 AnnotationMetadata::Deserialize(protoAnnoMetadata, *meta, allocator); in Deserialize() 83 auto &fieldType = Type::Deserialize(protoMeta.fieldtype(), allocator); in Deserialize() 87 auto scalar = scalarValue.Deserialize(protoMeta.value(), allocator); in Deserialize() 100 panda::ArenaAllocator *allocator) in Deserialize() argument 103 AnnotationMetadata::Deserialize(protoAnnoMetadata, *meta, allocator); in Deserialize() [all …]
|
| D | metaProto.h | 31 panda::ArenaAllocator *allocator); 40 panda::ArenaAllocator *allocator); 48 panda::ArenaAllocator *allocator); 56 panda::ArenaAllocator *allocator); 70 panda::ArenaAllocator *allocator);
|
| D | annotationProto.h | 29 panda::ArenaAllocator *allocator); 37 panda::ArenaAllocator *allocator); 44 panda::ArenaAllocator *allocator); 54 panda::ArenaAllocator *allocator);
|
| D | protobufSnapshotGenerator.cpp | 40 panda::ArenaAllocator *allocator) in GenerateProgram() argument 54 Program::Deserialize(proto_program, prog, allocator); in GenerateProgram() 58 panda::ArenaAllocator *allocator) in GetCacheContext() argument 73 auto *program = allocator->New<panda::pandasm::Program>(); in GetCacheContext() 74 Program::Deserialize(protoCache.program(), *program, allocator); in GetCacheContext() 76 …auto *programCache = allocator->New<panda::es2panda::util::ProgramCache>(hashCode, std::move(*prog… in GetCacheContext()
|
| D | assemblyProgramProto.cpp | 53 panda::ArenaAllocator *allocator) in Deserialize() argument 62 Record::Deserialize(protoRecord, record, allocator); in Deserialize() 69 auto *function = allocator->New<panda::pandasm::Function>(protoFunction.name(), in Deserialize() 71 Function::Deserialize(protoFunction, *function, allocator); in Deserialize() 88 auto &arrayType = Type::Deserialize(protoArrayType, allocator); in Deserialize()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_arraybuffer.cpp | 54 NativeAreaAllocator *allocator = thread->GetEcmaVM()->GetNativeAreaAllocator(); in Attach() local 55 allocator->IncreaseNativeMemoryUsage(MallocUsableSize(np->GetExternalPointer())); in Attach() 56 np->SetData(allocator); in Attach() 74 NativeAreaAllocator *allocator = thread->GetEcmaVM()->GetNativeAreaAllocator(); in Detach() local 75 allocator->DecreaseNativeMemoryUsage(MallocUsableSize(np->GetExternalPointer())); in Detach()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | stub_compiler.cpp | 100 void StubCompiler::RunPipeline(LLVMModule *module, NativeAreaAllocator *allocator) const in RunPipeline() 106 … Circuit circuit(allocator, module->GetDebugInfo(), cs->GetName().c_str(), module->Is64Bit()); in RunPipeline() 137 NativeAreaAllocator allocator; in BuildStubModuleAndSave() local 142 …Module* stubM = generator.AddModule(&allocator, "bc_stub", triple_, stubOp, log->OutputASM(), Stub… in BuildStubModuleAndSave() 143 RunPipeline(stubM->GetModule(), &allocator); in BuildStubModuleAndSave() 147 …Module* comM = generator.AddModule(&allocator, "com_stub", triple_, comOp, log->OutputASM(), StubF… in BuildStubModuleAndSave() 148 RunPipeline(comM->GetModule(), &allocator); in BuildStubModuleAndSave() 152 …Module* builtinM = generator.AddModule(&allocator, "builtin_stub", triple_, builtinOp, log->Output… in BuildStubModuleAndSave() 154 RunPipeline(builtinM->GetModule(), &allocator); in BuildStubModuleAndSave()
|
| /arkcompiler/runtime_core/bytecode_optimizer/tests/ |
| D | graph_test.h | 58 ArenaAllocator allocator {SpaceType::SPACE_TYPE_COMPILER}; in TestBuildGraphFromFile() 64 … auto *graph = allocator.New<Graph>(&allocator, &local_allocator, Arch::NONE, method_ptr, &adapter, in TestBuildGraphFromFile() 91 ArenaAllocator allocator {SpaceType::SPACE_TYPE_COMPILER}; in TestBuildGraphFromFunc() 97 … auto *graph = allocator.New<Graph>(&allocator, &local_allocator, Arch::NONE, method_ptr, &adapter, in TestBuildGraphFromFunc()
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | moduleHelpers.cpp | 25 panda::ArenaAllocator *allocator) in CompileNpmModuleEntryList() argument 38 allocator); in CompileNpmModuleEntryList() 40 … auto *cache = allocator->New<util::ProgramCache>(hash, std::move(cacheProgramInfo->program)); in CompileNpmModuleEntryList() 46 auto *prog = allocator->New<panda::pandasm::Program>(); in CompileNpmModuleEntryList() 65 auto *cache = allocator->New<util::ProgramCache>(hash, std::move(*prog), true); in CompileNpmModuleEntryList()
|