| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | Util.cmake | 18 ${VERIFICATION_SOURCES_DIR}/util/tests/environment.cpp 19 ${VERIFICATION_SOURCES_DIR}/util/tests/lazy_test.cpp 20 ${VERIFICATION_SOURCES_DIR}/util/tests/addr_map_test.cpp 21 ${VERIFICATION_SOURCES_DIR}/util/tests/tagged_index_test.cpp 22 ${VERIFICATION_SOURCES_DIR}/util/tests/flags.cpp 23 ${VERIFICATION_SOURCES_DIR}/util/tests/obj_pool_test.cpp 24 ${VERIFICATION_SOURCES_DIR}/util/tests/index_test.cpp 25 ${VERIFICATION_SOURCES_DIR}/util/tests/optional_ref_test.cpp 26 ${VERIFICATION_SOURCES_DIR}/util/tests/saturated_enum_test.cpp 27 ${VERIFICATION_SOURCES_DIR}/util/tests/shifted_vector_test.cpp [all …]
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | path.h | 21 #include "util/ustring.h" 23 namespace ark::es2panda::util { 36 Path(const util::StringView &absolutePath, ArenaAllocator *allocator); 37 …Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *alloc… 40 const util::StringView &GetPath() const; 41 const util::StringView &GetAbsolutePath() const; 42 const util::StringView &GetExtension() const; 43 const util::StringView &GetFileName() const; 44 const util::StringView &GetParentFolder() const; 45 const util::StringView &GetAbsoluteParentFolder() const; [all …]
|
| D | path.cpp | 21 namespace ark::es2panda::util { namespace 25 Path::Path(const util::StringView &absolutePath, ArenaAllocator *allocator) in Path() 34 path_ = util::UString(path, allocator).View(); in Initializer() 39 absolutePath_ = util::UString(os::GetAbsolutePath(path_.Utf8()), allocator_).View(); in Initializer() 55 util::StringView fileName = path_.Substr(position + 1, path_.Length()); in InitializeFileName() 103 basePath_ = util::UString(basePath.substr(0, basePath.length() - 1), allocator_).View(); in InitializeBasePath() 105 basePath_ = util::UString(basePath, allocator_).View(); in InitializeBasePath() 111 Path::Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *… in Path() 138 const util::StringView &Path::GetPath() const in GetPath() 143 const util::StringView &Path::GetAbsolutePath() const in GetAbsolutePath() [all …]
|
| D | errorHandler.h | 22 #include "util/errorLogger.h" 24 namespace ark::es2panda::util { 28 explicit ErrorHandler(const parser::Program *program, util::ErrorLogger *errorLogger) in ErrorHandler() 35 static void LogSyntaxError(util::ErrorLogger *errorLogger, const parser::Program *program, 40 util::ErrorLogger *errorLogger_; 42 } // namespace ark::es2panda::util
|
| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | declaration.h | 21 #include "util/ustring.h" 49 const util::StringView &Name() const in DECLARATION_KINDS() 104 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS() 105 explicit Decl(util::StringView name, ir::AstNode *declNode) : name_(name), node_(declNode) {} in DECLARATION_KINDS() 108 util::StringView name_; in DECLARATION_KINDS() 116 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl() 121 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name, ir::AstNode *declNode) in MultiDecl() 142 explicit EnumLiteralDecl(util::StringView name, bool isConst) : Decl(name), isConst_(isConst) {} in EnumLiteralDecl() 143 explicit EnumLiteralDecl(util::StringView name, ir::AstNode *declNode, bool isConst) in EnumLiteralDecl() 175 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl() [all …]
|
| D | ETSBinder.h | 26 #include "util/importPathManager.h" 29 using AliasesByExportedNames = ArenaMap<util::StringView, util::StringView>; 30 using ModulesToExportedNamesWithAliases = ArenaMap<util::StringView, AliasesByExportedNames>; 134 …bool DetectNameConflict(const util::StringView localName, Variable *const var, Variable *const oth… 137 ArenaVector<parser::Program *> GetExternalProgram(const util::StringView &sourceName, 146 const util::StringView &imported, 153 … const util::StringView &imported, const ir::StringLiteral *const importPath); 154 Variable *FindImportSpecifiersVariable(const util::StringView &imported, 173 …void BuildProxyMethod(ir::ScriptFunction *func, const util::StringView &containingClassName, bool … 218 ArenaVector<parser::Program *> GetProgramList(const util::StringView &path) const; [all …]
|
| D | tsBinding.h | 19 #include "util/ustring.h" 25 using EnumMemberResult = std::variant<double, util::StringView, bool>; 27 class TSBinding : public util::UString { 29 explicit TSBinding(ArenaAllocator *allocator, util::StringView name) in TSBinding() 30 : util::UString(std::string {TS_PREFIX}, allocator) in TSBinding() 35 static std::string ToTSBinding(util::StringView name) in ToTSBinding()
|
| /arkcompiler/ets_frontend/ets2panda/lexer/ |
| D | keywords.cpp | 22 KeywordString JSKeywords::Handle_as([[maybe_unused]] const KeywordsUtil &util, std::string_view src, in Handle_as() argument 28 KeywordString JSKeywords::Handle_await(const KeywordsUtil &util, std::string_view src, TokenType to… in Handle_await() argument 30 const auto *parserContext = util.GetParserContext(); in Handle_await() 36 util.CheckEscapedKeyword(); in Handle_await() 41 KeywordString JSKeywords::Handle_yield(const KeywordsUtil &util, std::string_view src, TokenType to… in Handle_yield() argument 43 const auto *parserContext = util.GetParserContext(); in Handle_yield() 46 util.LogUnexpectedStrictModeReservedKeyword(); in Handle_yield() 49 util.CheckEscapedKeyword(); in Handle_yield() 54 KeywordString TSKeywords::Handle_as(const KeywordsUtil &util, std::string_view src, TokenType token… in Handle_as() argument 56 return JSKeywords::Handle_as(util, src, tokenType); in Handle_as() [all …]
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.h | 33 util::StringView name; 38 util::StringView name; 42 using PrivateElementMap = std::unordered_map<util::StringView, util::StringView>; 43 using ComputedPropertyMap = std::unordered_map<ir::Statement *, util::StringView>; 46 util::StringView name; 47 util::StringView aliasName; 56 util::StringView backupName; // For computed property. 64 explicit DuringClass(ArenaVector<ClassInfo> *classList, util::StringView name, in DuringClass() 65 util::StringView aliasName, ir::ClassDefinition *node) in DuringClass() 111 void AddVariableToNearestStatements(util::StringView name); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/parser/program/ |
| D | program.h | 22 #include "util/ustring.h" 23 #include "util/path.h" 43 using ExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>; 44 using DirectExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>; 100 util::StringView SourceCode() const in SourceCode() 105 const util::StringView &SourceFilePath() const in SourceFilePath() 110 const util::Path &SourceFile() const in SourceFile() 115 util::StringView SourceFileFolder() const in SourceFileFolder() 120 util::StringView FileName() const in FileName() 125 util::StringView AbsoluteName() const in AbsoluteName() [all …]
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/ |
| D | compileQueue.h | 22 #include <util/symbolTable.h> 23 #include <util/workerQueue.h> 38 class CompileFunctionJob : public util::WorkerJob { 62 class CompileModuleRecordJob : public util::WorkerJob { 75 class CompileFileJob : public util::WorkerJob { 78 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, in CompileFileJob() 80 util::SymbolTable *symbolTable, panda::ArenaAllocator *allocator) in CompileFileJob() 96 … std::map<std::string, panda::es2panda::util::ProgramCache *> &abcProgramsInfo); 101 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_; 103 util::SymbolTable *symbolTable_; [all …]
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | scope.h | 22 #include <util/enumbitops.h> 23 #include <util/ustring.h> 52 using VariableMap = ArenaMap<util::StringView, Variable *>; 59 bool AddTSVariable(const util::StringView &name, Variable *variable) in AddTSVariable() 70 Variable *FindTSVariable(const util::StringView &name) const in FindTSVariable() 84 bool InTSBindings(const util::StringView &name) const in InTSBindings() 112 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable() 121 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable() 126 bool InExportBindings(const util::StringView &name) const in InExportBindings() 133 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable() [all …]
|
| D | declaration.h | 21 #include <util/ustring.h> 50 const util::StringView &Name() const in DECLARATION_KINDS() 135 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS() 137 util::StringView name_; in DECLARATION_KINDS() 146 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl() 167 …explicit EnumLiteralDecl(ArenaAllocator *allocator, util::StringView name, bool isExport, bool isC… in EnumLiteralDecl() 203 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl() 213 explicit TypeParameterDecl(util::StringView name, const ir::AstNode *node); 223 explicit PropertyDecl(util::StringView name) : Decl(name) {} in PropertyDecl() 233 explicit MethodDecl(util::StringView name) : Decl(name) {} in MethodDecl() [all …]
|
| D | scope.cpp | 53 Variable *Scope::FindLocal(const util::StringView &name, ResolveBindingOptions options) const in FindLocal() 58 auto res = bindings_.find(util::StringView{interfaceName}); in FindLocal() 94 ScopeFindResult Scope::Find(const util::StringView &name, ResolveBindingOptions options) const in Find() 179 Result ClassScope::GetPrivateProperty(const util::StringView &name, bool isSetter) const in GetPrivateProperty() 258 util::StringView ClassScope::GetSelfScopeName() in GetSelfScopeName() 267 util::StringView selfName = node_->AsClassDefinition()->Ident()->Name(); in GetSelfScopeName() 269 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName() 273 scopeName << util::Helpers::GetName(allocator_, node_->Parent()->Parent()); in GetSelfScopeName() 274 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName() 277 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName() [all …]
|
| D | tsBinding.h | 19 #include <util/ustring.h> 25 using EnumMemberResult = std::variant<double, util::StringView, bool>; 27 class TSBinding : public util::UString { 29 explicit TSBinding(ArenaAllocator *allocator, util::StringView name) in TSBinding() 30 : util::UString(std::string {TS_PREFIX}, allocator) in TSBinding() 35 static std::string ToTSBinding(util::StringView name) in ToTSBinding()
|
| /arkcompiler/ets_frontend/es2panda/parser/module/ |
| D | sourceTextModuleRecord.h | 19 #include <util/ustring.h> 51 util::StringView localName_; 52 util::StringView importName_; 56 …ImportEntry(const util::StringView localName, const util::StringView importName, int moduleRequest… in ImportEntry() 60 … ImportEntry(const util::StringView localName, int moduleRequestIdx, const ir::Identifier *localId) in ImportEntry() 66 util::StringView exportName_; 67 util::StringView localName_; 68 util::StringView importName_; 75 ExportEntry(const util::StringView exportName, const util::StringView localName, in ExportEntry() 79 …ExportEntry(const util::StringView exportName, const util::StringView importName, int moduleReques… in ExportEntry() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/ |
| D | importExportDecls.h | 19 #include "util/errorHandler.h" 40 const std::string defaultImportSource_ = CreateDefaultImportSource(util::Helpers::StdLib()); 60 …void VerifyType(ir::Statement *stmt, parser::Program *program, std::set<util::StringView> &exporte… 61 std::set<util::StringView> &exportedStatements, 62 std::map<util::StringView, ir::AstNode *> &typesMap); 63 …void HandleSimpleType(std::set<util::StringView> &exportedTypes, std::set<util::StringView> &expor… 64 ir::Statement *stmt, util::StringView name, parser::Program *program, 68 …void HandleSelectiveExportWithAlias(util::StringView originalFieldName, util::StringView exportNam… 70 void PopulateAliasMap(const ir::ExportNamedDeclaration *decl, const util::StringView &path); 87 std::map<util::StringView, ir::AstNode *> fieldMap_; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/evaluate/ |
| D | entityDeclarator.h | 38 using UMapStringViewVariable = ArenaUnorderedMap<util::StringView, varbinder::Variable *>; 56 …varbinder::Variable *ImportGlobalEntity(util::StringView pathToDeclSource, util::StringView declNa… 57 … parser::Program *importerProgram, util::StringView importedName, 63 bool IsEntityDeclared(parser::Program *program, util::StringView name); 66 …static varbinder::Variable *FindEntityVariable(UMapStringViewVariable &entitiesMap, util::StringVi… 70 … void CreateAndInsertImportStatement(util::StringView pathToDeclSource, util::StringView declName, 71 … parser::Program *importerProgram, util::StringView importedName, 74 …ir::ETSImportDeclaration *CreateIrImport(util::StringView pathToDeclSourceFile, util::StringView c… 75 util::StringView classImportedName);
|
| /arkcompiler/ets_frontend/es2panda/parser/program/ |
| D | program.h | 23 #include <util/patchFix.h> 24 #include <util/ustring.h> 88 util::StringView SourceCode() const in SourceCode() 93 util::StringView SourceFile() const in SourceFile() 98 util::StringView RecordName() const in RecordName() 103 util::StringView FormatedRecordName() const in FormatedRecordName() 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() [all …]
|
| /arkcompiler/ets_frontend/es2panda/aot/ |
| D | emitFiles.h | 21 #include <util/helpers.h> 22 #include <util/workerQueue.h> 27 class EmitSingleAbcJob : public util::WorkerJob { 43 std::string targetApiSubVersion_ { util::Helpers::DEFAULT_SUB_API_VERSION }; 46 class EmitMergedAbcJob : public util::WorkerJob { 49 … const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, in EmitMergedAbcJob() 61 const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_; 63 std::string targetApiSubVersion_ { util::Helpers::DEFAULT_SUB_API_VERSION }; 66 class EmitCacheJob : public util::WorkerJob { 68 …explicit EmitCacheJob(const std::string &outputProtoName, panda::es2panda::util::ProgramCache *pro… in EmitCacheJob() [all …]
|
| /arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
| D | regexp.h | 19 #include <util/enumbitops.h> 20 #include <util/ustring.h> 46 RegExp(util::StringView p, util::StringView f, RegExpFlags reFlags); 48 util::StringView patternStr; 49 util::StringView flagsStr; 88 util::StringView ParseIdent(); 100 util::StringView::Iterator iter_; 102 std::unordered_set<util::StringView> groupNames_; 103 std::unordered_set<util::StringView> namedGroupReferences_;
|
| /arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/ |
| D | debugInfoDeserializer.h | 57 … util::StringView pathToSource, util::StringView classDeclName); 63 …varbinder::Variable *CreateIrGlobalVariable(parser::Program *program, util::StringView pathToSourc… 64 util::StringView varDeclName); 67 … util::StringView pathToSource, util::StringView methodDeclName); 77 …ir::ETSTypeReference *ResolveInheritanceChain(util::StringView abcSuperName, FileDebugInfo *debugI… 79 …ir::ETSTypeReference *ResolveInheritanceChainImpl(util::StringView abcSuperName, FileDebugInfo *de… 86 …util::StringView CollectChainInfo(ArenaVector<ChainEntryInfo> &chainEntryList, util::StringView ab… 92 …ir::ClassDeclaration *CreateClassDeclaration(util::StringView identName, panda_file::ClassDataAcce…
|
| /arkcompiler/ets_frontend/ets2panda/lexer/regexp/ |
| D | regexp.h | 19 #include "util/enumbitops.h" 20 #include "util/ustring.h" 41 RegExp(util::StringView p, util::StringView f, RegExpFlags reFlags); 44 util::StringView patternStr; 45 util::StringView flagsStr; 90 util::StringView ParseIdent(); 101 util::StringView::Iterator iter_; 103 std::unordered_set<util::StringView> groupNames_; 104 std::unordered_set<util::StringView> backReferences_;
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
| D | etsObjectType.h | 35 using PropertyMap = ArenaUnorderedMap<util::StringView, varbinder::LocalVariable *>; 36 using InstantiationMap = ArenaUnorderedMap<util::StringView, ETSObjectType *>; 52 …explicit ETSObjectType(ArenaAllocator *allocator, util::StringView name, util::StringView assemble… in ETSObjectType() 59 …explicit ETSObjectType(ArenaAllocator *allocator, util::StringView name, util::StringView assemble… in ETSObjectType() 249 const util::StringView &Name() const in Name() 254 const util::StringView &AssemblerName() const in AssemblerName() 259 void SetName(const util::StringView &newName) in SetName() 264 void SetAssemblerName(const util::StringView &newName) in SetAssemblerName() 313 ETSObjectType *GetInstantiatedType(util::StringView hash) in GetInstantiatedType() 338 varbinder::LocalVariable *GetOwnProperty(const util::StringView &name) const in GetOwnProperty() [all …]
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/literals/ |
| D | regExpLiteral.h | 20 #include <util/ustring.h> 35 explicit RegExpLiteral(util::StringView pattern, util::StringView flags) in RegExpLiteral() 40 const util::StringView &Pattern() const in Pattern() 45 const util::StringView &Flags() const in Flags() 62 util::StringView pattern_; 63 util::StringView flags_;
|