Home
last modified time | relevance | path

Searched refs:HasValue (Results 1 – 25 of 53) sorted by relevance

123

/arkcompiler/runtime_core/libpandabase/utils/
Dexpected.h78 bool HasValue() const noexcept in HasValue() function
84 return HasValue();
89 ASSERT(!HasValue()); in Error()
94 ASSERT(!HasValue()); in Error()
99 ASSERT(!HasValue()); in Error()
105 ASSERT(HasValue()); in Value()
112 ASSERT(HasValue()); in Value()
117 ASSERT(HasValue()); in Value()
136 if (HasValue()) { in ValueOr()
144 if (HasValue()) { in ValueOr()
/arkcompiler/runtime_core/libpandabase/tests/
Dunix_exec_test.cpp25 ASSERT_TRUE(res.HasValue());
Dunix_library_loader_test.cpp26 ASSERT_FALSE(res.HasValue());
Dserializer_test.cpp180 ASSERT_TRUE(ret.HasValue()); in TEST_F()
/arkcompiler/toolchain/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/
Dpttypesinternalpropertydespvalue_fuzzer.cpp37 desp.HasValue(); in PtTypesInternalPropertyDespValueFuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/
Dpttypesprivatepropertydespvalue_fuzzer.cpp37 desp.HasValue(); in PtTypesPrivatePropertyDespValueFuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypesremoteobjectgetvalue_fuzzer/
Dpttypesremoteobjectgetvalue_fuzzer.cpp38 obj.HasValue(); in PtTypesRemoteObjectGetValueFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_hashmap.h27 static JSTaggedValue HasValue(EcmaRuntimeCallInfo *argv);
Dcontainers_treemap.h32 static JSTaggedValue HasValue(EcmaRuntimeCallInfo *argv);
Dcontainers_lightweightmap.h29 static JSTaggedValue HasValue(EcmaRuntimeCallInfo *argv);
Dcontainers_hashmap.cpp301 JSTaggedValue ContainersHashMap::HasValue(EcmaRuntimeCallInfo *argv) in HasValue() function in panda::ecmascript::containers::ContainersHashMap
305 BUILTINS_API_TRACE(thread, HashMap, HasValue); in HasValue()
320 return JSAPIHashMap::HasValue(thread, hashMap, value); in HasValue()
Dcontainers_treemap.cpp169 JSTaggedValue ContainersTreeMap::HasValue(EcmaRuntimeCallInfo *argv) in HasValue() function in panda::ecmascript::containers::ContainersTreeMap
171 BUILTINS_API_TRACE(argv->GetThread(), TreeMap, HasValue); in HasValue()
187 bool flag = map->HasValue(thread, GetCallArg(argv, 0)); in HasValue()
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_tree_map.cpp89 bool JSAPITreeMap::HasValue(JSThread *thread, const JSHandle<JSTaggedValue> &value) const in HasValue() function in panda::ecmascript::JSAPITreeMap
92 return mapHandle->HasValue(thread, value.GetTaggedValue()); in HasValue()
Djs_api_tree_map.h45 bool HasValue(JSThread *thread, const JSHandle<JSTaggedValue> &value) const;
Djs_api_hashmap.h35 static JSTaggedValue HasValue(JSThread *thread, JSHandle<JSAPIHashMap> hashMap,
Djs_api_lightweightmap.h58 …static JSTaggedValue HasValue(JSThread *thread, const JSHandle<JSAPILightWeightMap> &lightWeightMa…
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_hashmap_test.cpp188 JSTaggedValue hasValue = JSAPIHashMap::HasValue(thread, hashMap, value); in HWTEST_F_L0()
201 JSTaggedValue hasValue = JSAPIHashMap::HasValue(thread, hashMap, value); in HWTEST_F_L0()
269 JSTaggedValue hasValue = JSAPIHashMap::HasValue(thread, hashMap, value); in HWTEST_F_L0()
298 JSTaggedValue iterValueFlag = JSAPIHashMap::HasValue(thread, hashMap, tmpIterValue); in HWTEST_F_L0()
314 JSTaggedValue iterValueFlag = JSAPIHashMap::HasValue(thread, hashMap, tmpValue); in HWTEST_F_L0()
328 JSTaggedValue iterValueFlag = JSAPIHashMap::HasValue(thread, hashMap, tmpIterValue); in HWTEST_F_L0()
393 JSTaggedValue hasValue = JSAPIHashMap::HasValue(thread, hashMap, value); in HWTEST_F_L0()
397 JSTaggedValue hasValue = JSAPIHashMap::HasValue(thread, hashMap, value); in HWTEST_F_L0()
Djs_api_tree_map_test.cpp170 bool hasValue = tmap->HasValue(thread, value); in HWTEST_F_L0()
183 bool hasValue = tmap->HasValue(thread, value); in HWTEST_F_L0()
271 bool hasValue = tmap->HasValue(thread, value); in HWTEST_F_L0()
Djs_api_lightweightmap_test.cpp269 EXPECT_EQ(JSAPILightWeightMap::HasValue(thread, lwm, value1), JSTaggedValue::False()); in HWTEST_F_L0()
434 EXPECT_EQ(JSAPILightWeightMap::HasValue(thread, lwp, value1), JSTaggedValue::True()); in HWTEST_F_L0()
438 EXPECT_EQ(JSAPILightWeightMap::HasValue(thread, lwp, value1), JSTaggedValue::False()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemaphasvalue_fuzzer/
Dcontainerstreemaphasvalue_fuzzer.cpp106 ContainersTreeMap::HasValue(callInfo); in ContainersTreeMapSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmaphasvalue_fuzzer/
Dcontainershashmaphasvalue_fuzzer.cpp109 ContainersHashMap::HasValue(callInfo1); in ContainersHashMapHasValueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightmapvalues_fuzzer/
Dcontainerslightweightmapvalues_fuzzer.cpp128 ContainersLightWeightMap::HasValue(callInfo4); in ContainersLightWeightMapValuesFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_lightweightmap_test.cpp262 JSTaggedValue valueResult = ContainersLightWeightMap::HasValue(callInfo); in HWTEST_F_L0()
388 JSTaggedValue valueResult = ContainersLightWeightMap::HasValue(callInfo); in HWTEST_F_L0()
469 JSTaggedValue valueResult = ContainersLightWeightMap::HasValue(callInfo); in HWTEST_F_L0()
511 JSTaggedValue valueResult = ContainersLightWeightMap::HasValue(callInfo); in HWTEST_F_L0()
598 CONTAINERS_API_TYPE_MISMATCH_EXCEPTION_TEST(ContainersLightWeightMap, HasValue); in HWTEST_F_L0()
Dcontainers_hashmap_test.cpp216 JSTaggedValue result = ContainersHashMap::HasValue(callInfo); in HWTEST_F_L0()
271 JSTaggedValue result = ContainersHashMap::HasValue(callInfo); in HWTEST_F_L0()
338 JSTaggedValue valueFlag = JSAPIHashMap::HasValue(thread, tMap, iterValue); in HWTEST_F_L0()
377 JSTaggedValue valueFlag = JSAPIHashMap::HasValue(thread, tMap, value); in HWTEST_F_L0()
408 JSTaggedValue valueFlag = JSAPIHashMap::HasValue(thread, tMap, iterValue); in HWTEST_F_L0()
419 JSTaggedValue valueFlag = JSAPIHashMap::HasValue(thread, tMap, value); in HWTEST_F_L0()
989 CONTAINERS_API_TYPE_MISMATCH_EXCEPTION_TEST(ContainersHashMap, HasValue); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_object.cpp55 if (desc.HasValue() && desc.GetValue()->IsAccessor()) { in PropertyAttributes()
972 if (desc.HasValue()) { in GlobalGetOwnProperty()
993 if (desc.HasValue() && obj->IsJSGlobalObject()) { in OrdinaryGetOwnProperty()
1086 (!desc.HasValue() || JSTaggedValue::SameValue(current.GetValue(), desc.GetValue())) && in ValidateAndApplyPropertyDescriptor()
1137 … if (desc.HasValue() && !JSTaggedValue::SameValue(current.GetValue(), desc.GetValue())) { in ValidateAndApplyPropertyDescriptor()
1624 if (desc.HasValue()) { in EnumerableOwnPropertyNamesHelper()
1801 if (desc.HasValue()) { in FromPropertyDescriptor()
1901 if (desc.HasValue() || desc.HasWritable()) { in ToPropertyDescriptorFast()
1983 if (desc.HasValue() || desc.HasWritable()) { in ToPropertyDescriptor()
2043 if (!desc.HasValue()) { in CompletePropertyDescriptor()

123