Home
last modified time | relevance | path

Searched refs:dict (Results 1 - 25 of 71) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/tests/
H A Dtagged_dictionary_test.cpp80 JSHandle<NameDictionary> dict(NameDictionary::PutIfAbsent(thread, dictHandle, key1, value1, metaData1)); in HWTEST_F_L0()
81 dictHandle.Update(dict.GetTaggedValue()); in HWTEST_F_L0()
82 EXPECT_EQ(dict->EntriesCount(), 1); in HWTEST_F_L0()
85 int entry1 = dict->FindEntry(key1.GetTaggedValue()); in HWTEST_F_L0()
86 EXPECT_EQ(key1.GetTaggedValue(), JSTaggedValue(dict->GetKey(entry1).GetRawData())); in HWTEST_F_L0()
87 EXPECT_EQ(value1.GetTaggedValue(), JSTaggedValue(dict->GetValue(entry1).GetRawData())); in HWTEST_F_L0()
92 dict = NameDictionary::Remove(thread, dictHandle, entry1); in HWTEST_F_L0()
93 EXPECT_EQ(-1, dict->FindEntry(key1.GetTaggedValue())); in HWTEST_F_L0()
94 EXPECT_EQ(dict->EntriesCount(), 1); in HWTEST_F_L0()
211 JSHandle<NumberDictionary> dict in HWTEST_F_L0() local
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Djs_hclass-inl.h56 JSMutableHandle<TransitionsDictionary> dict(thread, JSTaggedValue::Undefined()); in AddTransitions()
66 dict.Update(TransitionsDictionary::Create(thread)); in AddTransitions()
67 transitions = TransitionsDictionary::PutIfAbsent(thread, dict, lastKey, lastHClass, in AddTransitions()
72 dict.Update(transitions); in AddTransitions()
73 transitions = TransitionsDictionary::PutIfAbsent(thread, dict, key, JSHandle<JSTaggedValue>(child), in AddTransitions()
92 JSMutableHandle<TransitionsDictionary> dict(thread, JSTaggedValue::Undefined()); in AddProtoTransitions()
104 dict.Update(TransitionsDictionary::Create(thread)); in AddProtoTransitions()
105 transitions = TransitionsDictionary::PutIfAbsent(thread, dict, lastKey, lastHClass, in AddProtoTransitions()
109 dict.Update(transitions); in AddProtoTransitions()
111 TransitionsDictionary::PutIfAbsent(thread, dict, ke in AddProtoTransitions()
139 TransitionsDictionary *dict = TransitionsDictionary::Cast(transitions.GetTaggedObject()); FindTransitions() local
162 TransitionsDictionary *dict = TransitionsDictionary::Cast(transitions.GetTaggedObject()); FindProtoTransitions() local
[all...]
H A Dobject_operator.cpp518 GlobalDictionary *dict = GlobalDictionary::Cast(array); in LookupGlobal() local
519 int entry = dict->FindEntry(key_.GetTaggedValue()); in LookupGlobal()
523 JSTaggedValue value(dict->GetBox(entry)); in LookupGlobal()
524 auto attr = dict->GetAttributes(entry).GetValue(); in LookupGlobal()
546 GlobalDictionary *dict = GlobalDictionary::Cast(array); in LookupPropertyInlinedProps() local
547 int entry = dict->FindEntry(key_.GetTaggedValue()); in LookupPropertyInlinedProps()
552 JSTaggedValue value(dict->GetBox(entry)); in LookupPropertyInlinedProps()
553 auto attr = dict->GetAttributes(entry).GetValue(); in LookupPropertyInlinedProps()
587 NameDictionary *dict = NameDictionary::Cast(array); in LookupPropertyInlinedProps() local
588 int entry = dict in LookupPropertyInlinedProps()
605 auto dict = NumberDictionary::Cast(receiver->GetElements().GetTaggedObject()); TransitionForAttributeChanged() local
611 auto dict = NumberDictionary::Cast(receiver->GetElements().GetTaggedObject()); TransitionForAttributeChanged() local
632 auto dict = NameDictionary::Cast(receiver->GetProperties().GetTaggedObject()); TransitionForAttributeChanged() local
695 NumberDictionary *dict = NumberDictionary::Cast(elements); UpdateDataValue() local
702 auto *dict = GlobalDictionary::Cast(receiver->GetProperties().GetTaggedObject()); UpdateDataValue() local
[all...]
H A Dobject_fast_operator-inl.h113 NameDictionary *dict = NameDictionary::Cast(array); in HasOwnProperty() variable
114 int entry = dict->FindEntry(key); in HasOwnProperty()
316 NameDictionary *dict = NameDictionary::Cast(array); in GetPropertyByName() local
317 int entry = dict->FindEntry(key); in GetPropertyByName()
319 auto value = dict->GetValue(entry); in GetPropertyByName()
320 auto attr = dict->GetAttributes(entry); in GetPropertyByName()
497 NameDictionary *dict = NameDictionary::Cast(properties); in SetPropertyByName() local
498 int entry = dict->FindEntry(key); in SetPropertyByName()
500 auto attr = dict->GetAttributes(entry); in SetPropertyByName()
505 auto accessor = dict in SetPropertyByName()
610 NumberDictionary *dict = NumberDictionary::Cast(elements); GetPropertyByIndex() local
683 NumberDictionary *dict = NumberDictionary::Cast(elements); SetPropertyByIndex() local
1251 NameDictionary *dict = NameDictionary::Cast(properties); FastGetPropertyByPorpsIndex() local
[all...]
H A Djs_object.cpp180 JSMutableHandle<NameDictionary> dict( in TransitionToDictionary()
205 JSHandle<NameDictionary> newDict = NameDictionary::PutIfAbsent(thread, dict, keyHandle, valueHandle, attr); in TransitionToDictionary()
206 dict.Update(newDict); in TransitionToDictionary()
209 receiver->SetProperties(thread, dict); in TransitionToDictionary()
218 return dict; in TransitionToDictionary()
230 JSMutableHandle<NumberDictionary> dict(thread, NumberDictionary::Create(thread)); in ElementsToDictionary()
241 JSHandle<NumberDictionary> newDict = NumberDictionary::PutIfAbsent(thread, dict, key, valueHandle, attr); in ElementsToDictionary()
242 dict.Update(newDict); in ElementsToDictionary()
244 obj->SetElements(thread, dict); in ElementsToDictionary()
347 JSMutableHandle<ecmascript::NameDictionary> dict( in SetSProperties()
496 GlobalDictionary *dict = GlobalDictionary::Cast(array); GetAllKeys() local
500 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); GetAllKeys() local
520 GlobalDictionary *dict = GlobalDictionary::Cast(array); GetAllKeysByFilter() local
524 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); GetAllKeysByFilter() local
541 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); GetAllKeysForSerialization() local
552 GlobalDictionary *dict = GlobalDictionary::Cast(obj->GetProperties().GetTaggedObject()); GetAllEnumKeys() local
584 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); GetAllEnumKeys() local
604 GlobalDictionary *dict = GlobalDictionary::Cast(obj->GetProperties().GetTaggedObject()); GetAllEnumKeys() local
609 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); GetAllEnumKeys() local
692 JSHandle<NumberDictionary> dict = JSHandle<NumberDictionary>::Cast(elements); GetALLElementKeysIntoVector() local
787 GlobalDictionary *dict = GlobalDictionary::Cast(array); GetNumberOfEnumKeys() local
791 NameDictionary *dict = NameDictionary::Cast(GetProperties().GetTaggedObject()); GetNumberOfEnumKeys() local
1137 auto dict = GlobalDictionary::Cast(GetProperties().GetTaggedObject()); GetGlobalPropertyBox() local
1672 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); CollectEnumKeysAlongProtoChain() local
1900 auto dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); FreezeSharedObject() local
2837 NameDictionary *dict = NameDictionary::Cast(GetProperties().GetTaggedObject()); UpdatePropertyInDictionary() local
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/compiler_verification/
H A Dast.py29 AstNode = dict[str, Any]
76 if isinstance(ast_node, dict):
84 def _imports_trigger_cctor(x: dict) -> bool:
88 if isinstance(ast_node, dict):
96 _remove_cctor_call(x) for x in ast_node if not (isinstance(x, dict) and _imports_trigger_cctor(x))
122 if isinstance(ast_node, dict):
143 if isinstance(ast, dict):
173 def _get_import_statements_sources_filter(imports_replacement_map: dict[str, str]) -> Callable[[AstNode], AstNode]:
179 if not isinstance(source_node, dict):
209 expected_local_name_to_specifier: dict[st
[all...]
H A Dexpression_verifier.py38 ) -> dict[str, Any]:
44 def load(path: Path) -> dict[str, Any]:
78 if not isinstance(eval_options, dict):
/arkcompiler/ets_frontend/test/scripts/performance_test/
H A Dperformance_config.py76 application_configs = dict(
79 "FTB", dict
86 "FDY", dict
93 "FWX", dict
100 "HelloWorld", dict
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Dclass_info_extractor.cpp421 JSHandle<NameDictionary> dict = BuildDictionaryProperties(thread, prototype, nonStaticKeys, nonStaticProperties, in DefineClassFromExtractor() local
423 prototype->SetProperties(thread, dict); in DefineClassFromExtractor()
446 JSHandle<NameDictionary> dict = BuildDictionaryProperties(thread, JSHandle<JSObject>(constructor), staticKeys, in DefineClassFromExtractor() local
448 constructor->SetProperties(thread, dict); in DefineClassFromExtractor()
527 JSHandle<NameDictionary> dict = BuildDictionaryProperties(thread, prototype, nonStaticKeys, nonStaticProperties, in DefineClassWithIHClass() local
529 prototype->SetProperties(thread, dict); in DefineClassWithIHClass()
559 JSHandle<NameDictionary> dict = BuildDictionaryProperties(thread, JSHandle<JSObject>(constructor), staticKeys, in DefineClassWithIHClass() local
561 constructor->SetProperties(thread, dict); in DefineClassWithIHClass()
607 JSMutableHandle<NameDictionary> dict( in BuildDictionaryProperties()
642 JSHandle<NameDictionary> newDict = NameDictionary::PutIfAbsent(thread, dict, propKe in BuildDictionaryProperties()
786 JSHandle<NameDictionary> dict = BuildSendableDictionaryProperties(thread, prototype, nonStaticKeys, DefineSendableClassFromExtractor() local
812 JSHandle<NameDictionary> dict = DefineSendableClassFromExtractor() local
929 AddFieldTypeToDict(JSThread *thread, const JSHandle<TaggedArray> &fieldTypeArray, uint32_t length, JSMutableHandle<NameDictionary> &dict, PropertyAttributes attributes) AddFieldTypeToDict() argument
1032 JSHandle<NameDictionary> dict = DefineSendableInstanceHClass() local
1055 JSHandle<NameDictionary> dict = DefineSendableInstanceHClass() local
1073 JSHandle<NameDictionary> dict = DefineSendableInstanceHClass() local
[all...]
/arkcompiler/runtime_core/scripts/
H A Dgc_pause_stats.py30 def sort_one_gc_stat(stats: dict, gc_type: str) -> list:
39 def sort_gc_stats(stats: dict) -> list:
49 def save_pause_stats(gc_log_path: str, file_name: str, stats: dict) -> None:
98 def update_stats(stats: dict, gc_type: str, time_value: float):
135 def update_group_stats(gc_pause_stats: dict, gc_type: str, full_gc_type: str, time_v: float):
142 def process_one_log(gc_log_path: str, result_file_path: str, all_stats: dict) -> None:
H A Drun_check_atomic_format.py48 atomic_comments = dict()
49 atomic_operations = dict()
95 def process_results(atomic_comments: dict, atomic_operations: dict) -> int:
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Drunnable_module.py51 def __init__(self, source_file: Path, panda_file: Path, ast: dict[str, Any] | None = None) -> None:
56 self._ast: dict[str, Any] | None = ast
60 def ast(self) -> dict[str, Any]:
66 def ast(self, new_ast: dict[str, Any]):
H A Dcompiler.py41 ) -> dict[str, Any]:
157 def parser(compiler_output: str) -> dict[str, Any]:
199 ast: dict[str, Any] | None = None
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/
H A Dsupported_types.py285 def is_method_supported(function: dict) -> bool:
300 def need_to_gen(function: dict) -> bool:
H A Dfile_tools.py22 def print_to_yaml(yaml_path: str, data_yaml: dict) -> None:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/
H A Dutil_astchecker.py43 checks: dict, line: int, col: int, error_file: str = '') -> None:
92 def check_properties(node: dict, properties: dict) -> bool:
94 Checks if `node` contains all key:value pairs specified in `properties` dict argument
231 def find_nodes_by_start_location(self, root: dict, line: int, col: int) -> List[dict]:
242 if isinstance(child, dict):
250 def run_node_test(self, test: _TestCase, ast: dict) -> bool:
259 def run_tests(self, test_file: str, tests: List[_TestCase], ast: dict, error: str = '') -> bool:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
H A Dchapters.py59 if not yaml_header or not isinstance(yaml_header, dict):
65 if not isinstance(yaml_chapter, dict):
78 def __parse_item(includes: List[str], excludes: List[str], yaml_item: Union[str, dict]) -> None:
81 elif isinstance(yaml_item, dict):
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
H A Dmetainformation.py86 if isinstance(data, dict):
88 test.assertTrue(isinstance(data, dict), "Invalid data format")
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/
H A Dspec_node.py50 def to_dict(self) -> dict:
51 ret: dict = {
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/
H A Dyaml_document.py67 if current and isinstance(current, dict) and part in current.keys():
93 if current_value and isinstance(current_value, dict) and parent_value and isinstance(parent_value, dict):
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
H A Drun_benchmark.py79 avgs = dict.fromkeys(keys, 0)
80 mins = dict.fromkeys(keys, 99999999)
81 maxs = dict.fromkeys(keys, 0)
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/benchmark/
H A Drun_benchmark.py81 avgs = dict.fromkeys(keys, 0)
82 mins = dict.fromkeys(keys, sys.maxsize)
83 maxs = dict.fromkeys(keys, 0)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/mirrors/
H A Dobject.py30 def __new__(mcls, name: str, bases: Tuple[Type], namespace: dict[str, Any], **kwargs: Any):
90 t = mirror_object_type(cls_name, **dict.fromkeys(kwargs.keys()))
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/sampler/
H A Dsampler_module_file_check.py29 _checksum_name_map: dict
34 self._checksum_name_map = dict()
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/tools/
H A Des2panda.py45 paths: dict = {}
46 dynamic_paths: dict = {}

Completed in 18 milliseconds

123