/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | symbol_table_test.cpp | 140 JSHandle<SymbolTable> symbolTable = SymbolTable::Create(thread, numberOfElements); in HWTEST_F_L0() local 141 EXPECT_TRUE(*symbolTable != nullptr); in HWTEST_F_L0() 160 JSHandle<SymbolTable> symbolTable = SymbolTable::Create(thread, numberOfElements); in HWTEST_F_L0() local 161 EXPECT_EQ(symbolTable->ContainsKey(symbolTableStringKey1.GetTaggedValue()), false); in HWTEST_F_L0() 163 symbolTable->SetKey(thread, 1, JSTaggedValue::Hole()); in HWTEST_F_L0() 164 EXPECT_EQ(symbolTable->ContainsKey(symbolTableStringKey1.GetTaggedValue()), false); in HWTEST_F_L0() 166 symbolTable->SetKey(thread, 1, JSTaggedValue::Undefined()); in HWTEST_F_L0() 167 EXPECT_EQ(symbolTable->ContainsKey(symbolTableStringKey1.GetTaggedValue()), false); in HWTEST_F_L0() 169 symbolTable->SetKey(thread, 1, symbolTableStringKey1.GetTaggedValue()); in HWTEST_F_L0() 170 EXPECT_EQ(symbolTable in HWTEST_F_L0() 194 JSHandle<SymbolTable> symbolTable = SymbolTable::Create(thread, numberOfElements); HWTEST_F_L0() local 224 JSHandle<SymbolTable> symbolTable = SymbolTable::Create(thread, numberOfElements); HWTEST_F_L0() local [all...] |
/arkcompiler/ets_frontend/es2panda/ |
H A D | es2panda.cpp | 133 util::SymbolTable *symbolTable) in Compile() 143 auto *patchFixHelper = InitPatchFixHelper(input, options, symbolTable); in Compile() 182 util::SymbolTable *symbolTable) in InitPatchFixHelper() 186 bool needGeneratePatch = options.patchFixOptions.generatePatch && !options.patchFixOptions.symbolTable.empty(); in InitPatchFixHelper() 190 if (symbolTable && (needDumpSymbolFile || needGeneratePatch || isHotReload || isColdReload)) { in InitPatchFixHelper() 202 symbolTable); in InitPatchFixHelper() 225 util::SymbolTable *symbolTable = nullptr; in CompileFiles() local 226 if (!options.patchFixOptions.symbolTable.empty() || !options.patchFixOptions.dumpSymbolTable.empty()) { in CompileFiles() 227 symbolTable = new util::SymbolTable(options.patchFixOptions.symbolTable, in CompileFiles() 132 Compile(const SourceFile &input, const CompilerOptions &options, util::SymbolTable *symbolTable) Compile() argument 181 InitPatchFixHelper(const SourceFile &input, const CompilerOptions &options, util::SymbolTable *symbolTable) InitPatchFixHelper() argument 279 CompileFile(const CompilerOptions &options, SourceFile *src, util::SymbolTable *symbolTable) CompileFile() argument [all...] |
H A D | es2panda.h | 23 #include <util/symbolTable.h> 75 std::string symbolTable {}; 218 util::SymbolTable *symbolTable = nullptr); 220 util::SymbolTable *symbolTable); 257 util::SymbolTable *symbolTable);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | mir_symbol.h | 602 : mAllocator(allocator), strIdxToStIdxMap(mAllocator.Adapter()), symbolTable({nullptr}, mAllocator.Adapter()) in MIRSymbolTable() 610 return idx < symbolTable.size(); in IsValidIdx() 615 if (checkFirst && idx >= symbolTable.size()) { in GetSymbolFromStIdx() 619 return symbolTable[idx]; in GetSymbolFromStIdx() 624 auto *st = mAllocator.GetMemPool()->New<MIRSymbol>(symbolTable.size(), scopeID); in CreateSymbol() 625 symbolTable.push_back(st); in CreateSymbol() 631 symbolTable.push_back(nullptr); in PushNullSymbol() 640 sym->SetStIdx(StIdx(sym->GetScopeIdx(), symbolTable.size())); in AddStOutside() 641 symbolTable.push_back(sym); in AddStOutside() 672 return symbolTable in GetSymbolTableSize() 721 MapleVector<MIRSymbol *> symbolTable; global() member in maple::MIRSymbolTable [all...] |
H A D | global_tables.h | 630 return idx < symbolTable.size(); 635 if (checkFirst && idx >= symbolTable.size()) { 639 return symbolTable[idx]; 663 return symbolTable; 668 return symbolTable.size(); 673 DEBUG_ASSERT(idx < symbolTable.size(), "array index out of range"); 674 return symbolTable.at(idx); 687 std::vector<MIRSymbol *> symbolTable; // map symbol idx to symbol node
|
H A D | mir_symbol_builder.h | 45 MIRSymbol *GetLocalDecl(const MIRSymbolTable &symbolTable, const GStrIdx &strIdx) const;
|
H A D | mir_builder.h | 236 MIRSymbol *GetOrCreateLocalDecl(const std::string &str, TyIdx tyIdx, MIRSymbolTable &symbolTable,
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
H A D | mir_symbol_builder.cpp | 19 MIRSymbol *MIRSymbolBuilder::GetLocalDecl(const MIRSymbolTable &symbolTable, const GStrIdx &strIdx) const in GetLocalDecl() argument 22 const StIdx stIdx = symbolTable.GetStIdxFromStrIdx(strIdx); in GetLocalDecl() 24 return symbolTable.GetSymbolFromStIdx(stIdx.Idx()); in GetLocalDecl()
|
H A D | global_tables.cpp | 281 symbolTable.push_back(static_cast<MIRSymbol *>(nullptr)); 287 symbolTable.clear(); 294 for (MIRSymbol *symbol : symbolTable) { 306 auto *st = new MIRSymbol(symbolTable.size(), scopeID); 308 symbolTable.push_back(st); 326 for (size_t i = 1; i < symbolTable.size(); ++i) { 327 const MIRSymbol *symbol = symbolTable[i];
|
H A D | mir_builder.cpp | 103 MIRSymbol *MIRBuilder::GetOrCreateLocalDecl(const std::string &str, TyIdx tyIdx, MIRSymbolTable &symbolTable, in GetOrCreateLocalDecl() argument 108 StIdx stIdx = symbolTable.GetStIdxFromStrIdx(strIdx); in GetOrCreateLocalDecl() 111 return symbolTable.GetSymbolFromStIdx(stIdx.Idx()); in GetOrCreateLocalDecl() 116 MIRSymbol *st = symbolTable.CreateSymbol(kScopeLocal); in GetOrCreateLocalDecl() 120 (void)symbolTable.AddToStringSymbolMap(*st); in GetOrCreateLocalDecl() 126 MIRSymbolTable *symbolTable = func.GetSymTab(); in GetOrCreateDeclInFunc() local 127 DEBUG_ASSERT(symbolTable != nullptr, "symbol_table is null"); in GetOrCreateDeclInFunc() 129 MIRSymbol *st = GetOrCreateLocalDecl(str, type.GetTypeIndex(), *symbolTable, isCreated); in GetOrCreateDeclInFunc()
|
H A D | mir_symbol.cpp | 325 size_t size = symbolTable.size(); in Dump() 327 MIRSymbol *symbol = symbolTable[i]; in Dump()
|
/arkcompiler/ets_frontend/es2panda/util/ |
H A D | symbolTable.cpp | 16 #include "symbolTable.h" 74 bool SymbolTable::ReadSymbolTable(const std::string &symbolTable) in ReadSymbolTable() argument 78 ifs.open(panda::os::file::File::GetExtendedFilePath(symbolTable)); in ReadSymbolTable() 81 << symbolTable << "' during symbol table reading." << std::endl in ReadSymbolTable() 126 << "' from the symbol table file '" << symbolTable << "' due to unrecognized format." << std::endl in ReadSymbolTable()
|
H A D | patchFix.h | 25 #include <util/symbolTable.h> 46 util::SymbolTable *symbolTable) in PatchFix() 49 symbolTable_(symbolTable), in PatchFix() 58 targetApiVersion_(symbolTable->GetTargetApiVersion()), in PatchFix() 59 targetApiSubVersion_(symbolTable->GetTargetApiSubVersion()) { in PatchFix() 45 PatchFix(bool generateSymbolFile, bool generatePatch, PatchFixKind patchFixKind, const std::string &recordName, util::SymbolTable *symbolTable) PatchFix() argument
|
H A D | symbolTable.h | 77 bool ReadSymbolTable(const std::string &symbolTable);
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | compileQueue.h | 22 #include <util/symbolTable.h> 80 util::SymbolTable *symbolTable, panda::ArenaAllocator *allocator) in CompileFileJob() 82 symbolTable_(symbolTable), allocator_(allocator) {}; in CompileFileJob() 180 util::SymbolTable *symbolTable, panda::ArenaAllocator *allocator) in CompileFileQueue() 182 optimizationPendingProgs_(optimizationPendingProgs), symbolTable_(symbolTable), in CompileFileQueue() 77 CompileFileJob(es2panda::SourceFile *src, es2panda::CompilerOptions *options, std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, std::unordered_set<std::string> &optimizationPendingProgs, util::SymbolTable *symbolTable, panda::ArenaAllocator *allocator) CompileFileJob() argument 177 CompileFileQueue(size_t threadCount, es2panda::CompilerOptions *options, std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, std::unordered_set<std::string> &optimizationPendingProgs, util::SymbolTable *symbolTable, panda::ArenaAllocator *allocator) CompileFileQueue() argument
|
/arkcompiler/ets_frontend/es2panda/aot/ |
H A D | options.cpp | 716 compilerOptions_.patchFixOptions.symbolTable = opInputSymbolTable.GetValue(); in Parse()
|