Home
last modified time | relevance | path

Searched refs:util (Results 1 – 25 of 153) sorted by relevance

1234567

/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.h31 util::StringView name;
36 util::StringView name;
40 using PrivatePropertyMap = std::unordered_map<util::StringView, util::StringView>;
41 using ComputedPropertyMap = std::unordered_map<ir::Statement *, util::StringView>;
44 util::StringView name;
52 explicit DuringClass(ArenaVector<ClassInfo> *classList, util::StringView name) in DuringClass()
97 void AddVariableToNearestStatements(util::StringView name);
110 util::StringView name);
115 ir::VariableDeclaration *CreateVariableDeclarationWithIdentify(util::StringView name,
122 util::StringView name,
[all …]
/arkcompiler/ets_frontend/es2panda/parser/module/
DsourceTextModuleRecord.h51 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_;
74 ExportEntry(const util::StringView exportName, const util::StringView localName, in ExportEntry()
78 …ExportEntry(const util::StringView exportName, const util::StringView importName, int moduleReques… in ExportEntry()
90 int AddModuleRequest(const util::StringView source);
[all …]
/arkcompiler/ets_frontend/es2panda/parser/program/
Dprogram.h88 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()
143 void AddPatchFixHelper(util::PatchFix *patchFixHelper) in AddPatchFixHelper()
148 util::PatchFix *PatchFixHelper() in PatchFixHelper()
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompileQueue.h36 class CompileFunctionJob : public util::WorkerJob {
60 class CompileModuleRecordJob : public util::WorkerJob {
73 class CompileFileJob : public util::WorkerJob {
76 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, in CompileFileJob()
77 util::SymbolTable *symbolTable, panda::ArenaAllocator *allocator) in CompileFileJob()
89 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_;
90 util::SymbolTable *symbolTable_;
94 class CompileFuncQueue : public util::WorkerQueue {
97 : util::WorkerQueue(threadCount), context_(context) {} in CompileFuncQueue()
109 class CompileFileQueue : public util::WorkerQueue {
[all …]
DlabelTarget.h42 explicit LabelTarget(const util::StringView &label) : LabelTarget(nullptr, label) {} in LabelTarget()
43 explicit LabelTarget(Label *target, const util::StringView &label) in LabelTarget()
53 const util::StringView &BreakLabel() const in BreakLabel()
68 const util::StringView &ContinueLabel() const in ContinueLabel()
83 util::StringView breakLabel_ {};
84 util::StringView continueLabel_ {};
DcompilerContext.h48 … std::string pkgName, util::StringView recordName, util::PatchFix *patchFixHelper);
104 util::PatchFix *PatchFixHelper() const in PatchFixHelper()
109 const util::StringView &RecordName() const in RecordName()
152 util::StringView recordName_;
153 util::PatchFix *patchFixHelper_ {nullptr};
Dpandagen.cpp147 const util::StringView &PandaGen::InternalName() const in InternalName()
152 const util::StringView &PandaGen::FunctionName() const in FunctionName()
272 int32_t PandaGen::AddLexicalVarNamesForDebugInfo(ArenaMap<uint32_t, std::pair<util::StringView, int… in AddLexicalVarNamesForDebugInfo()
425 ASSERT(std::holds_alternative<util::StringView>(prop)); in LoadObjProperty()
426 LoadObjByName(node, obj, std::get<util::StringView>(prop)); in LoadObjProperty()
441 ASSERT(std::holds_alternative<util::StringView>(prop)); in StoreObjProperty()
442 StoreObjByName(node, obj, std::get<util::StringView>(prop)); in StoreObjProperty()
457 ASSERT(std::holds_alternative<util::StringView>(prop)); in StoreOwnProperty()
458 StOwnByName(node, obj, std::get<util::StringView>(prop), nameSetting); in StoreOwnProperty()
463 void PandaGen::LoadObjByNameViaDebugger(const ir::AstNode *node, const util::StringView &name, in LoadObjByNameViaDebugger()
[all …]
/arkcompiler/ets_frontend/es2panda/
Des2panda.cpp51 panda::pandasm::Program *CreateJsonContentProgram(std::string src, std::string rname, util::PatchFi… in CreateJsonContentProgram()
54 … src, "", util::StringView(rname), patchFixHelper); in CreateJsonContentProgram()
60 util::SymbolTable *symbolTable) in Compile()
120 util::PatchFix *Compiler::InitPatchFixHelper(const SourceFile &input, const CompilerOptions &option… in InitPatchFixHelper()
121 util::SymbolTable *symbolTable) in InitPatchFixHelper()
123 util::PatchFix *patchFixHelper = nullptr; in InitPatchFixHelper()
129 util::PatchFixKind patchFixKind = util::PatchFixKind::DUMPSYMBOLTABLE; in InitPatchFixHelper()
131 patchFixKind = isColdFix ? util::PatchFixKind::COLDFIX : util::PatchFixKind::HOTFIX; in InitPatchFixHelper()
134 patchFixKind = util::PatchFixKind::HOTRELOAD; in InitPatchFixHelper()
136 …patchFixHelper = new util::PatchFix(needDumpSymbolFile, needGeneratePatch, patchFixKind, input.rec… in InitPatchFixHelper()
[all …]
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.h45 RegExp(util::StringView p, util::StringView f, RegExpFlags reFlags);
47 util::StringView patternStr;
48 util::StringView flagsStr;
87 util::StringView ParseIdent();
99 util::StringView::Iterator iter_;
101 std::unordered_set<util::StringView> groupNames_;
102 std::unordered_set<util::StringView> namedGroupReferences_;
/arkcompiler/ets_frontend/es2panda/binder/
Ddeclaration.h50 const util::StringView &Name() const in DECLARATION_KINDS()
129 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS()
131 util::StringView name_; in DECLARATION_KINDS()
140 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl()
161 …explicit EnumLiteralDecl(ArenaAllocator *allocator, util::StringView name, bool isExport, bool isC… in EnumLiteralDecl()
197 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl()
207 explicit TypeParameterDecl(util::StringView name, const ir::AstNode *node);
217 explicit PropertyDecl(util::StringView name) : Decl(name) {} in PropertyDecl()
227 explicit MethodDecl(util::StringView name) : Decl(name) {} in MethodDecl()
237 explicit EnumDecl(util::StringView name) : Decl(name) {} in EnumDecl()
[all …]
Dvariable.cpp31 const util::StringView &Variable::Name() const in Name()
43 void LocalVariable::SetLexical(Scope *scope, util::PatchFix *patchFixHelper) in SetLexical()
68 void GlobalVariable::SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *pat… in SetLexical()
69 void ModuleVariable::SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *pat… in SetLexical()
70 void EnumVariable::SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *patch… in SetLexical()
71 void NamespaceVariable::SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *… in SetLexical()
72 void ImportEqualsVariable::SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFi… in SetLexical()
73 void EnumLiteralVariable::SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix… in SetLexical()
DtsBinding.h25 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()
Dscope.h43 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
50 bool AddTSVariable(const util::StringView &name, Variable *variable) in AddTSVariable()
61 Variable *FindTSVariable(const util::StringView &name) const in FindTSVariable()
75 bool InTSBindings(const util::StringView &name) const in InTSBindings()
103 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable()
112 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable()
117 bool InExportBindings(const util::StringView &name) const in InExportBindings()
124 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable()
130 bool AddExportTSVariable(const util::StringView &name, Variable *var) in AddExportTSVariable()
143 …ScopeFindResult(util::StringView n, Scope *s, uint32_t l, Variable *v) : ScopeFindResult(n, s, l, … in ScopeFindResult()
[all …]
Dvariable.h40 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
118 const util::StringView &Name() const; in VARIABLE_TYPES()
119 virtual void SetLexical(Scope *scope, util::PatchFix *patchFixHelper = nullptr) = 0; in VARIABLE_TYPES()
162 …void SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *patchFixHelper = n…
178 …void SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *patchFixHelper = n…
190 …void SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *patchFixHelper = n…
260 …void SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *patchFixHelper = n…
278 …void SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *patchFixHelper = n…
308 …void SetLexical([[maybe_unused]] Scope *scope, [[maybe_unused]] util::PatchFix *patchFixHelper = n…
315 Variable *FindEnumMemberVariable(const util::StringView &name) const in FindEnumMemberVariable()
[all …]
/arkcompiler/ets_frontend/es2panda/aot/
DemitFiles.h25 class EmitSingleAbcJob : public util::WorkerJob {
41 class EmitMergedAbcJob : public util::WorkerJob {
44 … const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo) in EmitMergedAbcJob()
53 const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_;
56 class EmitCacheJob : public util::WorkerJob {
58 …explicit EmitCacheJob(const std::string &outputProtoName, panda::es2panda::util::ProgramCache *pro… in EmitCacheJob()
67 panda::es2panda::util::ProgramCache *progCache_;
70 class EmitFileQueue : public util::WorkerQueue {
74 … const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo) in EmitFileQueue()
89 const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_;
/arkcompiler/ets_runtime/test/moduletest/protobuf/
Dminimal.js16 var util = {}; variable
17 module.exports = util;
18 util.LongBits = require("./longbits.js");
20 util.isString = function isString(value) {
/arkcompiler/ets_frontend/es2panda/ir/base/
DtemplateElement.h37 explicit TemplateElement(util::StringView raw, util::StringView cooked) in TemplateElement()
42 const util::StringView &Raw() const in Raw()
47 const util::StringView &Cooked() const in Cooked()
59 util::StringView raw_ {};
60 util::StringView cooked_ {};
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/
DregExpLiteral.h35 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_;
DbigIntLiteral.h35 … explicit BigIntLiteral(util::StringView src) : Literal(AstNodeType::BIGINT_LITERAL), src_(src) {} in BigIntLiteral()
37 const util::StringView &Str() const in Str()
42 util::StringView Str() in Str()
59 util::StringView src_;
/arkcompiler/ets_frontend/merge_abc/src/
DprotobufSnapshotGenerator.cpp28 std::fstream output = panda::es2panda::util::Helpers::FileStream<std::fstream>( in GenerateSnapshot()
42 std::fstream input = panda::es2panda::util::Helpers::FileStream<std::fstream>( in GenerateProgram()
57 panda::es2panda::util::ProgramCache *ProtobufSnapshotGenerator::GetCacheContext(const std::string &… in GetCacheContext()
60 std::fstream input = panda::es2panda::util::Helpers::FileStream<std::fstream>( in GetCacheContext()
76 …auto *programCache = allocator->New<panda::es2panda::util::ProgramCache>(hashCode, std::move(*prog… in GetCacheContext()
81 void ProtobufSnapshotGenerator::UpdateCacheFile(const panda::es2panda::util::ProgramCache *programC… in UpdateCacheFile()
89 std::fstream output = panda::es2panda::util::Helpers::FileStream<std::fstream>( in UpdateCacheFile()
/arkcompiler/ets_frontend/es2panda/typescript/types/
DindexInfo.h25 IndexInfo(Type *type, util::StringView paramName, bool readonly) in IndexInfo()
30 … IndexInfo(Type *type, util::StringView paramName, bool readonly, const lexer::SourcePosition &pos) in IndexInfo()
54 const util::StringView &ParamName() in ParamName()
76 util::StringView paramName_;
/arkcompiler/ets_frontend/es2panda/lexer/
Dlexer.h41 explicit LexerPosition(const util::StringView &source); in DEFINE_BITOPS()
47 util::StringView::Iterator iterator; in DEFINE_BITOPS()
59 util::UString str;
106 inline util::StringView::Iterator &Iterator() in Iterator()
111 inline const util::StringView::Iterator &Iterator() const in Iterator()
116util::StringView SourceView(const util::StringView::Iterator &begin, const util::StringView::Itera…
117 util::StringView SourceView(size_t begin, size_t end) const;
152 void ScanStringUnicodePart(util::UString *str);
175 util::StringView source_;
212 util::UString str(Allocator()); in ScanString()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/expressions/
Didentifier.h48 explicit Identifier(util::StringView name) in DEFINE_BITOPS()
53 explicit Identifier(util::StringView name, Expression *typeAnnotation) in DEFINE_BITOPS()
70 const util::StringView &Name() const in DEFINE_BITOPS()
75 void SetName(util::StringView name) in DEFINE_BITOPS()
136 util::StringView name_; in DEFINE_BITOPS()
/arkcompiler/ets_frontend/es2panda/util/
DmoduleHelpers.cpp22 namespace panda::es2panda::util { namespace
24 …panda::es2panda::CompilerOptions &options, std::map<std::string, panda::es2panda::util::ProgramCac… in CompileNpmModuleEntryList()
28 if (!util::Helpers::ReadFileToBuffer(entriesInfo, ss)) { in CompileNpmModuleEntryList()
40 … auto *cache = allocator->New<util::ProgramCache>(hash, std::move(cacheProgramInfo->program)); in CompileNpmModuleEntryList()
65 auto *cache = allocator->New<util::ProgramCache>(hash, std::move(*prog), true); in CompileNpmModuleEntryList()
/arkcompiler/toolchain/build/third_party_gn/protobuf/
DBUILD.gn178 "$protobuf_src_root/google/protobuf/util/delimited_message_util.cc",
179 "$protobuf_src_root/google/protobuf/util/field_comparator.cc",
180 "$protobuf_src_root/google/protobuf/util/field_mask_util.cc",
181 "$protobuf_src_root/google/protobuf/util/internal/datapiece.cc",
182 "$protobuf_src_root/google/protobuf/util/internal/default_value_objectwriter.cc",
183 "$protobuf_src_root/google/protobuf/util/internal/error_listener.cc",
184 "$protobuf_src_root/google/protobuf/util/internal/field_mask_utility.cc",
185 "$protobuf_src_root/google/protobuf/util/internal/json_escaping.cc",
186 "$protobuf_src_root/google/protobuf/util/internal/json_objectwriter.cc",
187 "$protobuf_src_root/google/protobuf/util/internal/json_stream_parser.cc",
[all …]

1234567