Home
last modified time | relevance | path

Searched refs:symbolTable (Results 1 - 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
H A Dsymbol_table_test.cpp140 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 Des2panda.cpp133 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 Des2panda.h23 #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 Dmir_symbol.h602 : 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 Dglobal_tables.h630 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 Dmir_symbol_builder.h45 MIRSymbol *GetLocalDecl(const MIRSymbolTable &symbolTable, const GStrIdx &strIdx) const;
H A Dmir_builder.h236 MIRSymbol *GetOrCreateLocalDecl(const std::string &str, TyIdx tyIdx, MIRSymbolTable &symbolTable,
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
H A Dmir_symbol_builder.cpp19 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 Dglobal_tables.cpp281 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 Dmir_builder.cpp103 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 Dmir_symbol.cpp325 size_t size = symbolTable.size(); in Dump()
327 MIRSymbol *symbol = symbolTable[i]; in Dump()
/arkcompiler/ets_frontend/es2panda/util/
H A DsymbolTable.cpp16 #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 DpatchFix.h25 #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 DsymbolTable.h77 bool ReadSymbolTable(const std::string &symbolTable);
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A DcompileQueue.h22 #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 Doptions.cpp716 compilerOptions_.patchFixOptions.symbolTable = opInputSymbolTable.GetValue(); in Parse()

Completed in 11 milliseconds