/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() 21 if (strIdx != 0u) { in GetLocalDecl() 22 const StIdx stIdx = symbolTable.GetStIdxFromStrIdx(strIdx); in GetLocalDecl() 31 MIRSymbol *MIRSymbolBuilder::CreateSymbol(TyIdx tyIdx, GStrIdx strIdx, MIRSymKind mClass, MIRStorageClass sClass, in CreateSymbol() argument 39 st->SetNameStrIdx(strIdx); in CreateSymbol()
|
H A D | mir_builder.cpp | 23 GStrIdx strIdx = GetStringIndex(str); in GetOrCreateFunction() local 25 if (strIdx != 0u) { in GetOrCreateFunction() 26 funcSt = GlobalTables::GetGsymTable().GetSymbolFromStrIdx(strIdx); in GetOrCreateFunction() 28 funcSt = CreateSymbol(TyIdx(0), strIdx, kStFunc, kScText, nullptr, kScopeGlobal); in GetOrCreateFunction() 34 strIdx = GetOrCreateStringIndex(str); in GetOrCreateFunction() 35 funcSt = CreateSymbol(TyIdx(0), strIdx, kStFunc, kScText, nullptr, kScopeGlobal); in GetOrCreateFunction() 68 GStrIdx strIdx = GetOrCreateStringIndex(name); in CreateFunction() local 69 funcSymbol->SetNameStrIdx(strIdx); in CreateFunction() 106 GStrIdx strIdx = GetStringIndex(str); in GetOrCreateLocalDecl() local 107 if (strIdx ! in GetOrCreateLocalDecl() 159 CreateSymbol(TyIdx tyIdx, GStrIdx strIdx, MIRSymKind mClass, MIRStorageClass sClass, MIRFunction *func, uint8 scpID) const CreateSymbol() argument [all...] |
H A D | mir_type.cpp | 319 inline void DumpTypeName(GStrIdx strIdx, bool isLocal) in DumpTypeName() argument 321 LogInfo::MapleLogger() << ((isLocal) ? "%" : "$") << GlobalTables::GetStrTable().GetStringFromStrIdx(strIdx); in DumpTypeName() 324 static bool CheckAndDumpTypeName(GStrIdx strIdx, bool isLocal) in CheckAndDumpTypeName() argument 326 if (strIdx == 0u) { in CheckAndDumpTypeName() 330 DumpTypeName(strIdx, isLocal); in CheckAndDumpTypeName()
|
H A D | global_tables.cpp | 315 GStrIdx strIdx = st.GetNameStrIdx(); 316 if (strIdxToStIdxMap[strIdx].FullIdx() != 0) { 319 strIdxToStIdxMap[strIdx] = st.GetStIdx();
|
H A D | mir_function.cpp | 124 GStrIdx strIdx = GlobalTables::GetStrTable().GetOrCreateStrIdxFromName(name); in GetOrCreateLableIdxFromName() local 125 LabelIdx labelIdx = GetLabelTab()->GetLabelIdxFromStrIdx(strIdx); in GetOrCreateLableIdxFromName() 128 GetLabelTab()->SetSymbolFromStIdx(labelIdx, strIdx); in GetOrCreateLableIdxFromName()
|
H A D | mir_symbol.cpp | 352 GStrIdx strIdx = labelTable[labelIdx]; in AddToStringLabelMap() 353 strIdxToLabIdxMap[strIdx] = labelIdx; in AddToStringLabelMap()
|
H A D | mir_module.cpp | 480 uint32 MIRModule::GetFileinfo(GStrIdx strIdx) const in GetFileinfo() 483 if (infoElem.first == strIdx) { in GetFileinfo()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | global_tables.h | 439 U strIdx = GetStrIdxFromName(str); 440 if (strIdx == 0u) { 441 strIdx.reset(stringTable.size()); 444 stringTableMap[newStr] = strIdx; 446 return strIdx; 454 const T &GetStringFromStrIdx(U strIdx) const 456 DEBUG_ASSERT(strIdx < stringTable.size(), "array index out of range"); 457 return *stringTable[strIdx]; 642 void SetStrIdxStIdxMap(GStrIdx strIdx, StIdx stIdx) 644 strIdxToStIdxMap[strIdx] [all...] |
H A D | mir_symbol_builder.h | 45 MIRSymbol *GetLocalDecl(const MIRSymbolTable &symbolTable, const GStrIdx &strIdx) const; 46 MIRSymbol *CreateSymbol(TyIdx tyIdx, GStrIdx strIdx, MIRSymKind mClass, MIRStorageClass sClass, MIRFunction *func,
|
H A D | mir_symbol.h | 285 void SetNameStrIdx(GStrIdx strIdx) in SetNameStrIdx() argument 287 nameStrIdx = strIdx; in SetNameStrIdx() 647 GStrIdx strIdx = st.GetNameStrIdx(); in AddToStringSymbolMap() local 648 if (strIdxToStIdxMap[strIdx].FullIdx() != 0) { in AddToStringSymbolMap() 651 strIdxToStIdxMap[strIdx] = st.GetStIdx(); in AddToStringSymbolMap() 741 GStrIdx strIdx = GlobalTables::GetStrTable().GetOrCreateStrIdxFromName(std::to_string(labelIdx)); in CreateLabel() local 742 labelTable.push_back(strIdx); in CreateLabel() 791 void SetSymbolFromStIdx(LabelIdx idx, GStrIdx strIdx) 794 labelTable[idx] = strIdx;
|
H A D | mir_type.h | 704 MIRType(MIRTypeKind kind, GStrIdx strIdx) : typeKind(kind), nameStrIdx(strIdx) {} in MIRType() argument 706 MIRType(MIRTypeKind kind, PrimType pType, GStrIdx strIdx) : typeKind(kind), primType(pType), nameStrIdx(strIdx) {} in MIRType() argument 760 void SetNameStrIdx(GStrIdx strIdx) in SetNameStrIdx() argument 762 nameStrIdx = strIdx; in SetNameStrIdx() 841 MIRPtrType(PrimType primType, GStrIdx strIdx) : MIRType(kTypePointer, primType, strIdx), pointedTyIdx(0) {} in MIRPtrType() argument 919 explicit MIRArrayType(GStrIdx strIdx) : MIRType(kTypeArray, strIdx) {} in MIRArrayType() argument [all...] |
H A D | mir_builder.h | 104 GStrIdx GetOrCreateStringIndex(GStrIdx strIdx, const std::string &str) const in GetOrCreateStringIndex() argument 106 std::string firstString(GlobalTables::GetStrTable().GetStringFromStrIdx(strIdx)); in GetOrCreateStringIndex() 249 // <className strIdx, fieldname strIdx, typename strIdx, attr list strIdx>
|
H A D | mir_function.h | 257 GStrIdx strIdx = GetLabelStringIndex(labelIdx); in GetLabelName() local 258 return GlobalTables::GetStrTable().GetStringFromStrIdx(strIdx); in GetLabelName()
|
H A D | mir_module.h | 337 uint32 GetFileinfo(GStrIdx strIdx) const;
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | ets_interop_runtime_interface-inl.h | 152 for (uint32_t strIdx = 0; strIdx < indices.size(); strIdx++) { 153 auto strOffset = arr.Get<uint32_t>(strIdx); 154 indices[strIdx] = firstIndexByOffset.try_emplace(strOffset, strIdx).first->second;
|
/arkcompiler/runtime_core/static_core/compiler/tools/paoc/ |
H A D | paoc_clusters.h | 122 const auto *strIdx = idx.Get<StringT>(); in InitClustersMap() local 126 } else if (strIdx != nullptr) { in InitClustersMap() 128 clusterIdx = static_cast<size_t>(clustersJson->GetIndexByKey(*strIdx)); in InitClustersMap()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
H A D | x64_emitter.cpp | 1670 uint32 strIdx = strCt.GetValue().GetIdx(); in EmitSingleElement() local 1671 string strName = ".LSTR__" + to_string(strIdx); in EmitSingleElement() 1672 int64 strSymIdx = CalculateStrLabelSymIdx(GlobalTables::GetGsymTable().GetSymbolTableSize(), strIdx); in EmitSingleElement() 1673 stringPtr.push_back(strIdx); in EmitSingleElement() 1759 for (uint32 strIdx : stringPtr) { in EmitStringPointers() 1760 string ustr = GlobalTables::GetUStrTable().GetStringFromStrIdx(strIdx); in EmitStringPointers() 1761 int64 strSymIdx = CalculateStrLabelSymIdx(GlobalTables::GetGsymTable().GetSymbolTableSize(), strIdx); in EmitStringPointers()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | emit.cpp | 1487 GStrIdx strIdx = GlobalTables::GetStrTable().GetOrCreateStrIdxFromName(typeName); in EmitAsmLabel() local 1488 auto it = strIdx2Type.find(strIdx); in EmitAsmLabel()
|