/arkcompiler/ets_runtime/test/moduletest/ecmastringtable/ |
H A D | ecmastringtable.js | 39 let key2 = head1 + tail1; 97 print("key1 === key2: ", key1 === key2); 101 getOrCreateLoad(system, key2); 130 let key2 = tmp1 + tmp2; 132 let res2 = obj[key2] 139 let key2 = tmp1 + tmp2; 141 let res2 = obj[key2] 148 let key2 = tmp1 + tmp2; 150 let res2 = obj[key2] [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_forin_iterator_test.cpp | 39 JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromASCII("key2")); in HWTEST_F_L0() 46 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(father), key2, key2Value); in HWTEST_F_L0() 49 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(son), key2, key1Value); in HWTEST_F_L0() 57 EXPECT_EQ(n2, key2.GetTaggedValue()); in HWTEST_F_L0()
|
H A D | linked_hash_table_test.cpp | 71 JSHandle<JSTaggedValue> key2(stringKey2); in HWTEST_F_L0() 83 dictHandle = LinkedHashMap::Set(thread, dictHandle, key2, value2); in HWTEST_F_L0() 112 JSHandle<JSTaggedValue> key2(stringKey2); in HWTEST_F_L0() 122 setHandle = LinkedHashSet::Add(thread, setHandle, key2); in HWTEST_F_L0()
|
H A D | layout_info_test.cpp | 59 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("world")); in HWTEST_F_L0() 64 layoutInfoHandle->SetPropertyInit(thread, 1, key2.GetTaggedValue(), defaultAttr); in HWTEST_F_L0() 67 EXPECT_EQ(layoutInfoHandle->GetSortedKey(0), key2.GetTaggedValue()); in HWTEST_F_L0()
|
H A D | js_api_lightweightmap_test.cpp | 107 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(3)); in HWTEST_F_L0() 109 JSAPILightWeightMap::Set(thread, lwm, key2, value2); in HWTEST_F_L0() 162 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(3)); in HWTEST_F_L0() 164 JSAPILightWeightMap::Set(thread, lwm, key2, value2); in HWTEST_F_L0() 179 EXPECT_TRUE(JSTaggedValue::Equal(thread, result, key2)); in HWTEST_F_L0() 240 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(3)); in HWTEST_F_L0() 242 JSAPILightWeightMap::Set(thread, lwm, key2, value2); in HWTEST_F_L0() 262 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 263 KeyState keyState2 = JSAPILightWeightMap::GetStateOfKey(thread, lwm, key2); in HWTEST_F_L0()
|
H A D | js_object_test.cpp | 111 JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromASCII("print_test")); in HWTEST_F_L0() 112 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, in HWTEST_F_L0() 114 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key2).GetValue()->GetInt(), 10); in HWTEST_F_L0() 118 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key2).GetValue()->GetInt(), 10); in HWTEST_F_L0() 147 JSHandle<JSTaggedValue> fatherKey(thread->GetEcmaVM()->GetFactory()->NewFromASCII("key2")); in GetPropertyHasOwnPeroperty() 189 JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromASCII("key3")); in HWTEST_F_L0() 211 JSObject::DefineOwnProperty(thread, obj1, key2, desc1); in HWTEST_F_L0() 212 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2, value1); in HWTEST_F_L0() 213 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key2, value1); in HWTEST_F_L0() 214 JSObject::DeleteProperty(thread, (obj1), key2); in HWTEST_F_L0() [all...] |
H A D | tagged_dictionary_test.cpp | 75 JSHandle<JSTaggedValue> key2(stringKey2); in HWTEST_F_L0() 89 JSHandle<NameDictionary> dict2(NameDictionary::PutIfAbsent(thread, dictHandle, key2, value2, metaData2)); in HWTEST_F_L0() 206 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); // 2: number key in HWTEST_F_L0() 220 JSHandle<NumberDictionary> dict2 = NumberDictionary::PutIfAbsent(thread, dictHandle, key2, value2, metaData2); in HWTEST_F_L0()
|
H A D | gc_first_test.cpp | 267 JSHandle<EcmaString> key2(factory->NewFromASCII("error2")); in HWTEST_F_L0() 271 chunk->Emplace(reinterpret_cast<JSTaggedType>(key2.GetTaggedValue().GetTaggedObject())); in HWTEST_F_L0()
|
H A D | transitions_dictionary_test.cpp | 57 JSHandle<JSTaggedValue> key2(factory->NewFromStdString("key")); in HWTEST_F_L0() 58 hash = TransitionsDictionary::Hash(key2.GetTaggedValue(), metaData1.GetTaggedValue()); in HWTEST_F_L0()
|
H A D | locale_helper_test.cpp | 89 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("2")); in HWTEST_F_L0() 90 JSArray::DefineOwnProperty(thread, JSHandle<JSObject>(localeObj), key2, desc2); in HWTEST_F_L0()
|
H A D | js_proxy_test.cpp | 115 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("y")); in HWTEST_F_L0() 116 EXPECT_EQ(JSProxy::GetProperty(thread, proxyHandle2, key2).GetValue()->GetInt(), 10); in HWTEST_F_L0() 149 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("y")); in HWTEST_F_L0() 151 EXPECT_FALSE(JSProxy::GetOwnProperty(thread, proxyHandle2, key2, desc2)); in HWTEST_F_L0()
|
H A D | js_api_vector_test.cpp | 220 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(elementsNums)); in HWTEST_F_L0() 221 JSAPIVector::GetProperty(thread, toor, key2); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/serializer/tests/ |
H A D | serializer_test.cpp | 677 JSHandle<EcmaString> pattern = thread->GetEcmaVM()->GetFactory()->NewFromASCII("key2"); in JSRegexpTest() 851 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("2")); in ObjectWithConcurrentFunctionTest() 852 OperationResult result2 = JSObject::GetProperty(thread, res, key2); in ObjectWithConcurrentFunctionTest() 1118 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("3")); in HWTEST_F_L0() 1127 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, value2); in HWTEST_F_L0() 1148 JSHandle<EcmaString> key2(factory->NewFromASCII("str2")); in HWTEST_F_L0() 1157 key2 = JSHandle<EcmaString>(thread, EcmaStringAccessor::Concat(ecmaVm, key2, key1)); in HWTEST_F_L0() 1158 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), JSHandle<JSTaggedValue>(key2), in HWTEST_F_L0() 1180 JSHandle<EcmaString> key2(factor in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_collator_test.cpp | 189 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 192 JSArray::DefineOwnProperty(thread, jsObject, key2, desc2); in HWTEST_F_L0() 201 EXPECT_EQ(JSTaggedValue::SameValue(JSArray::GetProperty(thread, resultArr, key2).GetValue(), value0), true); in HWTEST_F_L0() 227 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 230 JSArray::DefineOwnProperty(thread, jsObject, key2, desc2); in HWTEST_F_L0()
|
H A D | builtins_json_test.cpp | 102 JSHandle<JSTaggedValue> key2(factory->NewFromASCII(str2)); in CreateBuiltinJSObject1() 104 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key2, value2); in CreateBuiltinJSObject1() 356 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 358 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, value2); in HWTEST_F_L0() 390 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 392 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key2, value2); in HWTEST_F_L0()
|
H A D | builtins_array_test.cpp | 225 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 230 JSObject::GetOwnProperty(thread, valueHandle, key2, descRes); in HWTEST_F_L0() 349 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 350 std::vector<JSHandle<JSTaggedValue>> keys{key0, key1, key2}; in HWTEST_F_L0() 697 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 701 std::vector<JSHandle<JSTaggedValue>> keys{key0, key1, key2, key3, key4}; in HWTEST_F_L0() 980 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 982 JSArray::DefineOwnProperty(thread, obj, key2, desc2); in HWTEST_F_L0() 1033 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 1035 JSArray::DefineOwnProperty(thread, obj, key2, desc in HWTEST_F_L0() [all...] |
H A D | builtins_shared_array_test.cpp | 215 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 220 JSObject::GetOwnProperty(thread, valueHandle, key2, descRes); in HWTEST_F_L0() 778 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 780 JSSharedArray::DefineOwnProperty(thread, obj, key2, desc2, SCheckMode::SKIP); in HWTEST_F_L0() 809 JSHandle<JSTaggedValue> key2(thread, JSTaggedValue(2)); in HWTEST_F_L0() 811 JSSharedArray::DefineOwnProperty(thread, obj, key2, desc2, SCheckMode::SKIP); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/indexed_type/ |
H A D | indexed_type.js | 71 key2: 'B',
|
/arkcompiler/ets_runtime/ecmascript/ |
H A 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()
|
H A D | tagged_node.h | 150 static int Compare(int hash1, JSTaggedValue key1, int hash2, JSTaggedValue key2);
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | json_stringifier_test.cpp | 369 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("key2")); in HWTEST_F_L0() 371 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), key2, value2); in HWTEST_F_L0() 380 EXPECT_STREQ("{\"key1\":{},\"key2\":\"abc\"}", EcmaStringAccessor(handleEcmaStr).ToCString().c_str()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/extractortool/tests/ |
H A D | source_map_test.cpp | 427 std::string sourceMap = R"({"key1": "value1", "key2": "value\"2"})"; in HWTEST_F_L0() 433 EXPECT_EQ(sourceKeyInfo[2], "key2");
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
H A D | jsnapi_third_tests.cpp | 1228 Local<JSValueRef> key2 = StringRef::NewFromUtf8(vm_, utf8Key); in HWTEST_F_L0() local 1231 object->Set(vm_, key2, value); in HWTEST_F_L0() 1236 reinterpret_cast<uintptr_t>(*key2)); in HWTEST_F_L0() 1242 flag = JSNApi::NapiHasProperty(vm_, reinterpret_cast<uintptr_t>(*object), reinterpret_cast<uintptr_t>(*key2)); in HWTEST_F_L0() 1247 flag = JSNApi::NapiDeleteProperty(vm_, reinterpret_cast<uintptr_t>(*object), reinterpret_cast<uintptr_t>(*key2)); in HWTEST_F_L0() 1252 flag = JSNApi::NapiHasProperty(vm_, reinterpret_cast<uintptr_t>(*object), reinterpret_cast<uintptr_t>(*key2)); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_typedarray.cpp | 1643 JSMutableHandle<JSTaggedValue> key2(thread, JSTaggedValue::Undefined()); in Sort() 1665 key2.Update(JSTaggedValue(j - 1)); in Sort() 1668 key2.GetTaggedValue())); in Sort() 1915 JSMutableHandle<JSTaggedValue> key2(thread, JSTaggedValue::Undefined()); in ToSorted() 1944 key2.Update(JSTaggedValue(j - 1)); in ToSorted() 1946 thread, newArrObj.GetTaggedValue(), key2.GetTaggedValue())); in ToSorted()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | sort_helper.cpp | 193 JSHandle<JSTaggedValue> key2(thread_, elements_->Get(base1 + len1 - 1)); 194 len2 = GallopLeft(elements_, key2, base2, len2, len2 - 1);
|