Home
last modified time | relevance | path

Searched refs:dict (Results 1 – 25 of 31) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
Djs_hclass-inl.h42 JSMutableHandle<TransitionsDictionary> dict(thread, JSTaggedValue::Undefined()); in AddTransitions()
50 dict.Update(TransitionsDictionary::Create(thread)); in AddTransitions()
51 …transitions = TransitionsDictionary::PutIfAbsent(thread, dict, lastKey, lastHClass, attr).GetTagge… in AddTransitions()
54 dict.Update(transitions); in AddTransitions()
56 …TransitionsDictionary::PutIfAbsent(thread, dict, key, JSHandle<JSTaggedValue>(child), attr).GetTag… in AddTransitions()
72 JSMutableHandle<TransitionsDictionary> dict(thread, JSTaggedValue::Undefined()); in AddProtoTransitions()
82 dict.Update(TransitionsDictionary::Create(thread)); in AddProtoTransitions()
83 …transitions = TransitionsDictionary::PutIfAbsent(thread, dict, lastKey, lastHClass, attr).GetTagge… in AddProtoTransitions()
86 dict.Update(transitions); in AddProtoTransitions()
88 …TransitionsDictionary::PutIfAbsent(thread, dict, key, JSHandle<JSTaggedValue>(child), proto).GetTa… in AddProtoTransitions()
[all …]
Dobject_operator.cpp310 GlobalDictionary *dict = GlobalDictionary::Cast(array); in LookupGlobal() local
311 int entry = dict->FindEntry(key_.GetTaggedValue()); in LookupGlobal()
315 JSTaggedValue value(dict->GetBox(entry)); in LookupGlobal()
316 uint32_t attr = dict->GetAttributes(entry).GetValue(); in LookupGlobal()
338 GlobalDictionary *dict = GlobalDictionary::Cast(array); in LookupPropertyInlinedProps() local
339 int entry = dict->FindEntry(key_.GetTaggedValue()); in LookupPropertyInlinedProps()
344 JSTaggedValue value(dict->GetBox(entry)); in LookupPropertyInlinedProps()
345 uint32_t attr = dict->GetAttributes(entry).GetValue(); in LookupPropertyInlinedProps()
379 NameDictionary *dict = NameDictionary::Cast(array); in LookupPropertyInlinedProps() local
380 int entry = dict->FindEntry(key_.GetTaggedValue()); in LookupPropertyInlinedProps()
[all …]
Dobject_fast_operator-inl.h90 NameDictionary *dict = NameDictionary::Cast(array); in GetPropertyByName() local
91 int entry = dict->FindEntry(key); in GetPropertyByName()
93 auto value = dict->GetValue(entry); in GetPropertyByName()
94 auto attr = dict->GetAttributes(entry); in GetPropertyByName()
176 NameDictionary *dict = NameDictionary::Cast(properties); in SetPropertyByName() local
177 int entry = dict->FindEntry(key); in SetPropertyByName()
179 auto attr = dict->GetAttributes(entry); in SetPropertyByName()
181 auto accessor = dict->GetValue(entry); in SetPropertyByName()
193 dict->UpdateValue(thread, entry, value); in SetPropertyByName()
257 NumberDictionary *dict = NumberDictionary::Cast(elements); in GetPropertyByIndex() local
[all …]
Djs_object.cpp155 JSMutableHandle<NameDictionary> dict( in TransitionToDictionary() local
180 …JSHandle<NameDictionary> newDict = NameDictionary::PutIfAbsent(thread, dict, keyHandle, valueHandl… in TransitionToDictionary()
181 dict.Update(newDict); in TransitionToDictionary()
184 receiver->SetProperties(thread, dict); in TransitionToDictionary()
196 return dict; in TransitionToDictionary()
204 JSMutableHandle<NumberDictionary> dict(thread, NumberDictionary::Create(thread)); in ElementsToDictionary() local
215 …JSHandle<NumberDictionary> newDict = NumberDictionary::PutIfAbsent(thread, dict, key, valueHandle,… in ElementsToDictionary()
216 dict.Update(newDict); in ElementsToDictionary()
218 obj->SetElements(thread, dict); in ElementsToDictionary()
272 JSHandle<NumberDictionary> dict(thread, receiver->GetElements()); in AddElementInternal() local
[all …]
Dtagged_hash_table.h404 JSHandle<Derived> dict = HashTableT::Create(thread, numberOfElements);
405 dict->SetNextEnumerationIndex(thread, PropertyAttributes::INITIAL_PROPERTY_INDEX);
406 return dict;
/arkcompiler/ets_runtime/ecmascript/tests/
Dtagged_dictionary_test.cpp104 …JSHandle<NameDictionary> dict(NameDictionary::PutIfAbsent(thread, dictHandle, key1, value1, metaDa… in HWTEST_F_L0() local
105 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0()
106 EXPECT_EQ(dict->EntriesCount(), 1); in HWTEST_F_L0()
109 int entry1 = dict->FindEntry(key1.GetTaggedValue()); in HWTEST_F_L0()
110 EXPECT_EQ(key1.GetTaggedValue(), JSTaggedValue(dict->GetKey(entry1).GetRawData())); in HWTEST_F_L0()
111 EXPECT_EQ(value1.GetTaggedValue(), JSTaggedValue(dict->GetValue(entry1).GetRawData())); in HWTEST_F_L0()
116 dict = NameDictionary::Remove(thread, dictHandle, entry1); in HWTEST_F_L0()
117 EXPECT_EQ(-1, dict->FindEntry(key1.GetTaggedValue())); in HWTEST_F_L0()
118 EXPECT_EQ(dict->EntriesCount(), 1); in HWTEST_F_L0()
234 …JSHandle<NumberDictionary> dict = NumberDictionary::PutIfAbsent(thread, dictHandle, key1, value1, … in HWTEST_F_L0() local
[all …]
Dglobal_dictionary_test.cpp231 JSHandle<GlobalDictionary> dict(GlobalDictionary::PutIfAbsent(thread, dictHandle, in HWTEST_F_L0() local
233 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0()
278 JSHandle<GlobalDictionary> dict(GlobalDictionary::PutIfAbsent(thread, dictHandle, in HWTEST_F_L0() local
280 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0()
Dlinked_hash_table_test.cpp68 JSHandle<LinkedHashMap> dict = LinkedHashMap::Create(thread, numOfElement); in HWTEST_F_L0() local
69 EXPECT_TRUE(*dict != nullptr); in HWTEST_F_L0()
/arkcompiler/ets_frontend/test/scripts/performance_test/
Dperformance_config.py69 application_configs = dict(
72 "FTB", dict
78 "FDY", dict
84 "FWX", dict
90 "HelloWorld", dict
Dreadme_zh.md39 application_configs = dict(
42 "FTB", dict
48 "FDY", dict
54 "FWX", dict
60 "HelloWorld", dict
Dreadme.md39 application_configs = dict(
42 "FTB", dict
48 "FDY", dict
54 "FWX", dict
60 "HelloWorld", dict
/arkcompiler/runtime_core/scripts/
Drun_check_atomic_format.py48 atomic_comments = dict()
49 atomic_operations = dict()
95 def process_results(atomic_comments: dict, atomic_operations: dict) -> int: argument
Dgc_pause_stats.py30 def sort_one_gc_stat(stats: dict, gc_type: str) -> list: argument
39 def sort_gc_stats(stats: dict) -> list: argument
49 def save_pause_stats(gc_log_path: str, file_name: str, stats: dict) -> None: argument
98 def update_stats(stats: dict, gc_type: str, time_value: float): argument
135 def update_group_stats(gc_pause_stats: dict, gc_type: str, full_gc_type: str, time_v: float): argument
142 def process_one_log(gc_log_path: str, result_file_path: str, all_stats: dict) -> None: argument
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp188 NameDictionary *dict = NameDictionary::Cast(properties); in GetValueFromExportObject() local
189 value = dict->GetValue(index); in GetValueFromExportObject()
320 NameDictionary *dict = NameDictionary::Cast(resolvedModules_.GetTaggedObject()); in HostGetImportedModule() local
321 int entry = dict->FindEntry(referencing); in HostGetImportedModule()
324 JSTaggedValue result = dict->GetValue(entry); in HostGetImportedModule()
333 NameDictionary *dict = NameDictionary::Cast(resolvedModules_.GetTaggedObject()); in HostGetImportedModule() local
334 int entry = dict->FindEntry(strData, strlen(str)); in HostGetImportedModule()
336 JSTaggedValue result = dict->GetValue(entry); in HostGetImportedModule()
376 NameDictionary *dict = NameDictionary::Cast(resolvedModules_.GetTaggedObject()); in HostResolveImportedModuleWithMerge() local
377 int entry = dict->FindEntry(recordNameHandle.GetTaggedValue()); in HostResolveImportedModuleWithMerge()
[all …]
Djs_module_deregister.cpp93 JSHandle<NameDictionary> dict(thread, moduleManager->resolvedModules_.GetTaggedObject()); in RemoveModule() local
94 int entry = dict->FindEntry(moduleRecordName); in RemoveModule()
98 moduleManager->resolvedModules_ = NameDictionary::Remove(thread, dict, entry).GetTaggedValue(); in RemoveModule()
Djs_module_source_text.cpp183 NameDictionary *dict = NameDictionary::Cast(properties); in ResolveExportObject() local
184 int entry = dict->FindEntry(exportName.GetTaggedValue()); in ResolveExportObject()
1190 NameDictionary *dict = NameDictionary::Cast(dictionary.GetTaggedObject()); in GetModuleValue() local
1191 int entry = dict->FindEntry(key); in GetModuleValue()
1193 return dict->GetValue(entry); in GetModuleValue()
1212 NameDictionary *dict = NameDictionary::Cast(dictionary.GetTaggedObject()); in FindByExport() local
1221 int entry = dict->FindEntry(localName); in FindByExport()
1223 return dict->GetValue(entry); in FindByExport()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DgenericFunctionsAndConditionalInference.ts73 dict: <P>(p: {[k in keyof P]: Result<F, P[k]>}) => Result<F, P> method
97 const orphaned = <F extends Target>(at: Ops<F>) => at.dict(ok(at))
99 AssertType(<F extends Target>(at: Ops<F>) => at.dict(ok(at)), "<F extends keyof Targets<any>>(Ops<F…
101 AssertType(at.dict(ok(at)), "Result<F, { lr: LR<F, string, number>; }>");
102 AssertType(at.dict, "<P>({ [k in keyof P]: Result<F, P[k]>; }) => Result<F, P>");
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dclass_info_extractor.cpp369 …JSHandle<NameDictionary> dict = BuildDictionaryProperties(thread, prototype, nonStaticKeys, nonSta… in DefineClassFromExtractor() local
371 prototype->SetProperties(thread, dict); in DefineClassFromExtractor()
395 …JSHandle<NameDictionary> dict = BuildDictionaryProperties(thread, JSHandle<JSObject>(constructor),… in DefineClassFromExtractor() local
397 constructor->SetProperties(thread, dict); in DefineClassFromExtractor()
456 …JSHandle<NameDictionary> dict = BuildDictionaryProperties(thread, prototype, nonStaticKeys, nonSta… in DefineClassWithIHClass() local
458 prototype->SetProperties(thread, dict); in DefineClassWithIHClass()
489 …JSHandle<NameDictionary> dict = BuildDictionaryProperties(thread, JSHandle<JSObject>(constructor),… in DefineClassWithIHClass() local
491 constructor->SetProperties(thread, dict); in DefineClassWithIHClass()
522 JSMutableHandle<NameDictionary> dict( in BuildDictionaryProperties() local
559 …JSHandle<NameDictionary> newDict = NameDictionary::PutIfAbsent(thread, dict, propKey, propValue, a… in BuildDictionaryProperties()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
Drun_benchmark.py79 avgs = dict.fromkeys(keys, 0)
80 mins = dict.fromkeys(keys, 99999999)
81 maxs = dict.fromkeys(keys, 0)
/arkcompiler/toolchain/build/compile_script/
Dark.py254 def is_dict_flags_match_arg(dict_to_match: dict, arg_to_match: str) -> bool: argument
260 …def which_dict_flags_match_arg(self, dict_including_dicts_to_match: dict, arg_to_match: str) -> st… argument
289 …def get_help_msg_of_dict(self, dict_in: dict, indentation_str_current: str, indentation_str_per_le… argument
292 if isinstance(dict_in[key], dict):
477 arg_list = list(dict.fromkeys(arg_list))
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_lazy_callback.cpp235 NameDictionary *dict = NameDictionary::Cast(array); in ITERATE_INTL() local
236 int entry = dict->FindEntry(key.GetTaggedValue()); in ITERATE_INTL()
238 auto attr = dict->GetAttributes(entry); in ITERATE_INTL()
240 dict->SetAttributes(thread, entry, attr); in ITERATE_INTL()
/arkcompiler/toolchain/build/toolchain/
Dgcc_link_wrapper.py60 fast_env = dict(os.environ)
Dgcc_solink_wrapper.py69 fast_env = dict(os.environ)
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dfast_runtime_stub-inl.h214 GlobalDictionary *dict = GlobalDictionary::Cast(properties); in GetGlobalOwnProperty() local
215 int entry = dict->FindEntry(key); in GetGlobalOwnProperty()
217 auto value = dict->GetValue(entry); in GetGlobalOwnProperty()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h694 GlobalDictionary *dict = GlobalDictionary::Cast(env->GetGlobalRecord()->GetTaggedObject()); in RuntimeStGlobalRecord() local
697 int entry = dict->FindEntry(prop.GetTaggedValue()); in RuntimeStGlobalRecord()
706 JSHandle<GlobalDictionary> dictHandle(thread, dict); in RuntimeStGlobalRecord()
713dict = *GlobalDictionary::PutIfAbsent(thread, dictHandle, prop, JSHandle<JSTaggedValue>(box), attr… in RuntimeStGlobalRecord()
715 env->SetGlobalRecord(thread, JSTaggedValue(dict)); in RuntimeStGlobalRecord()
1300 GlobalDictionary *dict = GlobalDictionary::Cast(env->GetGlobalRecord()->GetTaggedObject()); in RuntimeLdGlobalRecord() local
1301 int entry = dict->FindEntry(key); in RuntimeLdGlobalRecord()
1303 return JSTaggedValue(dict->GetBox(entry)); in RuntimeLdGlobalRecord()
1324 GlobalDictionary *dict = GlobalDictionary::Cast(env->GetGlobalRecord()->GetTaggedObject()); in RuntimeTryUpdateGlobalRecord() local
1325 int entry = dict->FindEntry(prop); in RuntimeTryUpdateGlobalRecord()
[all …]

12