/arkcompiler/ets_runtime/ecmascript/jobs/tests/ |
D | micro_job_queue_test.cpp | 115 …EXPECT_EQ(JSTaggedValue::SameValue(promiseQueue.GetTaggedValue(), originalPromiseQueue.GetTaggedVa… in HWTEST_F_L0() 116 …EXPECT_EQ(JSTaggedValue::SameValue(handleMicrojob->GetScriptJobQueue(), scriptQueue.GetTaggedValue… in HWTEST_F_L0() 122 …EXPECT_EQ(JSTaggedValue::SameValue(pendingJob->GetJob(), promiseReactionsJob.GetTaggedValue()), tr… in HWTEST_F_L0() 123 … EXPECT_EQ(JSTaggedValue::SameValue(pendingJob->GetArguments(), arguments.GetTaggedValue()), true); in HWTEST_F_L0() 155 …EXPECT_EQ(JSTaggedValue::SameValue(scriptQueue.GetTaggedValue(), originalScriptQueue.GetTaggedValu… in HWTEST_F_L0() 156 …EXPECT_EQ(JSTaggedValue::SameValue(handleMicrojob->GetPromiseJobQueue(), promiseQueue.GetTaggedVal… in HWTEST_F_L0() 162 …EXPECT_EQ(JSTaggedValue::SameValue(pendingJob1->GetJob(), promiseReactionsJob.GetTaggedValue()), t… in HWTEST_F_L0() 163 …EXPECT_EQ(JSTaggedValue::SameValue(pendingJob1->GetArguments(), arguments1.GetTaggedValue()), true… in HWTEST_F_L0() 168 …EXPECT_EQ(JSTaggedValue::SameValue(pendingJob2->GetJob(), promiseResolveThenableJob.GetTaggedValue… in HWTEST_F_L0() 169 …EXPECT_EQ(JSTaggedValue::SameValue(pendingJob2->GetArguments(), arguments2.GetTaggedValue()), true… in HWTEST_F_L0() [all …]
|
D | pending_job_test.cpp | 77 …EXPECT_EQ(JSTaggedValue::SameValue(handlePendingJob->GetJob(), handleNativeFunc.GetTaggedValue()),… in HWTEST_F_L0() 140 EXPECT_EQ(JSTaggedValue::SameValue(jsPromise->GetPromiseResult(), JSTaggedValue(44)), true); in HWTEST_F_L0() 176 …EXPECT_EQ(JSTaggedValue::SameValue(jsPromise->GetPromiseResult(), paramMsg.GetTaggedValue()), true… in HWTEST_F_L0() 210 …EXPECT_EQ(JSTaggedValue::SameValue(jsPromise->GetPromiseResult(), JSTaggedValue::Undefined()), tru… in HWTEST_F_L0() 221 … EXPECT_EQ(JSTaggedValue::SameValue(handler.GetTaggedValue(), handlerMsg.GetTaggedValue()), true); in TestPromiseOnResolved() 305 EXPECT_EQ(JSTaggedValue::SameValue(jsPromise->GetPromiseResult(), JSTaggedValue(44)), true); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_tagged_number_test.cpp | 115 EXPECT_TRUE(JSTaggedNumber::SameValue(number1, number2)); in HWTEST_F_L0() 120 EXPECT_FALSE(JSTaggedNumber::SameValue(number3, number4)); in HWTEST_F_L0() 125 EXPECT_TRUE(JSTaggedNumber::SameValue(number5, number6)); in HWTEST_F_L0() 130 EXPECT_TRUE(JSTaggedNumber::SameValue(number7, number8)); in HWTEST_F_L0()
|
D | js_promise_test.cpp | 91 …EXPECT_EQ(JSTaggedValue::SameValue(newPromise.GetTaggedValue(), resolvedPromise.GetTaggedValue()),… in HWTEST_F_L0() 92 …EXPECT_EQ(JSTaggedValue::SameValue(newPromise.GetTaggedValue(), rejectedPromise.GetTaggedValue()),… in HWTEST_F_L0() 111 EXPECT_EQ(JSTaggedValue::SameValue(newPromise->GetPromiseResult(), JSTaggedValue(33)), true); in HWTEST_F_L0() 130 EXPECT_EQ(JSTaggedValue::SameValue(newPromise->GetPromiseResult(), JSTaggedValue(44)), true); in HWTEST_F_L0()
|
D | js_async_function_test.cpp | 70 …EXPECT_EQ(JSTaggedValue::SameValue(fulFunc->GetAsyncContext(), asyncFuncObjVal.GetTaggedValue()), … in HWTEST_F_L0() 75 …EXPECT_EQ(JSTaggedValue::SameValue(rejFunc->GetAsyncContext(), asyncFuncObjVal.GetTaggedValue()), … in HWTEST_F_L0()
|
D | tagged_value_test.cpp | 1015 HWTEST_F_L0(JSTaggedValueTest, SameValue) in HWTEST_F_L0() argument 1023 ASSERT_FALSE(JSTaggedValue::SameValue(JSTaggedValue(1), JSTaggedValue::False())); in HWTEST_F_L0() 1024 ASSERT_FALSE(JSTaggedValue::SameValue(JSTaggedValue(1.0), JSTaggedValue::True())); in HWTEST_F_L0() 1025 ASSERT_FALSE(JSTaggedValue::SameValue(JSTaggedValue(1), in HWTEST_F_L0() 1027 ASSERT_FALSE(JSTaggedValue::SameValue(JSTaggedValue(1), JSTaggedValue(*jsObj))); in HWTEST_F_L0() 1029 ASSERT_FALSE(JSTaggedValue::SameValue(test.GetTaggedValue(), JSTaggedValue(*jsObj))); in HWTEST_F_L0() 1032 ASSERT_TRUE(JSTaggedValue::SameValue(JSTaggedValue(1), JSTaggedValue(1))); in HWTEST_F_L0() 1033 ASSERT_TRUE(JSTaggedValue::SameValue(JSTaggedValue(1), JSTaggedValue(1.0))); in HWTEST_F_L0() 1034 ASSERT_FALSE(JSTaggedValue::SameValue(JSTaggedValue(1.0), JSTaggedValue(2.0))); in HWTEST_F_L0() 1035 …ASSERT_FALSE(JSTaggedValue::SameValue(JSTaggedValue(std::numeric_limits<int>::quiet_NaN()), JSTagg… in HWTEST_F_L0() [all …]
|
D | js_displaynames_test.cpp | 255 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0() 257 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0() 259 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0() 261 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0()
|
D | symbol_table_test.cpp | 250 EXPECT_EQ(JSTaggedValue::SameValue(resultValue1, JSTaggedValue::Undefined()), true); in HWTEST_F_L0() 254 EXPECT_EQ(JSTaggedValue::SameValue(resultValue2, JSTaggedValue::Undefined()), true); in HWTEST_F_L0() 262 EXPECT_EQ(JSTaggedValue::SameValue(resultValue4, JSTaggedValue::Undefined()), true); in HWTEST_F_L0()
|
D | js_collator_test.cpp | 121 …EXPECT_EQ(JSTaggedValue::SameValue(collator.GetTaggedValue(), initCollator.GetTaggedValue()), true… in HWTEST_F_L0() 129 …EXPECT_TRUE(JSTaggedValue::SameValue(JSHandle<JSTaggedValue>(thread, initCollator->GetLocale()), l… in HWTEST_F_L0()
|
D | js_locale_test.cpp | 183 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0() 222 EXPECT_EQ(JSTaggedValue::SameValue(fieldTypeString, nanString), true); in HWTEST_F_L0() 227 EXPECT_EQ(JSTaggedValue::SameValue(fieldTypeString, integerString), true); in HWTEST_F_L0() 232 EXPECT_EQ(JSTaggedValue::SameValue(fieldTypeString, minusSignString), true); in HWTEST_F_L0() 237 EXPECT_EQ(JSTaggedValue::SameValue(fieldTypeString, plusSignString), true); in HWTEST_F_L0() 525 EXPECT_EQ(JSTaggedValue::SameValue(optionValue, languageValue), true); in HWTEST_F_L0() 528 EXPECT_EQ(JSTaggedValue::SameValue(optionValue, fallback), true); in HWTEST_F_L0()
|
D | js_proxy_test.cpp | 291 …EXPECT_TRUE(JSTaggedValue::SameValue(resDesc.GetValue().GetTaggedValue(), JSTaggedValue::Undefined… in HWTEST_F_L0() 324 …JSTaggedValue::SameValue(JSTaggedValue::GetPrototype(thread, targetHandle), proto.GetTaggedValue()… in HWTEST_F_L0() 332 …EXPECT_TRUE(JSTaggedValue::SameValue(JSProxy::GetPrototype(thread, proxyHandle), proto.GetTaggedVa… in HWTEST_F_L0() 343 …EXPECT_TRUE(JSTaggedValue::SameValue(JSProxy::GetPrototype(thread, proxyHandle2), JSTaggedValue::N… in HWTEST_F_L0() 369 …JSTaggedValue::SameValue(JSTaggedValue::GetPrototype(thread, targetHandle), proto.GetTaggedValue()… in HWTEST_F_L0() 523 EXPECT_TRUE(JSTaggedValue::SameValue(res->Get(0), key.GetTaggedValue())); in HWTEST_F_L0() 535 …EXPECT_TRUE(res2->GetLength() == 0U || !JSTaggedValue::SameValue(res2->Get(0), key.GetTaggedValue(… in HWTEST_F_L0() 568 EXPECT_TRUE(JSTaggedValue::SameValue(res, JSTaggedValue::True())); in HWTEST_F_L0() 582 EXPECT_TRUE(JSTaggedValue::SameValue(res2, JSTaggedValue::False())); in HWTEST_F_L0()
|
D | js_set_iterator_test.cpp | 84 … EXPECT_EQ(JSTaggedValue::SameValue(setIterator1->GetIteratedSet(), jsSet->GetLinkedSet()), true); in HWTEST_F_L0() 93 … EXPECT_EQ(JSTaggedValue::SameValue(setIterator2->GetIteratedSet(), jsSet->GetLinkedSet()), true); in HWTEST_F_L0()
|
D | constant_string_test.cpp | 579 …EXPECT_TRUE(JSTaggedValue::SameValue(lowerStr.GetTaggedValue(), lowerEcmaString.GetTaggedValue())); in HWTEST_F_L0() 587 …EXPECT_TRUE(JSTaggedValue::SameValue(lowerStr.GetTaggedValue(), lowerEcmaString.GetTaggedValue())); in HWTEST_F_L0() 595 … EXPECT_TRUE(JSTaggedValue::SameValue(lowerStr.GetTaggedValue(), testEcmaString.GetTaggedValue())); in HWTEST_F_L0() 603 … EXPECT_TRUE(JSTaggedValue::SameValue(lowerStr.GetTaggedValue(), testEcmaString.GetTaggedValue())); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_promise_test.cpp | 70 EXPECT_EQ(JSTaggedValue::SameValue(result.GetTaggedValue(), JSTaggedValue(12345)), true); in TestPromiseRaceThenOnRejectd() 85 EXPECT_EQ(JSTaggedValue::SameValue(value1.GetTaggedValue(), JSTaggedValue(111)), true); in TestPromiseAllThenOnResolved() 91 EXPECT_EQ(JSTaggedValue::SameValue(value2.GetTaggedValue(), JSTaggedValue(222)), true); in TestPromiseAllThenOnResolved() 100 EXPECT_EQ(JSTaggedValue::SameValue(result.GetTaggedValue(), JSTaggedValue(3)), true); in TestPromiseCatch() 110 EXPECT_EQ(JSTaggedValue::SameValue(result.GetTaggedValue(), expect.GetTaggedValue()), true); in TestPromiseThenOnResolved() 120 EXPECT_EQ(JSTaggedValue::SameValue(result.GetTaggedValue(), expect.GetTaggedValue()), true); in TestPromiseThenOnRejected() 148 EXPECT_EQ(JSTaggedValue::SameValue(rejectPromise->GetPromiseResult(), JSTaggedValue(3)), true); in HWTEST_F_L0() 179 …EXPECT_EQ(JSTaggedValue::SameValue(promise1->GetPromiseResult(), paramMsg1.GetTaggedValue()), true… in HWTEST_F_L0() 196 …JSTaggedValue::SameValue(promise2->GetPromiseResult(), JSTaggedValue(promise1.GetTaggedValue().Get… in HWTEST_F_L0() 225 EXPECT_EQ(JSTaggedValue::SameValue(rejectPromise->GetPromiseResult(), JSTaggedValue(5)), true); in HWTEST_F_L0() [all …]
|
D | builtins_proxy_test.cpp | 124 if (JSTaggedValue::SameValue(keys->Get(i), proxyKey.GetTaggedValue())) { in HWTEST_F_L0() 127 if (JSTaggedValue::SameValue(keys->Get(i), revokeKey.GetTaggedValue())) { in HWTEST_F_L0()
|
D | builtins_collator_test.cpp | 202 …EXPECT_EQ(JSTaggedValue::SameValue(JSArray::GetProperty(thread, resultArr, key0).GetValue(), value… in HWTEST_F_L0() 203 …EXPECT_EQ(JSTaggedValue::SameValue(JSArray::GetProperty(thread, resultArr, key1).GetValue(), value… in HWTEST_F_L0() 204 …EXPECT_EQ(JSTaggedValue::SameValue(JSArray::GetProperty(thread, resultArr, key2).GetValue(), value… in HWTEST_F_L0() 321 …EXPECT_EQ(JSTaggedValue::SameValue(JSObject::GetProperty(thread, resultObj, localeKey).GetValue(),… in HWTEST_F_L0() 324 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0() 328 …EXPECT_EQ(JSTaggedValue::SameValue(JSObject::GetProperty(thread, resultObj, handledCaseFirstKey).G… in HWTEST_F_L0()
|
D | builtins_relative_time_format_test.cpp | 284 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0() 288 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0() 292 EXPECT_EQ(JSTaggedValue::SameValue( in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_typed_array.cpp | 106 if (JSTaggedNumber::SameValue(numericIndexNumber, eZero)) { in HasProperty() 170 if (JSTaggedNumber::SameValue(numericIndexNumber, eZero)) { in DefineOwnProperty() 211 if ((key->IsString() || key->IsNumber()) && JSTaggedValue::SameValue(typedarray, receiver)) { in GetProperty() 237 if ((key->IsString() || key->IsNumber()) && JSTaggedValue::SameValue(typedarray, receiver)) { in SetProperty() 397 if (JSTaggedNumber::SameValue(indexNumber, eZero)) { in IntegerIndexedElementGet() 453 if (JSTaggedValue::SameValue(typeName, globalConst->GetHandledFloat32ArrayString())) { in GetTypeFromName() 456 if (JSTaggedValue::SameValue(typeName, globalConst->GetHandledInt8ArrayString())) { in GetTypeFromName() 459 if (JSTaggedValue::SameValue(typeName, globalConst->GetHandledUint8ArrayString())) { in GetTypeFromName() 462 if (JSTaggedValue::SameValue(typeName, globalConst->GetHandledUint8ClampedArrayString())) { in GetTypeFromName() 465 if (JSTaggedValue::SameValue(typeName, globalConst->GetHandledInt16ArrayString())) { in GetTypeFromName() [all …]
|
D | js_arguments.cpp | 36 …if (desc.IsDataDescriptor() && JSTaggedValue::SameValue(key.GetTaggedValue(), caller.GetTaggedValu… in GetOwnProperty()
|
D | tagged_hash_array.cpp | 56 …if (nextNode->GetHash().GetInt() == hash && (!key.IsHole() && JSTaggedValue::SameValue(key, findKe… in GetNode() 231 …if (head->GetHash().GetInt() == hash && (!key.IsHole() && JSTaggedValue::SameValue(key, newKey))) { in RemoveNode() 240 …if (nodeNext->GetHash().GetInt() == hash && (!key.IsHole() && JSTaggedValue::SameValue(key, newKey… in RemoveNode()
|
D | tagged_array-inl.h | 45 if (JSTaggedValue::SameValue(Get(i), value)) { in GetIdx() 132 if (JSTaggedValue::SameValue(Get(i), Get(j))) { in HasDuplicateEntry()
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_lightweightmap.cpp | 130 if (!JSTaggedValue::SameValue(oldKeyArray->Get(index), dealKey) || in HasAll() 131 !JSTaggedValue::SameValue(oldValueArray->Get(index), newValueArray->Get(num))) { in HasAll() 152 if (JSTaggedValue::SameValue(valueArray->Get(num), value.GetTaggedValue())) { in HasValue() 178 if (JSTaggedValue::SameValue(keyArray->Get(right), key.GetTaggedValue())) { in GetStateOfKey() 185 if (JSTaggedValue::SameValue(keyArray->Get(left), key.GetTaggedValue())) { in GetStateOfKey() 325 if (JSTaggedValue::SameValue((params.keyArray)->Get(right), *(params.key))) { in AvoidHashCollision() 332 if (JSTaggedValue::SameValue((params.keyArray)->Get(left), *(params.key))) { in AvoidHashCollision()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_source_text.cpp | 147 if (JSTaggedValue::SameValue(rr.first.GetTaggedValue(), module.GetTaggedValue()) && in CheckCircularImport() 148 JSTaggedValue::SameValue(rr.second, exportName)) { in CheckCircularImport() 167 if (JSTaggedValue::SameValue(exportName, defaultString)) { in ResolveExportObject() 230 if (JSTaggedValue::SameValue(exportName, defaultString) && in ResolveExport() 421 if (!JSTaggedValue::SameValue(requestedName, moduleName)) { in InitializeEnvironment() 600 … if (JSTaggedValue::SameValue(module.GetTaggedValue(), requiredModule.GetTaggedValue())) { in InnerModuleInstantiation() 657 if (JSTaggedValue::SameValue(importName, starString)) { in ModuleDeclarationEnvironmentSetup() 742 if (JSTaggedValue::SameValue(importName, starString)) { in ModuleDeclarationArrayEnvironmentSetup() 1014 … if (JSTaggedValue::SameValue(module.GetTaggedValue(), requiredModule.GetTaggedValue())) { in InnerModuleEvaluation() 1217 if (!JSTaggedValue::SameValue(ee->GetExportName(), key)) { in FindByExport() [all …]
|
/arkcompiler/ets_runtime/ecmascript/require/tests/ |
D | js_cjs_manager_test.cpp | 77 EXPECT_EQ(JSTaggedValue::SameValue(exportsVal, JSTaggedValue::Hole()), false); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_finalization_registry.cpp | 83 if (JSTaggedValue::SameValue(target, heldValue)) { in Register()
|