/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_lazy_test.cpp | 67 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, dateFunction, key)); in HWTEST_F_L0() 91 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, setObject, key)); in HWTEST_F_L0() 115 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, mapObject, key)); in HWTEST_F_L0() 139 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, weakMapObject, key)); in HWTEST_F_L0() 163 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, weakSetObject, key)); in HWTEST_F_L0() 187 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, weakRefObject, key)); in HWTEST_F_L0() 210 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, object, key)); in HWTEST_F_L0() 233 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, object, key)); in HWTEST_F_L0() 256 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, object, key)); in HWTEST_F_L0() 279 ASSERT_TRUE(JSTaggedValue::HasProperty(threa in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_primitive_ref_test.cpp | 40 bool status = JSPrimitiveRef::HasProperty(thread, str, idx); in HWTEST_F_L0()
|
H A D | js_hclass_test.cpp | 218 EXPECT_TRUE(JSObject::HasProperty(thread, childObj, keyHandle0)); in HWTEST_F_L0() 219 EXPECT_TRUE(JSObject::HasProperty(thread, childObj, keyHandle2)); in HWTEST_F_L0() 220 EXPECT_TRUE(JSObject::HasProperty(thread, childObj, keyHandle4)); in HWTEST_F_L0() 280 EXPECT_TRUE(JSObject::HasProperty(thread, Obj, keyHandle0)); in HWTEST_F_L0() 281 EXPECT_TRUE(JSObject::HasProperty(thread, Obj, keyHandle1)); in HWTEST_F_L0() 282 EXPECT_TRUE(JSObject::HasProperty(thread, Obj, keyHandle2)); in HWTEST_F_L0()
|
H A D | js_proxy_test.cpp | 436 // ES6 9.5.7 [[HasProperty]] (P) 437 HWTEST_F_L0(JSProxyTest, HasProperty) in HWTEST_F_L0() 446 EXPECT_TRUE(JSProxy::HasProperty(thread, proxyHandle, key)); in HWTEST_F_L0() 448 // 2. handler has "HasProperty" in HWTEST_F_L0() 457 EXPECT_FALSE(JSProxy::HasProperty(thread, proxyHandle2, key)); in HWTEST_F_L0()
|
H A D | js_object_test.cpp | 323 HWTEST_F_L0(JSObjectTest, HasProperty) in HWTEST_F_L0() 334 bool flag = JSObject::HasProperty(thread, obj, key); in HWTEST_F_L0() 338 flag = JSObject::HasProperty(thread, obj, key); in HWTEST_F_L0() 342 flag = JSObject::HasProperty(thread, obj, key); in HWTEST_F_L0() 370 bool flag = JSObject::HasProperty(thread, son, sonKey); in HWTEST_F_L0() 372 flag = JSObject::HasProperty(thread, son, fatherKey); in HWTEST_F_L0() 374 flag = JSObject::HasProperty(thread, son, grandfatherKey); in HWTEST_F_L0() 882 EXPECT_FALSE(JSObject::HasProperty(thread, obj1, key5)); in HWTEST_F_L0()
|
H A D | js_typed_array_test.cpp | 1179 * SubFunction: GetOwnProperty/HasProperty 1183 * PropertyDescriptor, check whether the bool returned through calling HasProperty function with the 1197 EXPECT_TRUE(JSTypedArray::HasProperty(thread, handleTagValTypedArray, handleTagValKey)); in HWTEST_F_L0() 1199 EXPECT_TRUE(JSTypedArray::HasProperty(thread, handleTagValTypedArray, handleTagValKey)); in HWTEST_F_L0() 1216 * SubFunction: GetProperty/HasProperty 1219 * value(JSTaggedValue), check whether the bool returned through calling HasProperty function with the 1233 EXPECT_TRUE(JSTypedArray::HasProperty(thread, handleTagValTypedArray, handleTagValKey)); in HWTEST_F_L0() 1236 EXPECT_TRUE(JSTypedArray::HasProperty(thread, handleTagValTypedArray, handleTagValKey)); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_for_in_iterator.cpp | 61 bool JSForInIterator::HasProperty(JSThread *thread, JSHandle<JSTaggedValue> receiver, JSHandle<JSTaggedValue> key) in HasProperty() function in panda::ecmascript::JSForInIterator 122 has = HasProperty(thread, receiverHandle, keyHandle); in NextInternalSlowpath()
|
H A D | js_for_in_iterator.h | 49 static bool HasProperty(JSThread *thread, JSHandle<JSTaggedValue> receiver, JSHandle<JSTaggedValue> key);
|
H A D | js_tagged_value.cpp | 1334 // 7.3.10 HasProperty (O, P) 1335 bool JSTaggedValue::HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in HasProperty() function in panda::ecmascript::JSTaggedValue 1339 return JSProxy::HasProperty(thread, JSHandle<JSProxy>(obj), key); in HasProperty() 1342 return JSTypedArray::HasProperty(thread, obj, key); in HasProperty() 1345 return ModuleNamespace::HasProperty(thread, obj, key); in HasProperty() 1350 return JSObject::HasProperty(thread, JSHandle<JSObject>(obj), key); in HasProperty() 1353 bool JSTaggedValue::HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t key) in HasProperty() function in panda::ecmascript::JSTaggedValue 1357 return JSProxy::HasProperty(thread, JSHandle<JSProxy>(obj), keyHandle); in HasProperty() 1361 return JSTypedArray::HasProperty(thread, obj, keyHandle); in HasProperty() 1366 return JSObject::HasProperty(threa in HasProperty() [all...] |
H A D | js_proxy.h | 45 // ES6 9.5.7 [[HasProperty]] (P) 46 static bool HasProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedValue> &key);
|
H A D | js_stable_array.cpp | 233 bool exists = JSTaggedValue::HasProperty(thread, thisObjVal, fromKey); in Splice() 297 bool exists = JSTaggedValue::HasProperty(thread, thisObjVal, fromKey); in Splice() 524 if (element.IsHole() && JSTaggedValue::HasProperty(thread, receiverValue, k)) { in Join() 691 } else if (JSTaggedValue::HasProperty(thread, thisObjVal, k)) { in HandleEveryOfStable() 733 } else if (JSTaggedValue::HasProperty(thread, thisObjVal, k)) { in HandleSomeOfStable() 783 } else if (JSTaggedValue::HasProperty(thread, thisObjVal, k)) { in HandleforEachOfStable() 1048 if (value.IsHole() && JSTaggedValue::HasProperty(thread, thisObjVal, k)) { 1095 if (value.IsHole() && JSTaggedValue::HasProperty(thread, thisObjVal, k)) { 1472 if (value->IsHole() && JSTaggedValue::HasProperty(thread, thisObjVal, i + k)) { 1549 } else if (JSTaggedValue::HasProperty(threa [all...] |
H A D | js_typed_array.h | 49 // 9.4.5.2 [[HasProperty]] ( P ) 50 static bool HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &typedarray,
|
H A D | js_tagged_value.h | 460 static bool HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key); 461 static bool HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t key);
|
H A D | js_typed_array.cpp | 70 // 9.4.5.2 [[HasProperty]] ( P ) 71 bool JSTypedArray::HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &typedarray, in HasProperty() function in panda::ecmascript::JSTypedArray 129 return JSTaggedValue::HasProperty(thread, JSHandle<JSTaggedValue>(thread, parent), key); in HasProperty()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | js_module_namespace.h | 46 // 9.4.6.6[[HasProperty]] 47 static bool HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key);
|
H A D | js_module_namespace.cpp | 262 bool ModuleNamespace::HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in HasProperty() function in panda::ecmascript::ModuleNamespace 268 return JSObject::HasProperty(thread, JSHandle<JSObject>(obj), key); in HasProperty()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | array_helper.cpp | 106 JSTaggedValue::HasProperty(thread, thisObjVal, keyHandle); in ElementIsStrictEqualTo() 303 // b. Let exists be ? HasProperty(source, P). in FlattenIntoArray() 326 bool exists = JSTaggedValue::HasProperty(thread, thisObjVal, p); in FlattenIntoArray() 390 // i. Let kRead be ? HasProperty(obj, Pk). in SortIndexedProperties() 404 kRead = JSTaggedValue::HasProperty(thread, thisObj, pk); in SortIndexedProperties()
|
H A D | error_helper.cpp | 166 // If options is an Object and ? HasProperty(options, "cause") is true, then in ErrorCommonConstructor() 171 bool causePresent = JSTaggedValue::HasProperty(thread, options, causeKey); in ErrorCommonConstructor()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_shared_array.cpp | 460 // 2. Let exists be HasProperty(E, P). in Concat() 464 bool exists = JSTaggedValue::HasProperty(thread, ele, fromKey); in Concat() 544 bool exists = JSTaggedValue::HasProperty(thread, thisObjVal, k); in CheckElementForEvery() 598 // b. Let kPresent be HasProperty(O, Pk). in Every() 655 // b. Let kPresent be HasProperty(O, Pk). in Some() 677 JSTaggedValue::HasProperty(thread, thisObjVal, k)); in Some() 829 bool exists = JSTaggedValue::HasProperty(thread, thisObjVal, k); in FilterUnStableJSArray() 898 // b. Let kPresent be HasProperty(O, Pk). in Filter() 1103 // b. Let kPresent be HasProperty(O, Pk). in ForEach() 1120 bool exists = JSTaggedValue::HasProperty(threa in ForEach() [all...] |
H A D | builtins_array.cpp | 538 // 2. Let exists be HasProperty(E, P). in Concat() 542 bool exists = JSTaggedValue::HasProperty(thread, ele, fromKey); in Concat() 665 // c. Let fromPresent be HasProperty(O, fromKey). in CopyWithin() 684 JSTaggedValue::HasProperty(thread, thisObjVal, fromKey)); in CopyWithin() 757 // b. Let kPresent be HasProperty(O, Pk). in Every() 779 bool exists = JSTaggedValue::HasProperty(thread, thisObjVal, k); in Every() 905 bool exists = JSTaggedValue::HasProperty(thread, thisObjVal, k); in FilterUnStableJSArray() 970 // b. Let kPresent be HasProperty(O, Pk). in Filter() 1158 // b. Let kPresent be HasProperty(O, Pk). in ForEach() 1175 bool exists = JSTaggedValue::HasProperty(threa in ForEach() [all...] |
H A D | builtins_errors.cpp | 157 // If options is an Object and ? HasProperty(options, "cause") is true, then in AggregateErrorConstructor() 162 bool causePresent = JSTaggedValue::HasProperty(thread, options, causeKey); in AggregateErrorConstructor()
|
H A D | builtins_reflect.cpp | 234 // 3. Return ? target.[[HasProperty]](key). in ReflectHasInternal() 235 return GetTaggedBoolean(JSTaggedValue::HasProperty(thread, target, propertyKey)); in ReflectHasInternal()
|
/arkcompiler/ets_runtime/ecmascript/serializer/ |
H A D | value_serializer.cpp | 438 bool exists = JSTaggedValue::HasProperty(thread, transfer, k); in PrepareTransfer() 462 bool exists = JSTaggedValue::HasProperty(thread, cloneList, index); in PrepareClone()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_array_stub_builder.cpp | 603 GateRef hasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), { thisValue, IntToTaggedInt(*i) }); in Filter() 763 GateRef hasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), { thisValue, IntToTaggedInt(*i) }); in Map() 900 GateRef hasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), { thisValue, IntToTaggedInt(*i) }); in ForEach() 950 GateRef hasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), { thisValue, IntToTaggedInt(*i) }); in ForEach() 1470 GateRef presentValueHasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), { receiver, IntToTaggedInt(*i) }); in DoSort() 1504 GateRef middleValueHasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), in DoSort() 1604 GateRef previousValueHasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), in DoSort() 3619 GateRef hasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), in CopyWithin() 3770 GateRef hasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), { thisValue, IntToTaggedInt(*i) }); in Some() 3851 GateRef hasProp = CallRuntime(glue, RTSTUB_ID(HasProperty), { thisValu in Some() [all...] |
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stub_list.h | 469 V(HasProperty) \
|