/arkcompiler/ets_runtime/test/moduletest/objectkeys/ |
H A D | objectkeys.js | 18 * @tc.desc:test object keys 28 let k = Object.keys(a); 31 k = Object.keys(a); 37 let k = Object.keys(a); 50 print(Object.keys(obj)); 57 print(Object.keys(obj)); 58 print(Object.keys(obj[0])); 59 print(Object.keys(obj[1000000])); 74 print(Object.keys(o)); 75 print(Object.keys(o [all...] |
/arkcompiler/runtime_core/static_core/verification/config/handlers/ |
H A D | config_handler_options.cpp | 45 PandaString keys; in GetKeys() local 47 if (keys.empty()) { in GetKeys() 48 keys += "'"; in GetKeys() 49 keys += p.first; in GetKeys() 50 keys += "'"; in GetKeys() 52 keys += ", '"; in GetKeys() 53 keys += p.first; in GetKeys() 54 keys += "'"; in GetKeys() 57 return keys; in GetKeys()
|
/arkcompiler/ets_frontend/es2panda/lexer/scripts/ |
H A D | keywords.rb | 188 def collect_functions(functions, keys) 194 keys.each do |key| 221 collect_functions(functions, group.keys)
|
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
H A D | clang_tidy_check.py | 37 '--full', action="store_true", help='Check all files with all compile keys.') 348 for file_path, keys in file_list: 350 filtered.append((file_path, keys)) 354 filtered.append((file_path, keys)) 358 filtered.append((file_path, keys)) 366 for file_path, keys in file_list: 376 # Remove same files if their compile keys has minor differents. 380 for file_path, keys in file_list: 382 filtered.append((file_path, keys)) 385 if not regexp.search(keys) [all...] |
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/ |
H A D | run_benchmark.py | 78 keys = sizes[0].keys() 79 avgs = dict.fromkeys(keys, 0) 80 mins = dict.fromkeys(keys, 99999999) 81 maxs = dict.fromkeys(keys, 0) 83 for k in keys:
|
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/benchmark/ |
H A D | run_benchmark.py | 80 keys = sizes[0].keys() 81 avgs = dict.fromkeys(keys, 0) 82 mins = dict.fromkeys(keys, sys.maxsize) 83 maxs = dict.fromkeys(keys, 0) 85 for k in keys:
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/mirrors/ |
H A D | object.py | 58 if vars(self).keys() != vars(other).keys(): 74 return reduce(operator.xor, [hash(k) for k in vars(self).keys()]) ^ hash(type(self).__name__) 90 t = mirror_object_type(cls_name, **dict.fromkeys(kwargs.keys()))
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_proxy_test.cpp | 96 JSHandle<TaggedArray> keys = JSObject::GetOwnPropertyKeys(thread, resultHandle); in HWTEST_F_L0() local 99 for (uint32_t i = 0; i < keys->GetLength(); i++) { in HWTEST_F_L0() 100 if (JSTaggedValue::SameValue(keys->Get(i), proxyKey.GetTaggedValue())) { in HWTEST_F_L0() 103 if (JSTaggedValue::SameValue(keys->Get(i), revokeKey.GetTaggedValue())) { in HWTEST_F_L0()
|
H A D | builtins_array_test.cpp | 237 std::vector<JSHandle<JSTaggedValue>> keys; in DefineOwnPropertyCommonTest() local 239 keys.push_back(JSHandle<JSTaggedValue>(thread, JSTaggedValue(static_cast<int>(i)))); in DefineOwnPropertyCommonTest() 241 JSArray::DefineOwnProperty(thread, obj, keys[i], desc0); in DefineOwnPropertyCommonTest() 243 return keys; in DefineOwnPropertyCommonTest() 250 std::vector<JSHandle<JSTaggedValue>> keys; in DefineOwnPropertyCommonTest() local 252 keys.push_back(JSHandle<JSTaggedValue>(thread, JSTaggedValue(static_cast<int>(i)))); in DefineOwnPropertyCommonTest() 254 JSArray::DefineOwnProperty(thread, jsObj, keys[i], desc0); in DefineOwnPropertyCommonTest() 256 return keys; in DefineOwnPropertyCommonTest() 260 std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) in CheckKeyValueCommon() 263 JSObject::GetOwnProperty(thread, valueHandle, keys[ in CheckKeyValueCommon() 259 CheckKeyValueCommon(JSThread* thread, JSHandle<JSObject>& valueHandle, PropertyDescriptor& descRes, std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) CheckKeyValueCommon() argument 278 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 380 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 418 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 451 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 482 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 516 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 547 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 583 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 613 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 647 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 719 auto keys = DefineOwnPropertyCommonTest(thread, obj, vals); HWTEST_F_L0() local 749 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 780 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1068 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1097 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1122 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1170 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1196 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1223 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1253 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1276 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1299 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1421 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1455 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1523 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1555 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1584 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1619 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1652 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local 1681 auto keys = DefineOwnPropertyCommonTest(thread, obj, descVals); HWTEST_F_L0() local [all...] |
H A D | builtins_shared_array_test.cpp | 227 std::vector<JSHandle<JSTaggedValue>> keys; in SharedArrayDefineOwnPropertyTest() local 229 keys.push_back(JSHandle<JSTaggedValue>(thread, JSTaggedValue(static_cast<int>(i)))); in SharedArrayDefineOwnPropertyTest() 231 JSArray::DefineOwnProperty(thread, obj, keys[i], desc0); in SharedArrayDefineOwnPropertyTest() 233 return keys; in SharedArrayDefineOwnPropertyTest() 240 std::vector<JSHandle<JSTaggedValue>> keys; in SharedArrayDefineOwnPropertyTest() local 242 keys.push_back(JSHandle<JSTaggedValue>(thread, JSTaggedValue(static_cast<int>(i)))); in SharedArrayDefineOwnPropertyTest() 244 JSArray::DefineOwnProperty(thread, jsObj, keys[i], desc0); in SharedArrayDefineOwnPropertyTest() 246 return keys; in SharedArrayDefineOwnPropertyTest() 250 std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) in SharedArrayCheckKeyValueCommon() 253 JSObject::GetOwnProperty(thread, valueHandle, keys[ in SharedArrayCheckKeyValueCommon() 249 SharedArrayCheckKeyValueCommon(JSThread* thread, JSHandle<JSObject>& valueHandle, PropertyDescriptor& descRes, std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) SharedArrayCheckKeyValueCommon() argument 269 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 314 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 359 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 395 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 427 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 465 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 500 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, vals); HWTEST_F_L0() local 532 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 565 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 862 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 889 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 912 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 983 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1017 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1041 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1065 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1111 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1148 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1188 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1349 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1371 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1449 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1486 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1566 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local 1620 auto keys = SharedArrayDefineOwnPropertyTest(thread, obj, descVals); HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | class_info_extractor.h | 26 // ClassInfoExtractor will analyze and extract the contents from class literal to keys, properties and elements(both 27 // non-static and static), later generate the complete hclass (both prototype and constructor) based on keys. 28 // Attention: keys accessor stores the property key and properties accessor stores the property value, but elements 67 JSHandle<TaggedArray> &keys, 71 JSHandle<TaggedArray> &keys, 73 static JSHandle<JSHClass> CreateSendableHClass(JSThread *thread, JSHandle<TaggedArray> &keys, 104 JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties, 127 JSHandle<TaggedArray> &keys, 153 static void FilterDuplicatedKeys(JSThread *thread, const JSHandle<TaggedArray> &keys, 189 JSHandle<TaggedArray> &keys, [all...] |
H A D | class_info_extractor.cpp | 125 JSHandle<TaggedArray> &keys, in ExtractAndReturnWhetherWithElements() 132 ASSERT(keys->GetLength() == properties->GetLength() && elements->GetLength() == 0); in ExtractAndReturnWhetherWithElements() 168 keys->Set(thread, pos, firstValue); in ExtractAndReturnWhetherWithElements() 183 uint32_t trimOneLength = keys->GetLength() - 1; in ExtractAndReturnWhetherWithElements() 184 keys->Trim(thread, trimOneLength); in ExtractAndReturnWhetherWithElements() 191 keys->Trim(thread, pos); in ExtractAndReturnWhetherWithElements() 199 JSHandle<TaggedArray> &keys, in CreatePrototypeHClass() 204 uint32_t length = keys->GetLength(); in CreatePrototypeHClass() 210 key.Update(keys->Get(index)); in CreatePrototypeHClass() 241 JSHandle<TaggedArray> &keys, in CreateConstructorHClass() 123 ExtractAndReturnWhetherWithElements(JSThread *thread, const JSHandle<TaggedArray> &literal, const ExtractContentsDetail &detail, JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties, JSHandle<TaggedArray> &elements, const JSPandaFile *jsPandaFile) ExtractAndReturnWhetherWithElements() argument 198 CreatePrototypeHClass(JSThread *thread, JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties) CreatePrototypeHClass() argument 240 CreateConstructorHClass(JSThread *thread, const JSHandle<JSTaggedValue> &base, JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties) CreateConstructorHClass() argument 340 CreateSendableHClass(JSThread *thread, JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties, bool isProtoClass, uint32_t extraLength) CreateSendableHClass() argument 597 BuildDictionaryProperties(JSThread *thread, const JSHandle<JSObject> &object, JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties, ClassPropertyType type, const JSHandle<JSTaggedValue> &lexenv) BuildDictionaryProperties() argument 836 FilterDuplicatedKeys(JSThread *thread, const JSHandle<TaggedArray> &keys, const JSHandle<TaggedArray> &properties) FilterDuplicatedKeys() argument 879 BuildSendableDictionaryProperties(JSThread *thread, const JSHandle<JSObject> &object, JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties, ClassPropertyType type, const JSHandle<JSFunction> &ctor) BuildSendableDictionaryProperties() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | containers_lightweightmap_stub_builder.h | 39 GateRef keys = Load(VariableType::JS_POINTER(), obj, keysOffset);
in GetKey() local 40 return GetValueFromTaggedArray(keys, index);
in GetKey()
|
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/ |
H A D | spreadoperator.js | 23 var arr1 = [...Array(16).keys()];
39 var arr4 = [...set1.keys()];
53 var arr6 = [...map1.keys()];
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/ts_to_sts/ |
H A D | generic_call_params.js | 109 function genericKeyof(obj, keys) { 112 keys: keys,
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_for_in_iterator.cpp | 87 TaggedArray *keys = TaggedArray::Cast(taggedKeys.GetTaggedObject()); in NextInternal() local 89 JSTaggedValue key = keys->Get(index); in NextInternal() 96 JSTaggedValue key = keys->Get(index); in NextInternal()
|
H A D | layout_info.cpp | 137 uint32_t *keys, JSHandle<TaggedQueue> shadowQueue, const JSHandle<JSObject> object, in GetAllEnumKeys() 164 *keys += enumKeys; in GetAllEnumKeys() 168 uint32_t *keys, const JSHandle<JSObject> object) in GetAllEnumKeys() 185 *keys += enumKeys; in GetAllEnumKeys() 136 GetAllEnumKeys(JSThread *thread, int end, int offset, JSHandle<TaggedArray> keyArray, uint32_t *keys, JSHandle<TaggedQueue> shadowQueue, const JSHandle<JSObject> object, int32_t lastLength) GetAllEnumKeys() argument 167 GetAllEnumKeys(JSThread *thread, int end, int offset, JSHandle<TaggedArray> keyArray, uint32_t *keys, const JSHandle<JSObject> object) GetAllEnumKeys() argument
|
H A D | builtin_entries.h | 160 std::vector<std::string> keys; variable 162 keys.emplace_back(it.first); 164 return keys;
|
/arkcompiler/ets_runtime/test/moduletest/createobject/ |
H A D | createobject.js | 46 Object.keys(originObject).forEach(
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
H A D | report.py | 118 tests1, tests2 = set(results1.keys()), set(results2.keys()) 387 libs = aot_stats.keys() 392 set().union(*[set(x.keys()) for x in passes.values()])) 408 for lib in set(r1.keys()).intersection(set(r2.keys())): 435 opts1 = set(passes1.keys()) 436 opts2 = set(passes2.keys()) 447 for lib in set(opt1.keys()).intersection(set(opt2.keys())) [all...] |
/arkcompiler/ets_frontend/arkguard/scripts/ |
H A D | combination_test.py | 158 sub_keys = value.keys() 182 keys = list(configs.keys()) 183 self.combine({}, keys, configs, result)
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | layout_info_test.cpp | 140 uint32_t keys = 0; in GetAllKeysCommon() local 141 layoutInfoHandle->GetAllEnumKeys(thread, infoLength, 0, keyArray, &keys, objectHandle); // 0: offset in GetAllKeysCommon() 143 EXPECT_EQ(keys, 1U); in GetAllKeysCommon()
|
/arkcompiler/ets_runtime/test/moduletest/container/ |
H A D | utility.js | 16 // test keys: true 17 let iteratorKey1 = proxy.keys(); 18 res.set("test keys:", iteratorKey1.next().value == "a" && iteratorKey1.next().value == "b" && 58 // test keys: true 59 let iteratorKey = map.keys(); 60 res.set("test keys:", iteratorKey.next().value == "a" && iteratorKey.next().value == "b" &&
|
/arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/lib/ |
H A D | summary.rb | 137 # delete specified keys from hash 138 def except(hash, keys) 140 keys.each { |key| x.delete(key) }
|
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/ |
H A D | summary.rb | 137 # delete specified keys from hash 138 def except(hash, keys) 140 keys.each { |key| x.delete(key) }
|