/arkcompiler/ets_runtime/test/moduletest/ecmastringtable/ |
D | ecmastringtable.js | 39 let key2 = head1 + tail1; variable 63 print("key1 === key2: ", key1 === key2); 67 getOrCreateLoad(system, key2); 83 let key2 = tmp1 + tmp2; 85 let res2 = obj[key2] 92 let key2 = tmp1 + tmp2; 94 let res2 = obj[key2] 101 let key2 = tmp1 + tmp2; 103 let res2 = obj[key2] 110 let key2 = tmp1 + tmp2; [all …]
|
D | expect_output.txt | 18 key1 === key2: true
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_forin_iterator_test.cpp | 63 JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromASCII("key2")); in HWTEST_F_L0() local 70 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(father), key2, key2Value); in HWTEST_F_L0() 73 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(son), key2, key1Value); in HWTEST_F_L0() 82 EXPECT_EQ(n2.first, key2.GetTaggedValue()); in HWTEST_F_L0()
|
D | js_api_lightweightmap_test.cpp | 119 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(3)); in HWTEST_F_L0() local 121 JSAPILightWeightMap::Set(thread, lwm, key2, value2); in HWTEST_F_L0() 187 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(3)); in HWTEST_F_L0() local 189 JSAPILightWeightMap::Set(thread, lwm, key2, value2); in HWTEST_F_L0() 204 EXPECT_TRUE(JSTaggedValue::Equal(thread, result, key2)); in HWTEST_F_L0() 225 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(3)); in HWTEST_F_L0() local 227 JSAPILightWeightMap::Set(thread, lwm, key2, value2); in HWTEST_F_L0() 232 JSHandle<JSTaggedValue>(thread, JSAPILightWeightMap::Remove(thread, lwm, key2)); in HWTEST_F_L0() 257 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(3)); in HWTEST_F_L0() local 259 JSAPILightWeightMap::Set(thread, lwm, key2, value2); in HWTEST_F_L0() [all …]
|
D | js_list_format_test.cpp | 201 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 207 JSObject::SetProperty(thread, valueObj, key2, value2); in HWTEST_F_L0() 232 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 238 JSObject::SetProperty(thread, valueObj, key2, value2); in HWTEST_F_L0() 262 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 268 JSObject::SetProperty(thread, valueObj, key2, value2); in HWTEST_F_L0() 302 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 308 JSObject::SetProperty(thread, valueObj, key2, value2); in HWTEST_F_L0()
|
D | js_object_test.cpp | 133 JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromASCII("print_test")); in HWTEST_F_L0() local 134 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, in HWTEST_F_L0() 136 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key2).GetValue()->GetInt(), … in HWTEST_F_L0() 140 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key2).GetValue()->GetInt(), … in HWTEST_F_L0() 196 JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromASCII("key3")); in HWTEST_F_L0() local 218 JSObject::DefineOwnProperty(thread, obj1, key2, desc1); in HWTEST_F_L0() 219 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2, value1); in HWTEST_F_L0() 220 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key2, value1); in HWTEST_F_L0() 221 JSObject::DeleteProperty(thread, (obj1), key2); in HWTEST_F_L0() 222 JSObject::DeleteProperty(thread, (obj2), key2); in HWTEST_F_L0() [all …]
|
D | linked_hash_table_test.cpp | 95 JSHandle<JSTaggedValue> key2(stringKey2); in HWTEST_F_L0() local 107 dictHandle = LinkedHashMap::Set(thread, dictHandle, key2, value2); in HWTEST_F_L0() 136 JSHandle<JSTaggedValue> key2(stringKey2); in HWTEST_F_L0() local 146 setHandle = LinkedHashSet::Add(thread, setHandle, key2); in HWTEST_F_L0()
|
D | layout_info_test.cpp | 83 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("world")); in HWTEST_F_L0() local 88 layoutInfoHandle->SetPropertyInit(thread, 1, key2.GetTaggedValue(), defaultAttr); in HWTEST_F_L0() 91 EXPECT_EQ(layoutInfoHandle->GetSortedKey(0), key2.GetTaggedValue()); in HWTEST_F_L0()
|
D | js_serializer_test.cpp | 136 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("adviceId")); in JSPlainObjectTest2() local 142 bool res = JSObject::HasProperty(thread, obj, key2); in JSPlainObjectTest2() 144 OperationResult result1 = JSObject::GetProperty(thread, value2, key2); in JSPlainObjectTest2() 182 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("8")); in NativeBindingObjectTest2() local 188 OperationResult res2 = JSObject::GetProperty(thread, objValue1, key2); in NativeBindingObjectTest2() 203 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("root2")); in NativeBindingObjectTest3() local 214 OperationResult res2 = JSObject::GetProperty(thread, objValue2, key2); in NativeBindingObjectTest3() 243 JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromASCII("y")); in DescriptionTest() local 822 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("abc")); in ObjectWithConcurrentFunctionTest() local 823 OperationResult result2 = JSObject::GetProperty(thread, res, key2); in ObjectWithConcurrentFunctionTest() [all …]
|
D | tagged_dictionary_test.cpp | 99 JSHandle<JSTaggedValue> key2(stringKey2); in HWTEST_F_L0() local 113 …JSHandle<NameDictionary> dict2(NameDictionary::PutIfAbsent(thread, dictHandle, key2, value2, metaD… in HWTEST_F_L0() 229 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); // 2: number key in HWTEST_F_L0() local 243 …JSHandle<NumberDictionary> dict2 = NumberDictionary::PutIfAbsent(thread, dictHandle, key2, value2,… in HWTEST_F_L0()
|
D | locale_helper_test.cpp | 122 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("2")); in HWTEST_F_L0() local 123 JSArray::DefineOwnProperty(thread, JSHandle<JSObject>(localeObj), key2, desc2); in HWTEST_F_L0()
|
D | transitions_dictionary_test.cpp | 81 JSHandle<JSTaggedValue> key2(factory->NewFromStdString("key")); in HWTEST_F_L0() local 82 hash = TransitionsDictionary::Hash(key2.GetTaggedValue(), metaData1.GetTaggedValue()); in HWTEST_F_L0()
|
D | js_proxy_test.cpp | 129 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("y")); in HWTEST_F_L0() local 130 EXPECT_EQ(JSProxy::GetProperty(thread, proxyHandle2, key2).GetValue()->GetInt(), 10); in HWTEST_F_L0() 172 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("y")); in HWTEST_F_L0() local 174 EXPECT_FALSE(JSProxy::GetOwnProperty(thread, proxyHandle2, key2, desc2)); in HWTEST_F_L0()
|
D | js_api_vector_test.cpp | 261 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(elementsNums)); in HWTEST_F_L0() local 262 JSAPIVector::GetProperty(thread, toor, key2); in HWTEST_F_L0()
|
D | tagged_tree_test.cpp | 219 JSHandle<JSTaggedValue> key2(stringKey2); in HWTEST_F_L0() local 225 tmap.Update(TaggedTreeMap::Set(thread, tmap, key2, value2)); in HWTEST_F_L0() 253 JSHandle<JSTaggedValue> key2(stringKey2); in HWTEST_F_L0() local 258 tset.Update(TaggedTreeSet::Add(thread, tset, key2)); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_array_test.cpp | 253 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 258 JSObject::GetOwnProperty(thread, valueHandle, key2, descRes); in HWTEST_F_L0() 277 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 279 JSArray::DefineOwnProperty(thread, obj, key2, desc2); in HWTEST_F_L0() 303 JSObject::GetOwnProperty(thread, valueHandle, key2, descRes); in HWTEST_F_L0() 364 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 370 JSObject::GetOwnProperty(thread, valueHandle, key2, descRes); in HWTEST_F_L0() 403 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 405 JSArray::DefineOwnProperty(thread, obj, key2, desc2); in HWTEST_F_L0() 455 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local [all …]
|
D | builtins_list_format_test.cpp | 155 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 157 JSArray::DefineOwnProperty(thread, value, key2, desc2); in HWTEST_F_L0() 193 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 195 JSArray::DefineOwnProperty(thread, value, key2, desc2); in HWTEST_F_L0() 261 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 263 JSArray::DefineOwnProperty(thread, value, key2, desc2); in HWTEST_F_L0() 320 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 322 JSArray::DefineOwnProperty(thread, value, key2, desc2); in HWTEST_F_L0() 359 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 361 JSArray::DefineOwnProperty(thread, value, key2, desc2); in HWTEST_F_L0() [all …]
|
D | builtins_collator_test.cpp | 186 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 189 JSArray::DefineOwnProperty(thread, jsObject, key2, desc2); in HWTEST_F_L0() 204 …EXPECT_EQ(JSTaggedValue::SameValue(JSArray::GetProperty(thread, resultArr, key2).GetValue(), value… in HWTEST_F_L0() 235 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 238 JSArray::DefineOwnProperty(thread, jsObject, key2, desc2); in HWTEST_F_L0()
|
D | builtins_json_test.cpp | 134 JSHandle<JSTaggedValue> key2(factory->NewFromASCII(str2)); in CreateBuiltinJSObject1() local 136 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key2, value2); in CreateBuiltinJSObject1() 397 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 399 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, value2); in HWTEST_F_L0() 435 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() local 437 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, value2); in HWTEST_F_L0()
|
D | builtins_object_test.cpp | 170 JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromASCII("y")); in HWTEST_F_L0() local 172 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(objHandle2), key2, value2); in HWTEST_F_L0() 173 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(objHandle2), key2).GetValue()->Get… in HWTEST_F_L0() 188 EXPECT_EQ(JSObject::GetProperty(thread, jtHandle, key2).GetValue()->GetInt(), 2); in HWTEST_F_L0()
|
D | builtins_set_test.cpp | 329 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("has")); in HWTEST_F_L0() local
|
D | builtins_map_test.cpp | 319 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("has")); in HWTEST_F_L0() local
|
/arkcompiler/ets_runtime/ecmascript/ |
D | tagged_node.cpp | 158 int RBTreeNode::Compare(int hash1, JSTaggedValue key1, int hash2, JSTaggedValue key2) in Compare() argument 160 ASSERT(!key1.IsHole() && !key2.IsHole()); in Compare() 161 if (JSTaggedValue::SameValue(key1, key2)) { in Compare()
|
D | tagged_node.h | 141 static int Compare(int hash1, JSTaggedValue key1, int hash2, JSTaggedValue key2);
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_typedarray.cpp | 1402 JSMutableHandle<JSTaggedValue> key2(thread, JSTaggedValue::Undefined()); in Sort() local 1424 key2.Update(JSTaggedValue(j - 1)); in Sort() 1427 key2.GetTaggedValue())); in Sort() 1675 JSMutableHandle<JSTaggedValue> key2(thread, JSTaggedValue::Undefined()); in ToSorted() local 1703 key2.Update(JSTaggedValue(j - 1)); in ToSorted() 1705 thread, newArrObj.GetTaggedValue(), key2.GetTaggedValue())); in ToSorted()
|