/arkcompiler/runtime_core/static_core/runtime/include/mem/ |
H A D | panda_containers.h | 63 template <class Key, class KeyLess = std::less<Key>> 64 using PandaSet = std::set<Key, KeyLess, mem::AllocatorAdapter<Key>>; 66 template <class Key, class KeyLess = std::less<Key>> 67 using PandaSetTL = std::set<Key, KeyLess, mem::AllocatorAdapter<Key, mem::AllocScope::LOCAL>>; 69 template <class Key, class Hash = std::hash<Key>, clas [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | arena_containers.h | 46 template <class Key, class Compare = std::less<Key>, bool use_oom_handler = false> 47 using ArenaSet = std::set<Key, Compare, ArenaAllocatorAdapter<Key, use_oom_handler>>; 48 template <class Key, class T, class Compare = std::less<Key>, bool use_oom_handler = false> 49 using ArenaMap = std::map<Key, T, Compare, ArenaAllocatorAdapter<std::pair<const Key, T>, use_oom_handler>>; 50 template <class Key, class T, class Compare = std::less<Key>, boo [all...] |
H A D | json_parser.h | 39 using Key = StringT; 139 size_t GetIndexByKey(const Key &key) const in GetIndexByKey() 154 const T *GetValue(const Key &key) const 159 const StringT *GetValueSourceString(const Key &key) const 183 std::unordered_map<Key, Value> values_map_; 185 std::unordered_map<Key, StringT> string_map_; 188 std::vector<Key> keys_;
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | arena_containers.h | 49 template <class Key, class Compare = std::less<Key>, bool USE_OOM_HANDLER = false> 50 using ArenaSet = std::set<Key, Compare, ArenaAllocatorAdapter<Key, USE_OOM_HANDLER>>; 51 template <class Key, class T, class Compare = std::less<Key>, bool USE_OOM_HANDLER = false> 52 using ArenaMap = std::map<Key, T, Compare, ArenaAllocatorAdapter<std::pair<const Key, T>, USE_OOM_HANDLER>>; 53 template <class Key, class T, class Compare = std::less<Key>, boo [all...] |
H A D | json_parser.h | 39 using Key = StringT; 141 size_t GetIndexByKey(const Key &key) const in GetIndexByKey() 156 const T *GetValue(const Key &key) const 161 const StringT *GetValueSourceString(const Key &key) const 185 std::unordered_map<Key, Value> valuesMap_; 187 std::unordered_map<Key, StringT> stringMap_; 190 std::vector<Key> keys_;
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | c_containers.h | 43 template<class Key, class T, class Compare = std::less<>> 44 using CMap = std::map<Key, T, Compare, CAddressAllocator<std::pair<const Key, T>>>; 46 template<class Key, class T, class Compare = std::less<>> 47 using CMultiMap = std::multimap<Key, T, Compare, CAddressAllocator<std::pair<const Key, T>>>; 49 template<class Key, class Value, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>> 51 std::unordered_multimap<Key, Valu [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/ |
H A D | wrappers_cache.h | 26 template <typename Key, typename Wrapper> 34 Wrapper *Lookup(Key key) in Lookup() 43 Wrapper *Insert(Key key, std::unique_ptr<Wrapper> &&wrapper) in Insert() 50 std::unique_ptr<Wrapper> Steal(Key key) in Steal() 57 std::unordered_map<Key, std::unique_ptr<Wrapper>> cache_;
|
/arkcompiler/toolchain/tooling/test/client_utils/ |
H A D | test_util.h | 33 template<class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>> 34 using CUnorderedMap = panda::ecmascript::CUnorderedMap<Key, T, Hash, KeyEqual>;
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/mem/ |
H A D | mpsc_set.h | 70 template <class Key, class Value> 72 std::unordered_map<Key, Value, std::hash<Key>, std::equal_to<Key>, 73 typename AllocatorType::template rebind<std::pair<const Key, Value>>::other>;
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | typeElaborationContext.cpp | 100 switch (prop->Key()->Type()) { in NonComputedPropKeyType() 102 return checker_->Allocator()->New<StringLiteralType>(prop->Key()->AsIdentifier()->Name()); in NonComputedPropKeyType() 105 return checker_->Allocator()->New<NumberLiteralType>(prop->Key()->AsNumberLiteral()->Number().GetDouble()); in NonComputedPropKeyType() 108 return checker_->Allocator()->New<StringLiteralType>(prop->Key()->AsStringLiteral()->Str()); in NonComputedPropKeyType() 132 propKeyType = checker_->CheckComputedPropertyName(prop->Key()); in Start()
|
/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | alloc_tracker.cpp | 212 class Key { in WriteStacks() class 214 explicit Key(const Stacktrace *stacktrace) : stacktrace_(stacktrace), hash_(CalcHash(*stacktrace)) {} in WriteStacks() function in panda::Key 216 DEFAULT_COPY_SEMANTIC(Key); in WriteStacks() 217 DEFAULT_NOEXCEPT_MOVE_SEMANTIC(Key); in WriteStacks() 219 ~Key() = default; in WriteStacks() 221 bool operator==(const Key &k) const in WriteStacks() 237 size_t operator()(const Key &k) const in WriteStacks() 243 std::unordered_map<Key, uint32_t, KeyHash> alloc_stacks; in WriteStacks() 247 Key akey(&stacktrace); in WriteStacks()
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | alloc_tracker.cpp | 212 class Key { in WriteStacks() class 214 explicit Key(const Stacktrace *stacktrace) : stacktrace_(stacktrace), hash_(CalcHash(*stacktrace)) {} in WriteStacks() function in ark::Key 216 DEFAULT_COPY_SEMANTIC(Key); in WriteStacks() 217 DEFAULT_NOEXCEPT_MOVE_SEMANTIC(Key); in WriteStacks() 219 ~Key() = default; in WriteStacks() 221 bool operator==(const Key &k) const in WriteStacks() 237 size_t operator()(const Key &k) const in WriteStacks() 243 std::unordered_map<Key, uint32_t, KeyHash> allocStacks; in WriteStacks() 247 Key akey(&stacktrace); in WriteStacks()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | typeElaborationContext.cpp | 112 propKeyType = checker_->CheckComputedPropertyName(prop->Key()); in Start() 114 switch (prop->Key()->Type()) { in Start() 116 propKeyType = checker_->Allocator()->New<StringLiteralType>(prop->Key()->AsIdentifier()->Name()); in Start() 121 checker_->Allocator()->New<NumberLiteralType>(prop->Key()->AsNumberLiteral()->Number()); in Start() 125 propKeyType = checker_->Allocator()->New<StringLiteralType>(prop->Key()->AsStringLiteral()->Str()); in Start()
|
/arkcompiler/runtime_core/static_core/verification/cache/ |
H A D | file_entity_cache.h | 55 using Key = std::tuple<FileId, panda_file::File::EntityId, TypeIndexT>; 58 Key GetKey(const panda_file::File &pf, panda_file::File::EntityId id) in GetKey() 81 PandaUnorderedMap<Key, void *> storage_;
|
/arkcompiler/runtime_core/static_core/compiler/tools/paoc/ |
H A D | paoc_clusters.h | 41 using Key = JsonObject::Key; 67 if (mainObj.GetValue<JsonObjPointer>(Key(CLUSTERS_OBJ_NAME)) == nullptr) { in InitClusters() 70 const auto clustersJson = mainObj.GetValue<JsonObjPointer>(Key(CLUSTERS_OBJ_NAME))->get(); in InitClusters() 104 if (mainObj.GetValue<JsonObjPointer>(Key(CLUSTERS_MAP_OBJ_NAME)) == nullptr) { in InitClustersMap() 107 const auto clustersMapJson = mainObj.GetValue<JsonObjPointer>(Key(CLUSTERS_MAP_OBJ_NAME))->get(); in InitClustersMap() 127 const auto clustersJson = mainObj.GetValue<JsonObjPointer>(Key(CLUSTERS_OBJ_NAME))->get(); in InitClustersMap()
|
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/ |
H A D | opt_code_profiler.h | 89 struct Key {
struct in panda::ecmascript::OptCodeProfiler 90 Key(uint32_t abcId, uint32_t methodId)
in Key() function 95 Key(uint64_t key) : abcAndMethodId_(key) {};
in Key() function 195 void PrintMethodRecord(Key key, std::string methodName);
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A D | tsEnumMember.h | 31 const Expression *Key() const in Key() function in ark::es2panda::ir::TSEnumMember 36 Expression *Key() in Key() function in ark::es2panda::ir::TSEnumMember
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsPropertySignature.h | 45 const Expression *Key() const in Key() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::TSPropertySignature 50 Expression *Key() in Key() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::TSPropertySignature
|
H A D | tsPrivateIdentifier.h | 39 const Expression *Key() const in Key() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::TSPrivateIdentifier 44 Expression *Key() in Key() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::TSPrivateIdentifier
|
H A D | tsMethodSignature.h | 61 const Expression *Key() const in Key() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::TSMethodSignature 66 Expression *Key() in Key() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::TSMethodSignature
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | classDefinition.cpp | 174 util::StringView name = util::Helpers::LiteralToPropName(pg->Allocator(), prop->Key()); in CreateClassPublicBuffer() 301 pg->ToPropertyKey(prop->Key(), false); in CompileMissingProperties() 345 pg->StoreLexicalVar(instanceInitializer_, 0, GetSlot(instanceInitializer_->Key())); in InstanceInitialize() 360 prop->Key()->Compile(pg); in CompileComputedKeys() 361 pg->ToComputedPropertyKey(prop->Key()); in CompileComputedKeys() 362 pg->StoreLexicalVar(prop->Key(), 0, GetSlot(prop->Key())); in CompileComputedKeys() 369 methodDef->Key()->Compile(pg); in CompileComputedKeys() 370 pg->ToComputedPropertyKey(methodDef->Key()); in CompileComputedKeys() 371 pg->StoreAccumulator(methodDef->Key(), keyRe in CompileComputedKeys() [all...] |
H A D | property.h | 59 Expression *Key() in Key() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::Property 64 const Expression *Key() const in Key() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::Property
|
/arkcompiler/ets_frontend/ets2panda/ir/base/ |
H A D | classElement.h | 47 [[nodiscard]] Expression *Key() noexcept 52 [[nodiscard]] const Expression *Key() const noexcept
|
H A D | tsPropertySignature.h | 41 [[nodiscard]] const Expression *Key() const noexcept 46 [[nodiscard]] Expression *Key() noexcept
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | objectExpression.cpp | 105 return {"Duplicate __proto__ fields are not allowed in object literals", prop->Key()->Start()}; in ValidateExpression() 289 if (!util::Helpers::IsConstantPropertyKey(prop->Key(), prop->IsComputed()) || in CompileStaticProperties() 295 util::StringView name = util::Helpers::LiteralToPropName(pg->Allocator(), prop->Key()); in CompileStaticProperties() 337 compiler::VReg key = pg->LoadPropertyKey(prop->Key(), prop->IsComputed()); in CompilePropertyOfGetterOrSetter() 363 compiler::Operand key = pg->ToPropertyKey(prop->Key(), prop->IsComputed()); in CompilePropertyWithInit() 376 nameSetting = IsAnonClassOrFuncExpr(value) && IsLegalNameFormat(prop->Key()); in CompilePropertyWithInit() 487 binder::LocalVariable *foundVar = desc->FindProperty(prop->Key()->AsIdentifier()->Name()); in CheckPattern() 584 checker->Allocator(), prop->Key()->AsIdentifier()->Name(), binder::VariableFlags::PROPERTY, *it); in CheckPattern() 643 return prop->Key()->Check(checker); in GetTypeForProperty() 666 checker::Type *computedNameType = checker->CheckComputedPropertyName(prop->Key()); in Check() [all...] |