Lines Matching refs:thread_

32         key_ = JSHandle<JSTaggedValue>::Cast(base::NumberHelper::NumberToString(thread_, JSTaggedValue(keyInt)));
48 key_ = JSHandle<JSTaggedValue>(thread_, thread_->GetEcmaVM()->GetFactory()->InternString(key));
61 key_ = JSHandle<JSTaggedValue>::Cast(base::NumberHelper::NumberToString(thread_, key.GetTaggedValue()));
63 key_ = JSHandle<JSTaggedValue>(thread_, thread_->GetEcmaVM()->GetFactory()->InternString(key_));
73 JSHandle<JSTaggedValue> keyHandle(thread_, JSTaggedValue::ToPrimitive(thread_, key, PREFER_STRING));
74 RETURN_IF_ABRUPT_COMPLETION(thread_);
79 key_ = JSHandle<JSTaggedValue>(thread_,
80 thread_->GetEcmaVM()->GetFactory()->InternString(
81 JSHandle<JSTaggedValue>::Cast(JSTaggedValue::ToString(thread_, keyHandle))));
87 JSHandle<JSTaggedValue> undefined = thread_->GlobalConstants()->GetHandledUndefined();
88 holder_.Update(JSPrimitiveRef::StringCreate(thread_, holder_, undefined).GetTaggedValue());
93 holder_.Update(JSTaggedValue::ToPrototypeOrObj(thread_, holder_).GetTaggedValue());
132 : thread_(thread),
142 : thread_(thread), holder_(thread, holder.GetTaggedValue()), receiver_(thread, holder.GetTaggedValue())
150 : thread_(thread), holder_(thread, holder.GetTaggedValue()), receiver_(thread, holder.GetTaggedValue())
158 : thread_(thread),
169 : thread_(thread), holder_(thread, holder.GetTaggedValue()), receiver_(thread, receiver.GetTaggedValue())
179 : thread_(thread), holder_(thread, receiver), receiver_(thread, receiver), key_(thread, name)
196 return JSHandle<JSTaggedValue>(thread_, JSObject::CallGetter(thread_, accessor, receiver_));
200 : thread_(thread), receiver_(thread, receiver), key_(thread, name)
307 ObjectOperator::UpdateDetector(thread_, holder_.GetTaggedValue(), key_.GetTaggedValue());
435 desc.SetValue(JSHandle<JSTaggedValue>(thread_, val));
447 auto val = accessor->CallInternalGet(thread_, JSHandle<JSObject>::Cast(GetHolder()));
448 JSMutableHandle<JSTaggedValue> value(thread_, val);
451 cell->SetValue(thread_, val);
456 desc.SetGetter(JSHandle<JSTaggedValue>(thread_, accessor->GetGetter()));
457 desc.SetSetter(JSHandle<JSTaggedValue>(thread_, accessor->GetSetter()));
471 JSTaggedValue proto = JSTaggedValue::GetPrototype(thread_, holder_);
472 RETURN_IF_ABRUPT_COMPLETION(thread_);
496 JSTaggedValue proto = JSTaggedValue::GetPrototype(thread_, holder_);
497 RETURN_IF_ABRUPT_COMPLETION(thread_);
561 int entry = JSHClass::FindPropertyEntry(thread_, jshclass, key_.GetTaggedValue());
603 JSObject::ElementsToDictionary(thread_, receiver);
604 RETURN_IF_ABRUPT_COMPLETION(thread_);
609 dict->SetAttributes(thread_, index, attr);
612 dict->SetAttributes(thread_, index, attr);
618 JSHandle<GlobalDictionary> dictHandle(thread_, receiver->GetProperties());
619 dictHandle->SetAttributes(thread_, index, attr);
620 GlobalDictionary::InvalidatePropertyBox(thread_, dictHandle, index);
624 JSHandle<NameDictionary> dict(JSObject::TransitionToDictionary(thread_, receiver));
625 RETURN_IF_ABRUPT_COMPLETION(thread_);
630 dict->SetAttributes(thread_, index, attr);
633 dict->SetAttributes(thread_, index, attr);
654 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false);
660 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false);
672 JSArray::CheckAndCopyArray(thread_, JSHandle<JSArray>(receiver));
676 JSTaggedValue typedArrayProperty = JSTypedArray::FastSetPropertyByIndex(thread_,
678 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false);
685 if (JSHClass::TransitToElementsKind(thread_, receiver, value)) {
689 Elements::MigrateArrayWithKind(thread_, receiver, oldKind, newKind);
691 ElementAccessor::Set(thread_, receiver, GetIndex(), value, false);
696 dict->UpdateValue(thread_, GetIndex(), value.GetTaggedValue());
706 dict->SetAttributes(thread_, GetIndex(), attr);
709 cell->SetValue(thread_, value.GetTaggedValue());
716 bool res = accessor->CallInternalSet(thread_, JSHandle<JSObject>(receiver), value, mayThrow);
725 JSMutableHandle<TaggedArray> properties(thread_, TaggedArray::Cast(receiver->GetProperties().GetTaggedObject()));
737 JSHClass::ConvertOrTransitionWithRep(thread_, objHandle, key_, value, attr);
738 JSObject::TryMigrateToGenericKindForJSObject(thread_, objHandle, oldKind);
745 receiver->SetPropertyInlinedPropsWithRep(thread_, GetIndex(), actualValue.value);
748 JSArray::CheckAndCopyArray(thread_, JSHandle<JSArray>(receiver));
752 properties->Set<true>(thread_, GetIndex(), value.GetTaggedValue());
754 properties->Set<false>(thread_, GetIndex(), actualValue.value);
758 properties.GetObject<NameDictionary>()->UpdateValue(thread_, GetIndex(), value.GetTaggedValue());
786 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false);
813 JSHandle<AccessorData> accessor = thread_->GetEcmaVM()->GetFactory()->NewAccessorData();
816 accessor->SetGetter(thread_, desc.GetGetter().GetTaggedValue());
818 accessor->SetGetter(thread_, JSHandle<AccessorData>::Cast(value_)->GetGetter());
821 accessor->SetSetter(thread_, desc.GetSetter().GetTaggedValue());
823 accessor->SetSetter(thread_, JSHandle<AccessorData>::Cast(value_)->GetSetter());
826 JSHandle<NameDictionary> dict(JSObject::TransitionToDictionary(thread_, receiver));
827 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false);
830 dict->UpdateValueAndAttributes(thread_, entry, accessor.GetTaggedValue(), attr);
840 (IsAccessorDescriptor() && !JSHandle<AccessorData>(thread_, valueAccessor)->IsInternal()) ?
841 JSHandle<AccessorData>(thread_, valueAccessor) :
842 thread_->GetEcmaVM()->GetFactory()->NewAccessorData();
844 accessor->SetGetter(thread_, desc.GetGetter().GetTaggedValue());
848 accessor->SetSetter(thread_, desc.GetSetter().GetTaggedValue());
861 JSHandle<ProtoChangeMarker> markerHandle = thread_->GetEcmaVM()->GetFactory()->NewProtoChangeMarker();
862 obj->GetJSHClass()->SetProtoChangeMarker(thread_, markerHandle.GetTaggedValue());
864 JSHClass::NotifyAccessorChanged(thread_, JSHandle<JSHClass>(thread_, obj->GetJSHClass()));
875 ObjectOperator::UpdateDetector(thread_, holder_.GetTaggedValue(), key_.GetTaggedValue());
876 JSObject::DeletePropertyInternal(thread_, JSHandle<JSObject>(holder_), key_, GetIndex());
886 bool ret = JSObject::AddElementInternal(thread_, receiver, elementIndex_, value, attr);
887 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false);
913 ElementAccessor::Set(thread_, receiver, index_, value, true);
919 dictionary->UpdateValue(thread_, GetIndex(), value.GetTaggedValue());
927 JSSharedArray::DeleteInElementMode(thread_, arrayHandler);
930 JSHandle<JSTaggedValue> holeHandle(thread_, JSTaggedValue::Hole());
932 ElementAccessor::Set(thread_, obj, index_, holeHandle, true, ElementsKind::HOLE);
933 JSObject::ElementsToDictionary(thread_, JSHandle<JSObject>(holder_));
934 RETURN_IF_ABRUPT_COMPLETION(thread_);
937 JSHandle<NumberDictionary> dictHandle(thread_, elements);
938 JSHandle<NumberDictionary> newDict = NumberDictionary::Remove(thread_, dictHandle, GetIndex());
939 obj->SetElements(thread_, newDict);
983 PropertyDescriptor desc(thread_);
984 bool status = JSPrimitiveRef::StringGetIndexProperty(thread_, obj, elementIndex_, &desc);
994 JSTaggedValue val = JSTypedArray::FastElementGet(thread_,
996 RETURN_IF_ABRUPT_COMPLETION(thread_);
1034 ObjectFactory *factory = thread_->GetEcmaVM()->GetFactory();
1038 JSMutableHandle<GlobalDictionary> dict(thread_, obj->GetProperties());
1040 dict.Update(GlobalDictionary::Create(thread_));
1045 cellHandle->SetValue(thread_, value.GetTaggedValue());
1050 GlobalDictionary::PutIfAbsent(thread_, dict, key_, JSHandle<JSTaggedValue>(cellHandle), attr);
1051 obj->SetProperties(thread_, properties);
1064 JSHClass::ConvertOrTransitionWithRep(thread_, objHandle, key_, value, attr);
1065 JSObject::TryMigrateToGenericKindForJSObject(thread_, objHandle, oldKind);
1072 JSObject::Cast(receiver_.GetTaggedValue())->SetProperty<true>(thread_, hclass,
1075 JSObject::Cast(receiver_.GetTaggedValue())->SetProperty<false>(thread_, hclass, attr, actualValue.value);
1085 attr = ObjectFastOperator::AddPropertyByName(thread_, obj, key_, value, attr);
1086 RETURN_IF_ABRUPT_COMPLETION(thread_);
1100 accessor->SetSetter(thread_, value.GetTaggedValue());
1108 accessor->SetGetter(thread_, value.GetTaggedValue());