/arkcompiler/ets_runtime/ecmascript/ |
H A D | linked_hash_table.cpp | 30 JSHandle<Derived> table; in Create() local 32 table = JSHandle<Derived>(factory->NewSOldSpaceTaggedArray(length)); in Create() 34 table = JSHandle<Derived>(factory->NewTaggedArray(length)); in Create() 36 table->SetNumberOfElements(thread, 0); in Create() 37 table->SetNumberOfDeletedElements(thread, 0); in Create() 38 table->SetCapacity(thread, capacity); in Create() 39 return table; in Create() 43 JSHandle<Derived> LinkedHashTable<Derived, HashObject>::Insert(const JSThread *thread, const JSHandle<Derived> &table, in Insert() argument 49 int entry = table->FindElement(thread, key.GetTaggedValue()); in Insert() 51 table in Insert() 68 InsertWeakRef(const JSThread *thread, const JSHandle<Derived> &table, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) InsertWeakRef() argument 97 GrowCapacity(const JSThread *thread, const JSHandle<Derived> &table, int numberOfAddedElements) GrowCapacity() argument 111 Remove(const JSThread *thread, const JSHandle<Derived> &table, const JSHandle<JSTaggedValue> &key) Remove() argument 124 Shrink(const JSThread *thread, const JSHandle<Derived> &table, int additionalCapacity) Shrink() argument 178 Clear(const JSThread *thread, const JSHandle<LinkedHashMap> &table) Clear() argument 196 Shrink(const JSThread *thread, const JSHandle<LinkedHashMap> &table, int additionalCapacity) Shrink() argument 232 Clear(const JSThread *thread, const JSHandle<LinkedHashSet> &table) Clear() argument 250 Shrink(const JSThread *thread, const JSHandle<LinkedHashSet> &table, int additionalCapacity) Shrink() argument [all...] |
H A D | tagged_hash_table.h | 65 static JSHandle<Derived> GrowHashTable(const JSThread *thread, const JSHandle<Derived> &table, in GrowHashTable() argument 68 if (!table->IsNeedGrowHashTable(numOfAddedElements)) { in GrowHashTable() 70 int freeSize = table->Size() - table->EntriesCount() - numOfAddedElements; in GrowHashTable() 71 if (table->HoleEntriesCount() > freeSize / 2) { // 2: half in GrowHashTable() 72 int copyLength = Derived::GetEntryIndex(table->Size()); in GrowHashTable() 73 JSHandle<Derived> copyTable = table.GetTaggedValue().IsInSharedHeap() ? in GrowHashTable() 76 copyTable->SetHashTableSize(thread, table->Size()); in GrowHashTable() 77 table->Rehash(thread, *copyTable); in GrowHashTable() 80 return table; in GrowHashTable() 103 JSHandle<Derived> table = spaceKind == MemSpaceKind::SHARED ? Create() local 112 Insert(const JSThread *thread, JSHandle<Derived> &table, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) Insert() argument 128 Remove(const JSThread *thread, JSHandle<Derived> &table, const JSHandle<JSTaggedValue> &key) Remove() argument 157 Shrink(const JSThread *thread, const JSHandle<Derived> &table, int additionalSize) Shrink() argument 407 Shrink(const JSThread *thread, const JSHandle<Derived> &table) Shrink() argument 423 PutIfAbsent(const JSThread *thread, const JSHandle<Derived> &table, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value, const PropertyAttributes &metaData) PutIfAbsent() argument 450 Put(const JSThread *thread, const JSHandle<Derived> &table, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value, const PropertyAttributes &metaData) Put() argument 477 Remove(const JSThread *thread, const JSHandle<Derived> &table, int entry) Remove() argument 499 auto table = Derived::Cast(this); NextEnumerationIndex() local 520 auto table = Derived::Cast(this); GetEnumerationOrder() local 535 ComputeCompactSize([[maybe_unused]] const JSHandle<Derived> &table, int computeHashTableSize, [[maybe_unused]] int tableSize, [[maybe_unused]] int addedElements) ComputeCompactSize() argument [all...] |
H A D | linked_hash_table.h | 52 static JSHandle<Derived> Insert(const JSThread *thread, const JSHandle<Derived> &table, 55 static JSHandle<Derived> InsertWeakRef(const JSThread *thread, const JSHandle<Derived> &table, 58 static JSHandle<Derived> GrowCapacity(const JSThread *thread, const JSHandle<Derived> &table, 61 static JSHandle<Derived> Remove(const JSThread *thread, const JSHandle<Derived> &table, 64 static JSHandle<Derived> Shrink(const JSThread *thread, const JSHandle<Derived> &table, int additionalCapacity = 0); 224 ASSERT_PRINT(newTable != nullptr && newTable->Capacity() > NumberOfElements(), "can not rehash to new table"); in Rehash() 225 // Rehash elements to new table in Rehash() 241 // If the key is a weak reference, we use the weak referent to calculate the new index in the new table. in Rehash() 363 static JSHandle<LinkedHashMap> Shrink(const JSThread *thread, const JSHandle<LinkedHashMap> &table, 368 static JSHandle<LinkedHashMap> Clear(const JSThread *thread, const JSHandle<LinkedHashMap> &table); [all...] |
H A D | ecma_string_table.cpp | 149 // Strings in string table should not be in the young space. in InternStringThreadUnsafe() 276 It only inserts string into string-table and provides no string-table validity check. 299 It only inserts string into string-table and provides no string-table validity check. 397 // Strings in string table should not be in the young space. in InsertStringToTableWithHashThreadUnsafe() 514 // No need lock here, only shared gc will sweep string table, meanwhile other threads are suspended. in SweepWeakRef() 523 auto &table = stringTable_[tableId].table_; in SweepWeakRef() local 524 for (auto it = table.begin(); it != table in SweepWeakRef() 619 auto table = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(MAX_ONEBYTE_CHARCODE, CreateSingleCharTable() local [all...] |
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | bit_table_test.cpp | 70 BitTable<BitTableDefault<1>> table; in TEST_F() local 71 table.Decode(&in); in TEST_F() 73 ASSERT_EQ(table.GetRowsCount(), 0); in TEST_F() 74 ASSERT_EQ(table.begin(), table.end()); in TEST_F() 89 BitTable<BitTableDefault<1>> table; in TEST_F() local 90 table.Decode(&in); in TEST_F() 92 ASSERT_EQ(table.GetRowsCount(), 1); in TEST_F() 93 ASSERT_FALSE(table.GetRow(0).Has(0)); in TEST_F() 94 ASSERT_EQ(table in TEST_F() 115 BitTable<BitTableDefault<1>> table; TEST_F() local 148 BitTable<BitTableDefault<10>> table; TEST_F() local 212 BitTable<TestAccessor> table; global() local 229 InitRangesTest(std::array<std::array<uint32_t, 2>, 10> &values, BitTable<TestAccessor> &table) InitRangesTest() argument 243 BitTable<TestAccessor> table; InitRangesTest() local 254 BitTable<TestAccessor> table; TEST_F() local 295 BitTable<TestAccessor> table; TEST_F() local 335 BitTable<TestAccessor> table; TEST_F() local 418 BitTable<BitTableDefault<1>> table; TEST_F() local 479 BitTable<BitTableDefault<1>> table; TEST_F() local [all...] |
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | string_table_test.cpp | 94 auto table = StringTable(); in EmptyTable() local 95 ASSERT_EQ(table.Size(), 0); in EmptyTable() 101 auto table = StringTable(); in InternCompressedUtf8AndString() local 105 table.GetOrInternString(data.data(), data.size() - 1, in InternCompressedUtf8AndString() 107 auto *internedStr2 = table.GetOrInternString( in InternCompressedUtf8AndString() 110 ASSERT_EQ(table.Size(), 1); in InternCompressedUtf8AndString() 116 auto table = StringTable(); in InternUncompressedUtf8AndString() local 119 auto *internedStr1 = table.GetOrInternString( in InternUncompressedUtf8AndString() 121 auto *internedStr2 = table.GetOrInternString( in InternUncompressedUtf8AndString() 124 ASSERT_EQ(table in InternUncompressedUtf8AndString() 130 auto table = StringTable(); InternTheSameUtf16String() local 149 auto table = StringTable(); InternManyStrings() local 169 auto table = thread_->GetVM()->GetStringTable(); SweepObjectInTable() local 206 auto table = thread_->GetVM()->GetStringTable(); SweepNonMovableObjectInTable() local 246 auto table = thread_->GetVM()->GetStringTable(); SweepHumongousObjectInTable() local 295 auto table = StringTable(); InternTooLongString() local [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | opcode_info.h | 69 return table[o]; in GetTableItemAt() 75 return table[o].flag & OPCODEISSTMT; 81 return table[o].flag & OPCODEISVARSIZE; 87 return table[o].flag & OPCODENOTMMPL; 93 return table[o].flag & OPCODEISCOMPARE; 99 return table[o].flag & OPCODEISTYPECVT; 105 return table[o].flag & OPCODEHASSSAUSE; 111 return table[o].flag & OPCODEHASSSADEF; 117 return table[o].flag & OPCODEISCALL; 123 return table[ [all...] |
/arkcompiler/ets_frontend/ets2panda/evaluate/ |
H A D | pathResolver.cpp | 27 auto *table = debugInfoStorage_.GetImportExportTable(filePath); in FindImportedFunctions() local 28 if (table == nullptr) { in FindImportedFunctions() 29 LOG(WARNING, ES2PANDA) << "Failed to find import/export table for " << filePath; in FindImportedFunctions() 34 const auto &imports = table->GetImports(); in FindImportedFunctions() 51 auto *table = debugInfoStorage_.GetImportExportTable(filePath); in FindExportedFunctions() local 52 if (table == nullptr) { in FindExportedFunctions() 53 LOG(WARNING, ES2PANDA) << "Failed to find import/export table for " << filePath; in FindExportedFunctions() 57 const auto &exports = table->GetExports(); in FindExportedFunctions() 87 auto *table = debugInfoStorage_.GetImportExportTable(filePath); in FindNamedImportAll() local 88 if (table in FindNamedImportAll() 111 auto *table = debugInfoStorage_.GetImportExportTable(filePath); FindImportedEntity() local 139 auto *table = debugInfoStorage_.GetImportExportTable(filePath); FindExportedEntity() local [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | bit_table_test.cpp | 75 BitTable<BitTableDefault<1U>> table; in TEST_F() local 76 table.Decode(&in); in TEST_F() 78 ASSERT_EQ(table.GetRowsCount(), 0U); in TEST_F() 79 ASSERT_EQ(table.begin(), table.end()); in TEST_F() 94 BitTable<BitTableDefault<1U>> table; in TEST_F() local 95 table.Decode(&in); in TEST_F() 97 ASSERT_EQ(table.GetRowsCount(), 1U); in TEST_F() 98 ASSERT_FALSE(table.GetRow(0U).Has(0U)); in TEST_F() 99 ASSERT_EQ(table in TEST_F() 120 BitTable<BitTableDefault<1U>> table; TEST_F() local 153 BitTable<BitTableDefault<10U>> table; TEST_F() local 218 BitTable<TestAccessor> table; global() local 234 GetRange(BitTable<TestAccessor> table, std::array<std::array<uint32_t, 2U>, 10U> values) GetRange() argument 265 GetReversedRange(BitTable<TestAccessor> table, std::array<std::array<uint32_t, 2U>, 10U> values) GetReversedRange() argument 313 BitTable<TestAccessor> table; TEST_F() local 345 BitTable<TestAccessor> table; TEST_F() local 430 BitTable<BitTableDefault<1U>> table; TEST_F() local 491 BitTable<BitTableDefault<1U>> table; TEST_F() local [all...] |
/arkcompiler/runtime_core/static_core/compiler/aot/ |
H A D | aot_file.cpp | 95 auto *table = const_cast<uintptr_t *>( in InitializeGot() local 98 while (*table != 0) { in InitializeGot() 99 switch (GetByteFrom(*table, 0U)) { in InitializeGot() 101 table -= 2U; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in InitializeGot() 103 table[1] = reinterpret_cast<uintptr_t>(CallStaticPltResolver); in InitializeGot() 105 table[2U] = reinterpret_cast<uintptr_t>( in InitializeGot() 107 table + 1 - runtime->GetCompiledEntryPointOffset(RUNTIME_ARCH) / sizeof(uintptr_t)); in InitializeGot() 110 table--; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in InitializeGot() 111 table[1] = 0; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in InitializeGot() 114 table in InitializeGot() 137 auto *table = const_cast<uintptr_t *>(reinterpret_cast<const uintptr_t *>( PatchTable() local [all...] |
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/examples/benchmarks-interop-freestyle/CRC32/bu_CRC32_sts_state/ |
H A D | bench_CRC32_sts_state.js | 18 let table = []; 24 table[n] = c; 26 return table; 29 function test(str, table) { 32 crc = (crc >>> 8) ^ table[(crc ^ str.charCodeAt(i)) & 0xFF]; 58 let table = setup(); 61 test('Lorem ipsum dolor sit amet, consectetur adipiscing elit', table);
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | layouts.py | 29 from rich.table import Column, Table 45 async def _add_rows(table: Table, scope: Scope): 46 table.add_row( 47 f":red_triangle_pointed_down: [table.header]{scope.data.type_}[/table.header]", 53 table.add_row(k, Pretty(v)) 55 table.add_row("none", "", style="italic") 63 table = Table( 71 table.add_row("this", Pretty(await this.mirror_value(depth=DEFAULT_DEPTH))) 76 await _add_rows(table, scop [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | ecma_string_table_test.cpp | 33 EcmaStringTable *table = thread->GetEcmaVM()->GetEcmaStringTable(); in HWTEST_F_L0() local 38 table->InternEmptyString(thread, *emptyEcmaStrHandle); in HWTEST_F_L0() 52 EcmaStringTable *table = thread->GetEcmaVM()->GetEcmaStringTable(); in HWTEST_F_L0() local 58 EcmaString *ecmaStrGetPtr = table->GetOrInternString(vm, utf8Data, sizeof(utf8Data), true); in HWTEST_F_L0() 73 EcmaStringTable *table = thread->GetEcmaVM()->GetEcmaStringTable(); in HWTEST_F_L0() local 80 EcmaString *ecmaStrGetPtr = table->GetOrInternString(vm, utf16Data, sizeof(utf16Data) / sizeof(uint16_t), false); in HWTEST_F_L0() 96 EcmaStringTable *table = thread->GetEcmaVM()->GetEcmaStringTable(); in HWTEST_F_L0() local 101 EcmaString *ecmaStrGetPtr = table->GetOrInternString(vm, *ecmaStrCreateHandle); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | containers_hashset_stub_builder.h | 34 GateRef table = Load(VariableType::JS_POINTER(), obj, tableOffset);
in GetTableLength() local 35 return GetLengthOfTaggedArray(table);
in GetTableLength() 41 GateRef table = Load(VariableType::JS_POINTER(), obj, tableOffset);
in GetNode() local 42 return GetValueFromTaggedArray(table, index);
in GetNode()
|
H A D | containers_hashmap_stub_builder.h | 34 GateRef table = Load(VariableType::JS_POINTER(), obj, tableOffset);
in GetTableLength() local 35 return GetLengthOfTaggedArray(table);
in GetTableLength() 41 GateRef table = Load(VariableType::JS_POINTER(), obj, tableOffset);
in GetNode() local 42 return GetValueFromTaggedArray(table, index);
in GetNode()
|
H A D | containers_linkedlist_stub_builder.h | 34 GateRef table = Load(VariableType::JS_POINTER(), obj, tableOffset);
in GetTableLength() local 35 GateRef value = GetValueFromTaggedArray(table, Int32(TaggedDoubleList::NUMBER_OF_NODE_INDEX));
in GetTableLength() 42 GateRef table = Load(VariableType::JS_POINTER(), obj, tableOffset);
in GetNode() local 43 return GetValueFromTaggedArray(table, index);
in GetNode()
|
H A D | containers_list_stub_builder.h | 34 GateRef table = Load(VariableType::JS_POINTER(), obj, tableOffset);
in GetTableLength() local 35 GateRef value = GetValueFromTaggedArray(table, Int32(TaggedSingleList::NUMBER_OF_NODE_INDEX));
in GetTableLength() 42 GateRef table = Load(VariableType::JS_POINTER(), obj, tableOffset);
in GetNode() local 43 return GetValueFromTaggedArray(table, index);
in GetNode()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
H A D | opcode_info.cpp | 23 table[OP_##O].flag = F; \ in OpcodeTable() 24 table[OP_##O].name = STR(O); \ in OpcodeTable() 25 table[OP_##O].instrucSize = S; in OpcodeTable()
|
/arkcompiler/toolchain/tooling/backend/ |
H A D | js_single_stepper.cpp | 94 const LineNumberTable &table = extractor->GetLineNumberTable(methodId); in GetStepRanges() local 95 auto callbackFunc = [table, &ranges](int32_t line) -> bool { in GetStepRanges() 96 for (auto it = table.begin(); it != table.end(); ++it) { in GetStepRanges() 99 JSPtStepRange range {it->offset, next != table.end() ? next->offset : UINT32_MAX}; in GetStepRanges()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
H A D | debug_info_cache.h | 81 auto &table = debugInfo.GetLineNumberTable(methodId); in REQUIRES() local 82 for (auto it = table.begin(); it != table.end(); ++it) { in REQUIRES() 84 if (!handler(file, debugInfo, methodId, *it, next != table.end() ? &*next : nullptr)) { in REQUIRES()
|
H A D | debug_info_cache.cpp | 50 auto &table = debugInfo.GetLineNumberTable(method->GetFileId()); in GetSourceLocation() local 51 auto lineNumberIter = std::upper_bound(table.begin(), table.end(), frame.GetBytecodeOffset(), in GetSourceLocation() 53 ASSERT(lineNumberIter != table.begin()); in GetSourceLocation() 64 auto &table = GetDebugInfo(pandaFile).GetLineNumberTable(methodId); in GetCurrentLineLocations() local 65 auto it = std::upper_bound(table.begin(), table.end(), frame.GetBytecodeOffset(), in GetCurrentLineLocations() 67 if (it == table.begin()) { in GetCurrentLineLocations() 72 for (it = table.begin(); it != table in GetCurrentLineLocations() [all...] |
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/ |
H A D | test_extractor.cpp | 113 std::optional<size_t> TestExtractor::GetLineNumberByTableOffset(const panda_file::LineNumberTable &table, in GetLineNumberByTableOffset() argument 116 for (const auto &value : table) { in GetLineNumberByTableOffset() 124 std::optional<uint32_t> TestExtractor::GetOffsetByTableLineNumber(const panda_file::LineNumberTable &table, size_t line) in GetOffsetByTableLineNumber() argument 126 for (const auto &value : table) { in GetOffsetByTableLineNumber()
|
/arkcompiler/runtime_core/compiler/tests/ |
H A D | class_hash_table_test.cpp | 184 auto table = aot_file->GetClassHashTable(file_header); in TEST_F() local 186 ASSERT(!table.empty()); in TEST_F() 187 ASSERT_EQ(table.size(), file_header.class_hash_table_size); in TEST_F() 193 auto table = aot_panda_file.GetClassHashTable(); in TEST_F() local 195 ASSERT(!table.empty()); in TEST_F() 196 ASSERT_EQ(table.size(), file_header.class_hash_table_size); in TEST_F()
|
/arkcompiler/runtime_core/static_core/compiler/code_info/ |
H A D | code_info.cpp | 27 const auto &table = this->*member; in Dump() 28 table.Dump(stream); in Dump()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_itable_builder.cpp | 75 auto table = interface->GetITable().Get(); in LinearizeITable() local 76 for (auto &item : table) { in LinearizeITable() 110 auto table = interface->GetITable().Get(); in Build() local 111 for (auto item : table) { in Build()
|