Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 169) sorted by relevance

1234567

/arkcompiler/runtime_core/libpandafile/
Dpanda_cache.h86 auto pair = pair_ptr->load(std::memory_order_acquire); in GetMethodFromCache() local
88 if (pair.id_ == id) { in GetMethodFromCache()
89 return pair.ptr_; in GetMethodFromCache()
96 MethodCachePair pair; in SetMethodCache() local
97 pair.id_ = id; in SetMethodCache()
98 pair.ptr_ = method; in SetMethodCache()
104 pair_ptr->store(pair, std::memory_order_release); in SetMethodCache()
113 auto pair = pair_ptr->load(std::memory_order_acquire); in GetFieldFromCache() local
115 if (pair.id_ == id) { in GetFieldFromCache()
116 return pair.ptr_; in GetFieldFromCache()
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DinferentialTypingWithFunctionTypeZip.ts21 let pair: <T, S>(x: T) => (y: S) => { x: T; y: S;
22 AssertType(pair, "<T, S>(T) => (S) => { x: T; y: S; }");
41 let result = zipWith([1, 2], ['a', 'b'], pair);
43 AssertType(zipWith([1, 2], ['a', 'b'], pair), "{ x: number; y: unknown; }[]");
51 AssertType(pair, "<T, S>(T) => (S) => { x: T; y: S; }");
DtypeGuardNarrowsIndexedAccessOfKnownProperty1.ts250 export function g(pair: [number, string?]): string {
251 AssertType(pair[1] ? pair[1] : 'nope', "string");
252 AssertType(pair[1], "union");
253 AssertType(pair, "[number, (union)?]");
255 AssertType(pair[1], "string");
256 AssertType(pair, "[number, (union)?]");
259 return pair[1] ? pair[1] : 'nope';
/arkcompiler/ets_runtime/ecmascript/
Dglobal_dictionary-inl.h107 CVector<std::pair<JSTaggedValue, uint32_t>> sortArr; in GetAllKeys()
112 std::pair<JSTaggedValue, uint32_t> pair(key, attr.GetOffset()); in GetAllKeys()
113 sortArr.push_back(pair); in GetAllKeys()
131 CVector<std::pair<JSTaggedValue, uint32_t>> sortArr; in GetAllKeysByFilter()
146 std::pair<JSTaggedValue, uint32_t> pair(key, attr.GetOffset()); in GetAllKeysByFilter()
147 sortArr.push_back(pair); in GetAllKeysByFilter()
166 CVector<std::pair<JSTaggedValue, uint32_t>> sortArr; in GetEnumAllKeys()
172 std::pair<JSTaggedValue, uint32_t> pair(key, attr.GetOffset()); in GetEnumAllKeys()
173 sortArr.push_back(pair); in GetEnumAllKeys()
186 bool GlobalDictionary::CompKey(const std::pair<JSTaggedValue, uint32_t> &a, const std::pair<JSTagge… in CompKey()
Dtagged_dictionary.cpp69 CVector<std::pair<JSTaggedValue, PropertyAttributes>> sortArr; in GetAllKeys()
74 std::pair<JSTaggedValue, PropertyAttributes> pair(key, attr); in GetAllKeys() local
75 sortArr.push_back(pair); in GetAllKeys()
89 CVector<std::pair<JSTaggedValue, PropertyAttributes>> sortArr; in GetAllKeysByFilter()
104 std::pair<JSTaggedValue, PropertyAttributes> pair(key, attr); in GetAllKeysByFilter() local
105 sortArr.push_back(pair); in GetAllKeysByFilter()
118 CVector<std::pair<JSTaggedValue, PropertyAttributes>> sortArr; in GetAllEnumKeys()
125 std::pair<JSTaggedValue, PropertyAttributes> pair(key, attr); in GetAllEnumKeys() local
126 sortArr.push_back(pair); in GetAllEnumKeys()
Ddump.cpp1622 void JSAPITreeMap::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
1645 void JSAPITreeMapIterator::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) con… in DumpForSnapshot()
1737 void JSAPITreeSet::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
1760 void JSAPITreeSetIterator::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) con… in DumpForSnapshot()
1819 void JSAPIPlainArray::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
1832 void JSAPIPlainArrayIterator::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) … in DumpForSnapshot()
2050 void JSAPIHashMap::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
2063 void JSAPIHashSet::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
2075 void JSAPIHashMapIterator::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) con… in DumpForSnapshot()
2087 void JSAPIHashSetIterator::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) con… in DumpForSnapshot()
[all …]
Djs_object-inl.h226 std::pair<bool, JSTaggedValue> JSObject::ConvertValueWithRep(uint32_t index, JSTaggedValue value) in ConvertValueWithRep()
233 return std::pair(true, JSTaggedValue(bit_cast<JSTaggedType>(doubleValue))); in ConvertValueWithRep()
235 return std::pair(true, JSTaggedValue(bit_cast<JSTaggedType>(value.GetDouble()))); in ConvertValueWithRep()
237 return std::pair(false, value); in ConvertValueWithRep()
242 return std::pair(true, JSTaggedValue(static_cast<JSTaggedType>(intValue))); in ConvertValueWithRep()
244 return std::pair(false, value); in ConvertValueWithRep()
247 return std::pair(true, value); in ConvertValueWithRep()
442 inline std::pair<JSHandle<TaggedArray>, JSHandle<TaggedArray>> JSObject::GetOwnEnumerableNamesInFas… in GetOwnEnumerableNamesInFastMode()
/arkcompiler/ets_runtime/ecmascript/mem/
Dchunk_containers.h83 class PUBLIC_API ChunkMap : public std::map<K, V, Compare, ChunkAllocator<std::pair<const K, V>>> {
87 : std::map<K, V, Compare, ChunkAllocator<std::pair<const K, V>>>(Compare(), in ChunkMap()
88 … ChunkAllocator<std::pair<const K, V>>(chunk)) in ChunkMap()
96 … ChunkAllocator<std::pair<const K, V>>> {
100 : std::unordered_map<K, V, Hash, KeyEqual, ChunkAllocator<std::pair<const K, V>>>(
101 bucket_count, Hash(), KeyEqual(), ChunkAllocator<std::pair<const K, V>>(chunk))
110 class PUBLIC_API ChunkMultimap : public std::multimap<K, V, Compare, ChunkAllocator<std::pair<const…
114 : std::multimap<K, V, Compare, ChunkAllocator<std::pair<const K, V>>>( in ChunkMultimap()
115 Compare(), ChunkAllocator<std::pair<const K, V>>(chunk)) in ChunkMultimap()
Dc_containers.h41 using CMap = std::map<Key, T, Compare, CAddressAllocator<std::pair<const Key, T>>>;
44 using CMultiMap = std::multimap<Key, T, Compare, CAddressAllocator<std::pair<const Key, T>>>;
48 …std::unordered_multimap<Key, Value, Hash, KeyEqual, CAddressAllocator<std::pair<const Key, Value>>…
60 using CUnorderedMap = std::unordered_map<Key, T, Hash, KeyEqual, CAddressAllocator<std::pair<const …
/arkcompiler/ets_runtime/ecmascript/stackmap/
Dark_stackmap_builder.h68 …std::pair<std::shared_ptr<uint8_t>, uint32_t> PUBLIC_API Run(std::unique_ptr<uint8_t []> stackMapA…
70 std::pair<std::shared_ptr<uint8_t>, uint32_t> GenerateArkStackMap(
90 std::vector<std::pair<uintptr_t, Vec>>& result);
91 … void CalcCallsitePc(std::vector<std::pair<uintptr_t, LLVMStackMapType::DeoptInfoType>> &pc2Deopt,
92 … std::vector<std::pair<uintptr_t, LLVMStackMapType::CallSiteInfo>> &pc2StackMap,
101 std::pair<uint32_t, std::vector<ARKDeopt>> &sizeAndArkDeopt, Triple triple);
Dark_stackmap_builder.cpp58 std::pair<std::shared_ptr<uint8_t>, uint32_t> ArkStackMapBuilder::Run(std::unique_ptr<uint8_t []> s… in Run()
69 …std::pair<std::shared_ptr<uint8_t>, uint32_t> info = GenerateArkStackMap(pc2CallSiteInfoVec, pc2De… in Run()
90 std::pair<std::shared_ptr<uint8_t>, uint32_t> ArkStackMapBuilder::GenerateArkStackMap( in GenerateArkStackMap()
203 std::vector<std::pair<uintptr_t, Vec>>& result) in SortCallSite()
211 [](const std::pair<uintptr_t, Vec> &x, const std::pair<uintptr_t, Vec> &y) { in SortCallSite()
216 void ArkStackMapBuilder::CalcCallsitePc(std::vector<std::pair<uintptr_t, LLVMStackMapType::DeoptInf… in CalcCallsitePc()
217 …std::vector<std::pair<uintptr_t, LLVMStackMapType::CallSiteInfo>> &pc2StackMap, std::vector<intptr… in CalcCallsitePc()
239 void ArkStackMapBuilder::GenARKDeopt(const LLVMStackMapType::DeoptInfoType& deopt, std::pair<uint32… in GenARKDeopt()
297 std::vector<std::pair<uintptr_t, LLVMStackMapType::CallSiteInfo>> pc2StackMaps; in GenArkCallsiteAOTFileInfo()
298 std::vector<std::pair<uintptr_t, LLVMStackMapType::DeoptInfoType>> pc2Deopts; in GenArkCallsiteAOTFileInfo()
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
Dutf.cpp57 std::pair<uint32_t, size_t> ConvertMUtf8ToUtf16Pair(const uint8_t *data, size_t max_bytes) in ConvertMUtf8ToUtf16Pair()
90 uint32_t pair = 0; in ConvertMUtf8ToUtf16Pair() local
91 pair |= ((code_point >> (PAIR_ELEMENT_WIDTH - DATA_WIDTH)) + U16_LEAD) & MASK_16BIT; in ConvertMUtf8ToUtf16Pair()
92 pair <<= PAIR_ELEMENT_WIDTH; in ConvertMUtf8ToUtf16Pair()
93 pair |= (code_point & MASK_10BIT) + U16_TAIL; in ConvertMUtf8ToUtf16Pair()
95 return {pair, CONST_4}; in ConvertMUtf8ToUtf16Pair()
187 auto [pair, nbytes] = ConvertMUtf8ToUtf16Pair(mutf8_in, mutf8_len - in_pos); in ConvertMUtf8ToUtf16()
188 auto [p_hi, p_lo] = SplitUtf16Pair(pair); in ConvertMUtf8ToUtf16()
206 auto [pair, nbytes] = ConvertMUtf8ToUtf16Pair(mutf8_in, mutf8_len - in_pos); in ConvertRegionMUtf8ToUtf16()
207 auto [p_hi, p_lo] = SplitUtf16Pair(pair); in ConvertRegionMUtf8ToUtf16()
[all …]
Dutf.h74 std::pair<uint32_t, size_t> ConvertMUtf8ToUtf16Pair(const uint8_t *data, size_t max_bytes = 4);
142 static inline std::pair<uint16_t, uint16_t> SplitUtf16Pair(uint32_t pair) in SplitUtf16Pair() argument
146 return {pair >> P2_SHIFT, pair & P1_MASK}; in SplitUtf16Pair()
Darena_containers.h49 using ArenaMap = std::map<Key, T, Compare, ArenaAllocatorAdapter<std::pair<const Key, T>, use_oom_h…
51 using ArenaMultiMap = std::multimap<Key, T, Compare, ArenaAllocatorAdapter<std::pair<const Key, T>,…
55 …std::unordered_multimap<Key, T, Hash, KeyEqual, ArenaAllocatorAdapter<std::pair<const Key, T>, use…
59 … std::unordered_map<Key, T, Hash, KeyEqual, ArenaAllocatorAdapter<std::pair<const Key, T>, false>>;
/arkcompiler/ets_runtime/ecmascript/regexp/
Dregexp_parser_cache.cpp45 std::pair<JSTaggedValue, size_t> RegExpParserCache::GetCache(EcmaString *pattern, const uint32_t fl… in GetCache()
51 return std::pair<JSTaggedValue, size_t>(JSTaggedValue::Hole(), 0); in GetCache()
54 return std::pair<JSTaggedValue, size_t>(info.codeBuffer_, info.bufferSize_); in GetCache()
Dregexp_parser.cpp37 std::pair<uint32_t, uint32_t>(0x0009, 0x000D), // NOLINTNEXTLINE(readability-magic-numbers)
38 std::pair<uint32_t, uint32_t>(0x0020, 0x0020), // NOLINTNEXTLINE(readability-magic-numbers)
39 std::pair<uint32_t, uint32_t>(0x00A0, 0x00A0), // NOLINTNEXTLINE(readability-magic-numbers)
40 std::pair<uint32_t, uint32_t>(0x1680, 0x1680), // NOLINTNEXTLINE(readability-magic-numbers)
41 std::pair<uint32_t, uint32_t>(0x2000, 0x200A), // NOLINTNEXTLINE(readability-magic-numbers)
44 std::pair<uint32_t, uint32_t>(0x2028, 0x2029), // NOLINTNEXTLINE(readability-magic-numbers)
45 std::pair<uint32_t, uint32_t>(0x202F, 0x202F), // NOLINTNEXTLINE(readability-magic-numbers)
46 std::pair<uint32_t, uint32_t>(0x205F, 0x205F), // NOLINTNEXTLINE(readability-magic-numbers)
47 std::pair<uint32_t, uint32_t>(0x3000, 0x3000), // NOLINTNEXTLINE(readability-magic-numbers)
49 std::pair<uint32_t, uint32_t>(0xFEFF, 0xFEFF), // NOLINTNEXTLINE(readability-magic-numbers)
[all …]
Dregexp_executor.cpp255 std::vector<std::pair<bool, JSHandle<EcmaString>>> captures; in GetResult()
268 std::pair<bool, JSHandle<EcmaString>> pair; in GetResult() local
270 pair.first = false; in GetResult()
273 pair.second = factory->NewFromUtf16( in GetResult()
285 pair.second = in GetResult()
290 pair.first = true; in GetResult()
292 captures.emplace_back(pair); in GetResult()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Ddebug_info_extractor.h141 for (const auto &pair : columnTable) { in MatchWithLocation() local
142 if (pair.offset >= currentOffset && pair.offset < nextOffset) { in MatchWithLocation()
143 if (pair.column == column) { in MatchWithLocation()
144 return cb(JSPtLocation(jsPandaFile_, methodId, pair.offset, url)); in MatchWithLocation()
145 } else if (pair.column < minColumn) { in MatchWithLocation()
146 minColumn = pair.column; in MatchWithLocation()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_forin_iterator_test.cpp77 std::pair<JSTaggedValue, bool> n1 = JSForInIterator::NextInternal(thread, it); in HWTEST_F_L0()
81 std::pair<JSTaggedValue, bool> n2 = JSForInIterator::NextInternal(thread, it); in HWTEST_F_L0()
85 std::pair<JSTaggedValue, bool> n3 = JSForInIterator::NextInternal(thread, it); in HWTEST_F_L0()
89 std::pair<JSTaggedValue, bool> n4 = JSForInIterator::NextInternal(thread, it); in HWTEST_F_L0()
Djs_serializer_test.cpp68 void JSSpecialValueTest(std::pair<uint8_t *, size_t> data) in JSSpecialValueTest()
92 void JSPlainObjectTest1(std::pair<uint8_t *, size_t> data) in JSPlainObjectTest1()
128 void JSPlainObjectTest2(std::pair<uint8_t *, size_t> data) in JSPlainObjectTest2()
151 void NativeBindingObjectTest1(std::pair<uint8_t *, size_t> data) in NativeBindingObjectTest1()
168 void NativeBindingObjectTest2(std::pair<uint8_t *, size_t> data) in NativeBindingObjectTest2()
194 void NativeBindingObjectTest3(std::pair<uint8_t *, size_t> data) in NativeBindingObjectTest3()
238 void DescriptionTest(std::pair<uint8_t *, size_t> data) in DescriptionTest()
273 void JSSetTest(std::pair<uint8_t *, size_t> data) in JSSetTest()
305 void JSArrayTest(std::pair<uint8_t *, size_t> data) in JSArrayTest()
333 void ObjectsPropertyReferenceTest(std::pair<uint8_t *, size_t> data) in ObjectsPropertyReferenceTest()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/
Dopt_code_profiler.cpp26 std::vector<std::pair<EcmaOpcode, Value>> profVec; in PrintAndReset()
32 [](std::pair<EcmaOpcode, Value> &x, std::pair<EcmaOpcode, Value> &y) -> bool { in PrintAndReset()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Dmodule_section_des.h70 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &GetSectionsInfo() in GetSectionsInfo()
75 const std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &GetSectionsInfo() const in GetSectionsInfo()
163 sectionsInfo_[ElfSecName::ARK_STACKMAP] = std::pair(arkStackMapAddr, arkStackMapSize); in AddArkStackMapSection()
172 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> sectionsInfo_ {};
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcompiler_log.h112 std::set<std::pair<std::string, CString>> &mismatchMethodSet);
143 std::map<std::pair<uint32_t, std::string>, double> timeMethodMap_ {};
144 std::set<std::pair<std::string, CString>> compiledMethodSet_ {};
147 std::set<std::pair<std::string, CString>> mismatchPGOMethodSet_ {};
/arkcompiler/runtime_core/assembler/
Dassembly-context.h54 std::vector<std::pair<size_t, size_t>> *function_arguments_list = nullptr;
55 … std::unordered_map<std::string, std::vector<std::pair<size_t, size_t>>> function_arguments_lists;
/arkcompiler/ets_frontend/es2panda/typescript/types/
DinterfaceType.h48 void SetMergedTypeParams(std::pair<std::vector<binder::Variable *>, size_t> &&mergedTypeParams) in SetMergedTypeParams()
53 const std::pair<std::vector<binder::Variable *>, size_t> &GetMergedTypeParams() const in GetMergedTypeParams()
145 std::pair<std::vector<binder::Variable *>, size_t> mergedTypeParams_ {};

1234567