Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/arkcompiler/ets_frontend/es2panda/parser/module/
DsourceTextModuleRecord.cpp36 void SourceTextModuleRecord::AddImportEntry(SourceTextModuleRecord::ImportEntry *entry) in AddImportEntry() argument
38 ASSERT(!entry->importName_.Empty()); in AddImportEntry()
39 ASSERT(!entry->localName_.Empty()); in AddImportEntry()
40 ASSERT(entry->moduleRequestIdx_ != -1); in AddImportEntry()
41 regularImportEntries_.insert(std::make_pair(entry->localName_, entry)); in AddImportEntry()
45 CheckImplicitIndirectExport(entry); in AddImportEntry()
49 void SourceTextModuleRecord::AddStarImportEntry(SourceTextModuleRecord::ImportEntry *entry) in AddStarImportEntry() argument
51 ASSERT(!entry->localName_.Empty()); in AddStarImportEntry()
52 ASSERT(entry->importName_.Empty()); in AddStarImportEntry()
53 ASSERT(entry->moduleRequestIdx_ != -1); in AddStarImportEntry()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dtagged_dictionary.h27 inline static int GetKeyIndex(int entry) in GetKeyIndex() argument
29 return OrderHashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_KEY_INDEX; in GetKeyIndex()
31 inline static int GetValueIndex(int entry) in GetValueIndex() argument
33 return OrderHashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_VALUE_INDEX; in GetValueIndex()
35 inline static int GetEntryIndex(int entry) in GetEntryIndex() argument
37 return OrderHashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize(); in GetEntryIndex()
52 PropertyAttributes GetAttributes(int entry) const;
53 void SetAttributes(const JSThread *thread, int entry, const PropertyAttributes &metaData);
54 …void SetEntry(const JSThread *thread, int entry, const JSTaggedValue &key, const JSTaggedValue &va…
56 void UpdateValueAndAttributes(const JSThread *thread, int entry, const JSTaggedValue &value,
[all …]
Dglobal_dictionary.h33 inline static int GetKeyIndex(int entry) in GetKeyIndex() argument
35 return OrderHashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_KEY_INDEX; in GetKeyIndex()
37 inline static int GetValueIndex(int entry) in GetValueIndex() argument
39 return OrderHashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_VALUE_INDEX; in GetValueIndex()
41 inline static int GetEntryIndex(int entry) in GetEntryIndex() argument
43 return OrderHashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize(); in GetEntryIndex()
52 …d InvalidatePropertyBox(JSThread *thread, const JSHandle<GlobalDictionary> &dictHandle, int entry);
55 … int entry, const JSHandle<JSTaggedValue> &oldValue);
57 inline bool IsValidateBox(int entry) const;
59 inline PropertyBox *GetBox(int entry) const;
[all …]
Dglobal_dictionary-inl.h50 PropertyBox *GlobalDictionary::GetBox(int entry) const in GetBox() argument
52 int index = GetEntryIndex(entry) + ENTRY_VALUE_INDEX; in GetBox()
56 JSTaggedValue GlobalDictionary::GetValue(int entry) const in GetValue() argument
58 return GetBox(entry)->GetValue(); in GetValue()
61 PropertyAttributes GlobalDictionary::GetAttributes(int entry) const in GetAttributes() argument
63 int index = GetEntryIndex(entry) + ENTRY_DETAILS_INDEX; in GetAttributes()
67 void GlobalDictionary::SetEntry(const JSThread *thread, int entry, const JSTaggedValue &key, const … in SetEntry() argument
70 SetKey(thread, entry, key); in SetEntry()
71 SetAttributes(thread, entry, attributes); in SetEntry()
72 UpdateValueAndAttributes(thread, entry, value, attributes); in SetEntry()
[all …]
Dtagged_tree.h60 static void Remove(const JSThread *thread, const JSHandle<Derived> &tree, int entry);
77 inline JSTaggedValue GetKey(int entry) const in GetKey() argument
79 if (entry < 0) { in GetKey()
82 int index = EntryToIndex(entry); in GetKey()
86 inline JSTaggedValue GetValue(int entry) const in GetValue() argument
88 int index = static_cast<int>(EntryToIndex(entry) + Derived::ENTRY_VALUE_INDEX); in GetValue()
92 inline TreeColor GetColor(int entry) const in GetColor() argument
94 if (entry < 0) { in GetColor()
97 int index = static_cast<int>(EntryToIndex(entry) + Derived::ENTRY_COLOR_INDEX); in GetColor()
180 inline void SetKey(const JSThread *thread, uint32_t entry, JSTaggedValue key) in SetKey() argument
[all …]
Dtransitions_dictionary.h60 inline static int GetKeyIndex(int entry) in GetKeyIndex() argument
62 return HashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_KEY_INDEX; in GetKeyIndex()
64 inline static int GetValueIndex(int entry) in GetValueIndex() argument
66 return HashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_VALUE_INDEX; in GetValueIndex()
68 inline static int GetEntryIndex(int entry) in GetEntryIndex() argument
70 return HashTableT::TABLE_HEADER_SIZE + entry * GetEntrySize(); in GetEntryIndex()
96 inline JSTaggedValue GetAttributes(int entry) const in GetAttributes() argument
98 int index = GetEntryIndex(entry) + ENTRY_DETAILS_INDEX; in GetAttributes()
102 inline void SetAttributes(const JSThread *thread, int entry, JSTaggedValue metaData) in SetAttributes() argument
104 int index = GetEntryIndex(entry) + ENTRY_DETAILS_INDEX; in SetAttributes()
[all …]
Djs_weak_container.cpp39 int entry = mapHandle->FindElement(thread, key.GetTaggedValue()); in Delete() local
40 if (entry == -1) { in Delete()
43 mapHandle->RemoveEntry(thread, entry); in Delete()
65 JSTaggedValue JSWeakMap::GetKey(int entry) const in GetKey()
67 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetKey()
68 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->GetKey(entry); in GetKey()
71 JSTaggedValue JSWeakMap::GetValue(int entry) const in GetValue()
73 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetValue()
74 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->GetValue(entry); in GetValue()
91 int entry = weakSetHandle->FindElement(thread, value.GetTaggedValue()); in Delete() local
[all …]
Dtagged_dictionary.cpp83 for (const auto &entry : sortArr) { in GetAllKeys() local
84 keyArray->Set(thread, arrayIndex + offset, entry.first); in GetAllKeys()
113 for (const auto &entry : sortArr) { in GetAllKeysByFilter() local
114 keyArray->Set(thread, keyArrayEffectivelength, entry.first); in GetAllKeysByFilter()
161 for (auto entry : sortArr) { in GetAllEnumKeys() local
162 keyArray->Set(thread, arrayIndex + static_cast<uint32_t>(offset), entry.first); in GetAllEnumKeys()
184 for (auto entry : sortArr) { in GetAllEnumKeys() local
185 keyArray->Set(thread, arrayIndex + static_cast<uint32_t>(offset), entry.first); in GetAllEnumKeys()
196 PropertyAttributes NameDictionary::GetAttributes(int entry) const in GetAttributes()
198 int index = GetEntryIndex(entry) + ENTRY_DETAILS_INDEX; in GetAttributes()
[all …]
Dtagged_hash_table.h107 int entry = table->FindEntry(key.GetTaggedValue()); in Insert() local
108 if (entry != -1) { in Insert()
109 table->SetValue(thread, entry, value.GetTaggedValue()); in Insert()
123 int entry = table->FindEntry(key.GetTaggedValue()); in Remove() local
124 if (entry == -1) { in Remove()
128 table->RemoveElement(thread, entry); in Remove()
176 JSTaggedValue GetKey(int entry) const in GetKey() argument
178 int index = Derived::GetKeyIndex(entry); in GetKey()
185 JSTaggedValue GetValue(int entry) const in GetValue() argument
187 int index = Derived::GetValueIndex(entry); in GetValue()
[all …]
Dlinked_hash_table.h91 for (JSTaggedValue entry = GetElement(BucketToIndex(bucket)); !entry.IsHole(); in FindElement() local
92 entry = GetNextEntry(entry.GetInt())) { in FindElement()
93 JSTaggedValue element = GetKey(entry.GetInt()); in FindElement()
101 return entry.GetInt(); in FindElement()
107 inline void RemoveEntry(const JSThread *thread, int entry) in RemoveEntry() argument
109 …ASSERT_PRINT(entry >= 0 && entry < Capacity(), "entry must be a non-negative integer less than cap… in RemoveEntry()
110 int index = static_cast<int>(EntryToIndex(entry)); in RemoveEntry()
159 inline JSTaggedValue GetKey(int entry) const in GetKey() argument
161 int index = static_cast<int>(EntryToIndex(entry)); in GetKey()
165 inline JSTaggedValue GetValue(int entry) const in GetValue() argument
[all …]
Dsymbol_table.h34 inline static int GetKeyIndex(int entry) in GetKeyIndex() argument
36 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_KEY_INDEX; in GetKeyIndex()
38 inline static int GetValueIndex(int entry) in GetValueIndex() argument
40 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_VALUE_INDEX; in GetValueIndex()
42 inline static int GetEntryIndex(int entry) in GetEntryIndex() argument
44 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize(); in GetEntryIndex()
81 int entry = FindEntry(key); in ContainsKey() local
82 return entry != -1; in ContainsKey()
87 int entry = FindEntry(key); in GetSymbol() local
88 ASSERT(entry != -1); in GetSymbol()
[all …]
Djs_map.cpp38 int entry = mapHandle->FindElement(thread, key.GetTaggedValue()); in Delete() local
39 if (entry == -1) { in Delete()
42 mapHandle->RemoveEntry(thread, entry); in Delete()
69 JSTaggedValue JSMap::GetKey(uint32_t entry) const in GetKey()
71 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetKey()
72 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->GetKey(entry); in GetKey()
75 JSTaggedValue JSMap::GetValue(uint32_t entry) const in GetValue()
77 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetValue()
78 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->GetValue(entry); in GetValue()
Dlinked_hash_table.cpp45 int entry = table->FindElement(thread, key.GetTaggedValue()); in Insert() local
46 if (entry != -1) { in Insert()
47 table->SetValue(thread, entry, value.GetTaggedValue()); in Insert()
54 entry = newTable->NumberOfElements() + newTable->NumberOfDeletedElements(); in Insert()
55 newTable->InsertNewEntry(thread, bucket, entry); in Insert()
56 newTable->SetKey(thread, entry, key.GetTaggedValue()); in Insert()
57 newTable->SetValue(thread, entry, value.GetTaggedValue()); in Insert()
69 int entry = table->FindElement(thread, key.GetTaggedValue()); in InsertWeakRef() local
70 if (entry != -1) { in InsertWeakRef()
71 table->SetValue(thread, entry, value.GetTaggedValue()); in InsertWeakRef()
[all …]
Dtemplate_map.h37 inline static int GetKeyIndex(int entry) in GetKeyIndex() argument
39 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_KEY_INDEX; in GetKeyIndex()
41 inline static int GetValueIndex(int entry) in GetValueIndex() argument
43 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_VALUE_INDEX; in GetValueIndex()
45 inline static int GetEntryIndex(int entry) in GetEntryIndex() argument
47 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize(); in GetEntryIndex()
Djs_set.cpp38 int entry = setHandle->FindElement(thread, value.GetTaggedValue()); in Delete() local
39 if (entry == -1) { in Delete()
42 setHandle->RemoveEntry(thread, entry); in Delete()
64 JSTaggedValue JSSet::GetValue(int entry) const in GetValue()
66 ASSERT_PRINT(entry >= 0 && static_cast<uint32_t>(entry) < GetSize(), in GetValue()
68 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->GetValue(entry); in GetValue()
/arkcompiler/ets_runtime/ecmascript/require/
Djs_cjs_module_cache.h37 inline static int GetKeyIndex(int entry) in GetKeyIndex() argument
39 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_KEY_INDEX; in GetKeyIndex()
42 inline static int GetValueIndex(int entry) in GetValueIndex() argument
44 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize() + ENTRY_VALUE_INDEX; in GetValueIndex()
47 inline static int GetEntryIndex(int entry) in GetEntryIndex() argument
49 return HashTable::TABLE_HEADER_SIZE + entry * GetEntrySize(); in GetEntryIndex()
89 …for (uint32_t entry = GetFirstPosition(hash, size);; entry = GetNextPosition(entry, count++, size)… in FindEntry() local
90 keyValue = GetKey(entry); in FindEntry()
98 return entry; in FindEntry()
106 int entry = FindEntry(key); in ContainsModule() local
[all …]
Djs_cjs_module_cache.cpp28 int entry = dictionary->FindEntry(key.GetTaggedValue()); in PutIfAbsentAndReset() local
29 if (entry != -1) { in PutIfAbsentAndReset()
38 entry = newDictionary->FindInsertIndex(hash); in PutIfAbsentAndReset()
39 newDictionary->SetEntry(thread, entry, key, value); in PutIfAbsentAndReset()
50 int entry = dictionary->FindEntry(key.GetTaggedValue()); in ResetModule() local
51 ASSERT(entry != -1); in ResetModule()
52 if (entry == -1) { in ResetModule()
55 dictionary->SetEntry(thread, entry, key, value); in ResetModule()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_executor.cpp40 CString entry; in ExecuteFromAbcFile() local
46 entry = entryPoint.data(); in ExecuteFromAbcFile()
49 ModulePathHelper::ParseOhmUrl(vm, normalName, name, entry); in ExecuteFromAbcFile()
64 entry = entryPoint.data(); in ExecuteFromAbcFile()
68 JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, name, entry, needUpdate); in ExecuteFromAbcFile()
70 CString msg = "Load file with filename '" + name + "' failed, recordName '" + entry + "'"; in ExecuteFromAbcFile()
75 const CString realEntry = entry; in ExecuteFromAbcFile()
78 jsPandaFile->CheckIsRecordWithBundleName(entry); in ExecuteFromAbcFile()
80 PathHelper::AdaptOldIsaRecord(entry); in ExecuteFromAbcFile()
85 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entry, recordInfo); in ExecuteFromAbcFile()
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/
Dpool_template.h51 for (auto &entry : pool_) { in TryAdd()
52 if (entry.second.GetData() == value) { in TryAdd()
53 entryId = entry.second.GetEntryId(); in TryAdd()
62 auto &entry = result.first->second; in TryAdd() local
63 entry.SetEntryId(entryId); in TryAdd()
69 for (const auto &entry : pool_) { in GetEntryId() local
70 if (entry.second.GetData() == value) { in GetEntryId()
71 entryId = entry.first; in GetEntryId()
89 for (const auto &entry : pool_) { in GetEntryIdByNormalizedName() local
90 if (JSPandaFile::GetNormalizedFileDesc(entry.second.GetData()) == value) { in GetEntryIdByNormalizedName()
[all …]
/arkcompiler/runtime_core/libziparchive/tests/
Dlibziparchive_tests.cpp106 EntryFileStat entry = EntryFileStat(); in UnzipFileCheckDirectory() local
107 if (GetCurrentFileInfo(zipfile, &entry) != 0) { in UnzipFileCheckDirectory()
121 GetCurrentFileOffset(zipfile, &entry); in UnzipFileCheckDirectory()
123 uint32_t uncompressed_length = entry.GetUncompressedSize(); in UnzipFileCheckDirectory()
125 ASSERT_GT(entry.GetOffset(), 0U); in UnzipFileCheckDirectory()
127 ASSERT_FALSE(entry.IsCompressed()); in UnzipFileCheckDirectory()
129 ASSERT_TRUE(entry.IsCompressed()); in UnzipFileCheckDirectory()
133 … << "Compressed size: " << entry.GetCompressedSize() << "Compressed(): " << entry.IsCompressed() in UnzipFileCheckDirectory()
134 << "entry offset: " << entry.GetOffset() << "\n"; in UnzipFileCheckDirectory()
162 EntryFileStat entry = EntryFileStat(); in UnzipFileCheckTxt() local
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dlinked_hashtable_stub_builder.h59 GateRef GetKey(GateRef linkedTable, GateRef entry) in GetKey() argument
61 GateRef index = EntryToIndex(linkedTable, entry); in GetKey()
65 void SetKey(GateRef linkedTable, GateRef entry, GateRef key) in SetKey() argument
67 GateRef index = EntryToIndex(linkedTable, entry); in SetKey()
71 GateRef GetValue(GateRef linkedTable, GateRef entry) in GetValue() argument
73 GateRef index = EntryToIndex(linkedTable, entry); in GetValue()
78 void SetValue(GateRef linkedTable, GateRef entry, GateRef value) in SetValue() argument
80 GateRef index = EntryToIndex(linkedTable, entry); in SetValue()
85 GateRef EntryToIndex(GateRef linkedTable, GateRef entry) in EntryToIndex() argument
89 GateRef sumEntrySize = Int32Mul(entry, Int32Add(Int32(entrySize), Int32(1))); in EntryToIndex()
[all …]
/arkcompiler/runtime_core/static_core/libziparchive/tests/
Dlibziparchive_tests.cpp120 EntryFileStat entry = EntryFileStat(); in UnzipFileCheckDirectory() local
121 if (GetCurrentFileInfo(zipfile, &entry) != 0) { in UnzipFileCheckDirectory()
135 GetCurrentFileOffset(zipfile, &entry); in UnzipFileCheckDirectory()
137 uint32_t uncompressedLength = entry.GetUncompressedSize(); in UnzipFileCheckDirectory()
139 ASSERT_GT(entry.GetOffset(), 0); in UnzipFileCheckDirectory()
141 ASSERT_FALSE(entry.IsCompressed()); in UnzipFileCheckDirectory()
143 ASSERT_TRUE(entry.IsCompressed()); in UnzipFileCheckDirectory()
147 … << "Compressed size: " << entry.GetCompressedSize() << "Compressed(): " << entry.IsCompressed() in UnzipFileCheckDirectory()
148 << "entry offset: " << entry.GetOffset() << "\n"; in UnzipFileCheckDirectory()
184 EntryFileStat entry = EntryFileStat(); in UnzipFileCheckTxt() local
[all …]
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_tree_set.cpp47 JSTaggedValue JSAPITreeSet::GetKey(int entry) const in GetKey()
49 ASSERT_PRINT(entry < GetSize(), "entry must less than capacity"); in GetKey()
50 JSTaggedValue key = TaggedTreeSet::Cast(GetTreeSet().GetTaggedObject())->GetKey(entry); in GetKey()
58 int entry = TaggedTreeSet::FindEntry(thread, setHandle, key); in Delete() local
60 if (entry < 0) { in Delete()
63 JSTaggedValue newSet = TaggedTreeSet::Delete(thread, setHandle, entry); in Delete()
84 int entry = setHandle->GetMinimum(setHandle->GetRootEntries()); in PopFirst() local
85 if (entry < 0) { in PopFirst()
88 JSHandle<JSTaggedValue> value(thread, setHandle->GetKey(entry)); in PopFirst()
89 JSTaggedValue newSet = TaggedTreeSet::Delete(thread, setHandle, entry); in PopFirst()
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DmoduleRecordEmitter.cpp42 auto *entry = it->second; in GenRegularImportEntries() local
44 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = entry->localName_.Mutf8()}; in GenRegularImportEntries()
47 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = entry->importName_.Mutf8()}; in GenRegularImportEntries()
51 .value_ = static_cast<uint16_t>(entry->moduleRequestIdx_)}; in GenRegularImportEntries()
64 for (const auto *entry : namespaceImportEntries) { in GenNamespaceImportEntries() local
66 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = entry->localName_.Mutf8()}; in GenNamespaceImportEntries()
70 .value_ = static_cast<uint16_t>(entry->moduleRequestIdx_)}; in GenNamespaceImportEntries()
83 auto *entry = it->second; in GenLocalExportEntries() local
85 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = entry->localName_.Mutf8()}; in GenLocalExportEntries()
88 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = entry->exportName_.Mutf8()}; in GenLocalExportEntries()
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/external/
Dfile_ext.cpp67 panda::panda_file::ext::MethodSymEntry entry; in QueryMethodSymByOffset() local
68 entry.id = mda.GetCodeId().value(); in QueryMethodSymByOffset()
69 entry.length = ca.GetCodeSize(); in QueryMethodSymByOffset()
70entry.name = std::string(panda::utf::Mutf8AsCString(pandaFile_->GetStringData(mda.GetNameId()).dat… in QueryMethodSymByOffset()
72 auto ret = methodSymbols_.emplace(offset, entry); in QueryMethodSymByOffset()
106 panda::panda_file::ext::MethodSymEntry entry; in QueryMethodSymAndLineByOffset() local
107 entry.id = mda.GetCodeId().value(); in QueryMethodSymAndLineByOffset()
108 entry.length = ca.GetCodeSize(); in QueryMethodSymAndLineByOffset()
109 entry.name = in QueryMethodSymAndLineByOffset()
112 auto ret = methodSymbols_.emplace(offset, entry); in QueryMethodSymAndLineByOffset()
[all …]

12345678910>>...22