Lines Matching refs:thread
28 JSThread *thread = argv->GetThread();
29 BUILTINS_API_TRACE(thread, Object, Constructor);
30 [[maybe_unused]] EcmaHandleScope handleScope(thread);
31 auto ecmaVm = thread->GetEcmaVM();
41 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
53 return JSTaggedValue::ToObject(thread, value).GetTaggedValue();
56 JSTaggedValue BuiltinsObject::AssignTaggedValue(JSThread *thread, const JSHandle<JSTaggedValue> &source,
59 JSHandle<JSObject> from = JSTaggedValue::ToObject(thread, source);
60 JSHandle<TaggedArray> keys = JSTaggedValue::GetOwnPropertyKeys(thread, JSHandle<JSTaggedValue>::Cast(from));
61 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
63 JSMutableHandle<JSTaggedValue> key(thread, JSTaggedValue::Undefined());
66 PropertyDescriptor desc(thread);
68 bool success = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(from), key, desc);
69 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
74 value = ObjectFastOperator::FastGetPropertyByValue(thread, from.GetTaggedValue(),
77 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
79 ObjectFastOperator::FastSetPropertyByValue(thread, toAssign.GetTaggedValue(), key.GetTaggedValue(),
81 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
91 JSThread *thread = argv->GetThread();
92 BUILTINS_API_TRACE(thread, Object, Assign);
93 [[maybe_unused]] EcmaHandleScope handleScope(thread);
98 JSHandle<JSObject> toAssign = JSTaggedValue::ToObject(thread, target);
100 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
110 JSMutableHandle<JSTaggedValue> key(thread, JSTaggedValue::Undefined());
114 JSHandle<JSObject> from = JSTaggedValue::ToObject(thread, source);
115 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
117 JSHandle<TaggedArray> keys = JSTaggedValue::GetOwnPropertyKeys(thread, JSHandle<JSTaggedValue>::Cast(from));
119 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
131 PropertyDescriptor desc(thread);
133 bool success = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(from), key, desc);
135 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
140 value = ObjectFastOperator::FastGetPropertyByValue(thread, from.GetTaggedValue(),
144 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
146 ObjectFastOperator::FastSetPropertyByValue(thread, toAssign.GetTaggedValue(), key.GetTaggedValue(),
149 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
160 JSTaggedValue BuiltinsObject::ObjectDefineProperties(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
163 BUILTINS_API_TRACE(thread, Object, DefineProperties);
164 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
168 THROW_TYPE_ERROR_AND_RETURN(thread, "is not an object", JSTaggedValue::Exception());
172 JSHandle<JSObject> props = JSTaggedValue::ToObject(thread, prop);
175 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
178 JSHandle<TaggedArray> handleKeys = JSTaggedValue::GetOwnPropertyKeys(thread, JSHandle<JSTaggedValue>::Cast(props));
181 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
201 PropertyDescriptor propDesc(thread);
202 JSHandle<JSTaggedValue> handleKey(thread, handleKeys->Get(i));
204 bool success = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(props), handleKey, propDesc);
206 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
210 JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(props), handleKey).GetValue();
212 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
214 PropertyDescriptor desc(thread);
215 JSObject::ToPropertyDescriptor(thread, descObj, desc);
217 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
230 JSTaggedValue::DefinePropertyOrThrow(thread, obj, desArr[i].GetKey(), desArr[i]);
233 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
243 JSThread *thread = argv->GetThread();
244 BUILTINS_API_TRACE(thread, Object, Create);
245 [[maybe_unused]] EcmaHandleScope handleScope(thread);
250 THROW_TYPE_ERROR_AND_RETURN(thread, "Create: O is neither Object nor Null", JSTaggedValue::Exception());
254 THROW_TYPE_ERROR_AND_RETURN(thread, GET_MESSAGE_STRING(CreateObjectWithSendableProto),
261 JSHandle<JSObject> objCreate = thread->GetEcmaVM()->GetFactory()->OrdinaryNewJSObjectCreate(obj);
266 return ObjectDefineProperties(thread, JSHandle<JSTaggedValue>::Cast(objCreate), properties);
277 JSThread *thread = argv->GetThread();
278 BUILTINS_API_TRACE(thread, Object, DefineProperties);
279 [[maybe_unused]] EcmaHandleScope handleScope(thread);
281 return ObjectDefineProperties(thread, GetCallArg(argv, 0), GetCallArg(argv, 1));
288 JSThread *thread = argv->GetThread();
289 BUILTINS_API_TRACE(thread, Object, DefineProperty);
290 [[maybe_unused]] EcmaHandleScope handleScope(thread);
296 THROW_TYPE_ERROR_AND_RETURN(thread, "DefineProperty: O is not Object", JSTaggedValue::Exception());
301 JSHandle<JSTaggedValue> key = JSTaggedValue::ToPropertyKey(thread, prop);
304 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
306 PropertyDescriptor desc(thread);
307 JSObject::ToPropertyDescriptor(thread, GetCallArg(argv, BuiltinsBase::ArgsPosition::THIRD), desc);
310 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
313 [[maybe_unused]] bool success = JSTaggedValue::DefinePropertyOrThrow(thread, obj, key, desc);
316 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
325 JSThread *thread = argv->GetThread();
326 BUILTINS_API_TRACE(thread, Object, Freeze);
334 [[maybe_unused]] EcmaHandleScope handleScope(thread);
338 status = JSObject::FreezeSharedObject(thread, JSHandle<JSObject>(obj));
340 THROW_TYPE_ERROR_AND_RETURN(thread, GET_MESSAGE_STRING(UpdateSendableAttributes), JSTaggedValue::Exception());
342 status = JSObject::SetIntegrityLevel(thread, JSHandle<JSObject>(obj), IntegrityLevel::FROZEN);
346 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
351 THROW_TYPE_ERROR_AND_RETURN(thread, "Freeze: freeze failed", JSTaggedValue::Exception());
362 JSThread *thread = argv->GetThread();
363 BUILTINS_API_TRACE(thread, Object, GetOwnPropertyDescriptor);
364 [[maybe_unused]] EcmaHandleScope handleScope(thread);
368 JSHandle<JSObject> handle = JSTaggedValue::ToObject(thread, func);
371 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
375 JSHandle<JSTaggedValue> key = JSTaggedValue::ToPropertyKey(thread, prop);
378 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
381 PropertyDescriptor desc(thread);
382 JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(handle), key, desc);
385 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
388 JSHandle<JSTaggedValue> res = JSObject::FromPropertyDescriptor(thread, desc);
395 JSThread *thread = argv->GetThread();
396 BUILTINS_API_TRACE(thread, Object, GetOwnPropertyDescriptors);
397 [[maybe_unused]] EcmaHandleScope handleScope(thread);
401 JSHandle<JSObject> handle = JSTaggedValue::ToObject(thread, func);
404 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
408 JSTaggedValue::GetOwnPropertyKeys(thread, JSHandle<JSTaggedValue>(handle));
411 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
414 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
415 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
424 JSMutableHandle<JSTaggedValue> handleKey(thread, JSTaggedValue::Undefined());
427 PropertyDescriptor desc(thread);
428 JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(handle), handleKey, desc);
429 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
430 JSHandle<JSTaggedValue> descriptor = JSObject::FromPropertyDescriptor(thread, desc);
432 JSObject::CreateDataPropertyOrThrow(thread, descriptors, handleKey, descriptor);
433 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
442 JSTaggedValue BuiltinsObject::GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSTaggedValue> &object,
445 BUILTINS_API_TRACE(thread, Object, GetOwnPropertyKeys);
447 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
448 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, object);
451 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
454 JSHandle<TaggedArray> handleKeys = JSTaggedValue::GetOwnPropertyKeys(thread, JSHandle<JSTaggedValue>::Cast(obj));
457 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
471 nameList->Set(thread, copyLength, key);
481 nameList->Set(thread, copyLength, key);
493 JSHandle<JSArray> resultArray = JSArray::CreateArrayFromList(thread, resultList);
501 JSThread *thread = argv->GetThread();
502 BUILTINS_API_TRACE(thread, Object, GetOwnPropertyNames);
503 [[maybe_unused]] EcmaHandleScope handleScope(thread);
508 return GetOwnPropertyKeys(thread, obj, type);
515 JSThread *thread = argv->GetThread();
516 BUILTINS_API_TRACE(thread, Object, GetOwnPropertySymbols);
517 [[maybe_unused]] EcmaHandleScope handleScope(thread);
522 return GetOwnPropertyKeys(thread, obj, type);
529 JSThread *thread = argv->GetThread();
530 BUILTINS_API_TRACE(thread, Object, GetPrototypeOf);
531 [[maybe_unused]] EcmaHandleScope handleScope(thread);
536 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, func);
539 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
542 return JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(obj));
560 JSThread *thread = argv->GetThread();
561 BUILTINS_API_TRACE(thread, Object, IsExtensible);
567 [[maybe_unused]] EcmaHandleScope handleScope(thread);
569 return GetTaggedBoolean(obj.IsExtensible(thread));
583 JSThread *thread = argv->GetThread();
584 [[maybe_unused]] EcmaHandleScope handleScope(thread);
587 bool status = JSObject::TestIntegrityLevel(thread, JSHandle<JSObject>(obj), IntegrityLevel::FROZEN);
602 JSThread *thread = argv->GetThread();
603 [[maybe_unused]] EcmaHandleScope handleScope(thread);
606 bool status = JSObject::TestIntegrityLevel(thread, JSHandle<JSObject>(obj), IntegrityLevel::SEALED);
614 JSThread *thread = argv->GetThread();
615 BUILTINS_API_TRACE(thread, Object, Keys);
616 [[maybe_unused]] EcmaHandleScope handleScope(thread);
621 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, msg);
624 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
627 JSHandle<TaggedArray> nameList = JSObject::EnumerableOwnNames(thread, obj);
630 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
633 JSHandle<JSArray> result = JSArray::CreateArrayFromList(thread, nameList);
641 JSThread *thread = argv->GetThread();
642 BUILTINS_API_TRACE(thread, Object, Values);
643 [[maybe_unused]] EcmaHandleScope handleScope(thread);
647 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, msg);
650 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
653 JSHandle<TaggedArray> nameList = JSObject::EnumerableOwnPropertyNames(thread, obj, PropertyKind::VALUE);
656 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
659 JSHandle<JSArray> result = JSArray::CreateArrayFromList(thread, nameList);
667 JSThread *thread = argv->GetThread();
668 BUILTINS_API_TRACE(thread, Object, PreventExtensions);
674 [[maybe_unused]] EcmaHandleScope handleScope(thread);
676 bool status = JSTaggedValue::PreventExtensions(thread, obj);
679 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
684 THROW_TYPE_ERROR_AND_RETURN(thread, "PreventExtensions: preventExtensions failed",
697 JSThread *thread = argv->GetThread();
698 BUILTINS_API_TRACE(thread, Object, Seal);
706 [[maybe_unused]] EcmaHandleScope handleScope(thread);
709 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, msg);
710 bool status = JSObject::SetIntegrityLevel(thread, object, IntegrityLevel::SEALED);
713 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
718 THROW_TYPE_ERROR_AND_RETURN(thread, "Seal: seal failed", JSTaggedValue::Exception());
729 JSThread *thread = argv->GetThread();
730 BUILTINS_API_TRACE(thread, Object, SetPrototypeOf);
731 [[maybe_unused]] EcmaHandleScope handleScope(thread);
733 JSHandle<JSTaggedValue> object = JSTaggedValue::RequireObjectCoercible(thread, GetCallArg(argv, 0));
736 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
742 THROW_TYPE_ERROR_AND_RETURN(thread, "SetPrototypeOf: proto is neither Object nor Null",
752 bool status = JSTaggedValue::SetPrototype(thread, object, proto);
755 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
760 THROW_TYPE_ERROR_AND_RETURN(thread, "SetPrototypeOf: prototype set failed", JSTaggedValue::Exception());
773 JSThread *thread = argv->GetThread();
774 BUILTINS_API_TRACE(thread, Object, HasOwnProperty);
775 [[maybe_unused]] EcmaHandleScope handleScope(thread);
778 return HasOwnPropertyInternal(thread, thisValue, prop);
781 JSTaggedValue BuiltinsObject::HasOwnPropertyInternal(JSThread *thread, JSHandle<JSTaggedValue> thisValue,
784 [[maybe_unused]] EcmaHandleScope handleScope(thread);
785 std::pair<JSTaggedValue, bool> result = ObjectFastOperator::HasOwnProperty(thread, thisValue.GetTaggedValue(),
794 JSHandle<JSTaggedValue> property = JSTaggedValue::ToPropertyKey(thread, prop);
797 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
800 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, thisValue);
803 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
806 bool res = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(object), property);
814 JSThread *thread = argv->GetThread();
815 BUILTINS_API_TRACE(thread, Object, IsPrototypeOf);
821 [[maybe_unused]] EcmaHandleScope handleScope(thread);
823 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv));
825 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
831 JSMutableHandle<JSTaggedValue> msgValueHandle(thread, msg.GetTaggedValue());
833 msgValueHandle.Update(JSTaggedValue::GetPrototype(thread, msgValueHandle));
834 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
848 JSThread *thread = argv->GetThread();
849 BUILTINS_API_TRACE(thread, Object, PropertyIsEnumerable);
850 [[maybe_unused]] EcmaHandleScope handleScope(thread);
852 JSHandle<JSTaggedValue> property = JSTaggedValue::ToPropertyKey(thread, msg);
855 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
858 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv));
860 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
863 PropertyDescriptor desc(thread);
864 JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(object), property, desc);
867 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
882 JSThread *thread = argv->GetThread();
883 BUILTINS_API_TRACE(thread, Object, ToLocaleString);
884 [[maybe_unused]] EcmaHandleScope handleScope(thread);
887 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
890 JSHandle<JSTaggedValue> calleeKey = thread->GlobalConstants()->GetHandledToStringString();
892 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined();
893 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, object, undefined, argsLength);
894 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
899 JSTaggedValue BuiltinsObject::GetBuiltinObjectToString(JSThread *thread, const JSHandle<JSObject> &object)
901 BUILTINS_API_TRACE(thread, Object, GetBuiltinObjectToString);
903 bool isArray = object.GetTaggedValue().IsArray(thread);
905 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
909 return thread->GlobalConstants()->GetArrayToString();
914 return thread->GlobalConstants()->GetStringToString();
917 return thread->GlobalConstants()->GetBooleanToString();
920 return thread->GlobalConstants()->GetNumberToString();
924 return thread->GlobalConstants()->GetArgumentsToString();
927 return thread->GlobalConstants()->GetFunctionToString();
930 return thread->GlobalConstants()->GetErrorToString();
933 return thread->GlobalConstants()->GetDateToString();
936 return thread->GlobalConstants()->GetRegExpToString();
939 return thread->GlobalConstants()->GetObjectToString();
946 JSThread *thread = argv->GetThread();
947 BUILTINS_API_TRACE(thread, Object, ToString);
948 [[maybe_unused]] EcmaHandleScope handleScope(thread);
953 return thread->GlobalConstants()->GetUndefinedToString();
957 return thread->GlobalConstants()->GetNullToString();
961 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv));
962 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
965 auto ecmaVm = thread->GetEcmaVM();
969 JSHandle<JSTaggedValue> tag = JSTaggedValue::GetProperty(thread, msg, env->GetToStringTagSymbol()).GetValue();
972 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
976 return GetBuiltinObjectToString(thread, object);
984 factory->ConcatFromString(leftString, JSTaggedValue::ToString(thread, tag));
985 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
994 JSThread *thread = argv->GetThread();
995 BUILTINS_API_TRACE(thread, Object, ValueOf);
996 [[maybe_unused]] EcmaHandleScope handleScope(thread);
999 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, GetThis(argv));
1000 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1007 JSThread *thread = argv->GetThread();
1008 BUILTINS_API_TRACE(thread, Object, ProtoGetter);
1009 [[maybe_unused]] EcmaHandleScope handleScope(thread);
1012 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, GetThis(argv));
1015 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1018 return JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(obj));
1024 JSThread *thread = argv->GetThread();
1025 BUILTINS_API_TRACE(thread, Object, ProtoSetter);
1026 [[maybe_unused]] EcmaHandleScope handleScope(thread);
1028 JSHandle<JSTaggedValue> obj = JSTaggedValue::RequireObjectCoercible(thread, GetThis(argv));
1031 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1045 bool status = JSTaggedValue::SetPrototype(thread, obj, proto, true);
1048 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1053 THROW_TYPE_ERROR_AND_RETURN(thread, "ProtoSetter: proto set failed", JSTaggedValue::Exception());
1063 JSThread *thread = argv->GetThread();
1064 BUILTINS_API_TRACE(thread, Object, CreateRealm);
1065 [[maybe_unused]] EcmaHandleScope handleScope(thread);
1066 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
1074 JSThread *thread = argv->GetThread();
1075 BUILTINS_API_TRACE(thread, Object, ToString);
1076 [[maybe_unused]] EcmaHandleScope handleScope(thread);
1081 THROW_RANGE_ERROR_AND_RETURN(thread, "Object entries is not supported IsJSUint8Array or IsJSUint16Array",
1084 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, obj);
1085 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1087 JSHandle<TaggedArray> nameList = JSObject::EnumerableOwnPropertyNames(thread, object, PropertyKind::KEY_VALUE);
1088 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1090 return JSArray::CreateArrayFromList(thread, nameList).GetTaggedValue();
1096 JSThread *thread = argv->GetThread();
1097 BUILTINS_API_TRACE(thread, Object, FromEntries);
1098 [[maybe_unused]] EcmaHandleScope handleScope(thread);
1103 THROW_TYPE_ERROR_AND_RETURN(thread, "iterable is undefined or null", JSTaggedValue::Exception());
1108 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
1109 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
1117 JSHandle<Method> method(thread,
1118 thread->GetEcmaVM()->GetMethodByIndex(MethodIndex::BUILTINS_OBJECT_CREATE_DATA_PROPERTY_ON_OBJECT_FUNCTIONS));
1121 JSHandle<JSTaggedValue> adder(thread, addrFunc.GetTaggedValue());
1124 return BuiltinsMap::AddEntriesFromIterable(thread, obj, iterable, adder, factory);
1130 JSThread *thread = argv->GetThread();
1131 BUILTINS_API_TRACE(thread, Object, CreateDataPropertyOnObjectFunctions);
1132 [[maybe_unused]] EcmaHandleScope handleScope(thread);
1146 JSHandle<JSTaggedValue> propertyKey = JSTaggedValue::ToPropertyKey(thread, key);
1147 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1150 JSObject::CreateDataPropertyOrThrow(thread, thisObjHandle, propertyKey, value);
1151 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1160 JSThread *thread = argv->GetThread();
1161 BUILTINS_API_TRACE(thread, Object, HasOwn);
1162 [[maybe_unused]] EcmaHandleScope handleScope(thread);
1166 JSHandle<JSObject> object = JSTaggedValue::ToObject(thread, obj);
1169 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1173 JSHandle<JSTaggedValue> key = JSTaggedValue::ToPropertyKey(thread, prop);
1176 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
1179 bool res = JSTaggedValue::HasOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(object), key);