• Home
  • Raw
  • Download

Lines Matching refs:receiver

44 #define CHECK_IS_ON_PROTOTYPE_CHAIN(receiver, holder) \  argument
45 if (UNLIKELY((receiver) != (holder))) { \
50 … JSTaggedValue receiver, JSTaggedValue key) in HasOwnProperty() argument
53 if (!receiver.IsHeapObject() || !(receiver.IsRegularObject())) { in HasOwnProperty()
63 JSHandle<JSObject> receiverObj(thread, receiver); in HasOwnProperty()
76 NumberDictionary::Cast(JSObject::Cast(receiver)->GetElements().GetTaggedObject()); in HasOwnProperty()
93 auto *hclass = receiver.GetTaggedObject()->GetClass(); in HasOwnProperty()
95 …ASSERT(!TaggedArray::Cast(JSObject::Cast(receiver)->GetProperties().GetTaggedObject())->IsDictiona… in HasOwnProperty()
101 …TaggedArray *array = TaggedArray::Cast(JSObject::Cast(receiver)->GetProperties().GetTaggedObject()… in HasOwnProperty()
113 JSTaggedValue ObjectFastOperator::GetPropertyByName(JSThread *thread, JSTaggedValue receiver, in GetPropertyByName() argument
119 JSTaggedValue holder = receiver; in GetPropertyByName()
125 JSTaggedValue res = FastGetTypeArrayProperty(thread, receiver, holder, key, jsType); in GetPropertyByName()
149 return CallGetter(thread, receiver, holder, value); in GetPropertyByName()
168 return CallGetter(thread, receiver, holder, value); in GetPropertyByName()
184 JSTaggedValue ObjectFastOperator::SetPropertyByName(JSThread *thread, JSTaggedValue receiver, JSTag… in SetPropertyByName() argument
189 JSTaggedValue holder = receiver; in SetPropertyByName()
196 … JSTaggedValue res = FastSetTypeArrayProperty(thread, receiver, holder, key, value, jsType); in SetPropertyByName()
218 if (ShouldCallSetter(receiver, holder, accessor, attr)) { in SetPropertyByName()
219 return CallSetter(thread, receiver, value, accessor); in SetPropertyByName()
230 if (receiverHoleEntry == -1 && holder == receiver) { in SetPropertyByName()
240 if (UNLIKELY(holder != receiver)) { in SetPropertyByName()
261 if (ShouldCallSetter(receiver, holder, accessor, attr)) { in SetPropertyByName()
262 return CallSetter(thread, receiver, value, accessor); in SetPropertyByName()
270 if (UNLIKELY(holder != receiver)) { in SetPropertyByName()
290 auto *receiverHClass = receiver.GetTaggedObject()->GetClass(); in SetPropertyByName()
293 JSObject::Cast(receiver)->SetProperty(thread, receiverHClass, attr, value); in SetPropertyByName()
298 JSHandle<JSObject> objHandle(thread, receiver); in SetPropertyByName()
302 if (UNLIKELY(!JSObject::Cast(receiver)->IsExtensible())) { in SetPropertyByName()
311 JSTaggedValue ObjectFastOperator::GetPropertyByIndex(JSThread *thread, JSTaggedValue receiver, uint… in GetPropertyByIndex() argument
315 JSTaggedValue holder = receiver; in GetPropertyByIndex()
348 return CallGetter(thread, receiver, holder, value); in GetPropertyByIndex()
365 JSTaggedValue ObjectFastOperator::SetPropertyByIndex(JSThread *thread, JSTaggedValue receiver, uint… in SetPropertyByIndex() argument
369 JSTaggedValue holder = receiver; in SetPropertyByIndex()
378 CHECK_IS_ON_PROTOTYPE_CHAIN(receiver, holder); in SetPropertyByIndex()
379 return JSTypedArray::FastSetPropertyByIndex(thread, receiver, index, value, jsType); in SetPropertyByIndex()
390 if (UNLIKELY(holder != receiver)) { in SetPropertyByIndex()
419 if (UNLIKELY(holder != receiver)) { in SetPropertyByIndex()
424 if (ShouldCallSetter(receiver, holder, accessor, attr)) { in SetPropertyByIndex()
425 return CallSetter(thread, receiver, value, accessor); in SetPropertyByIndex()
439 return AddPropertyByIndex(thread, receiver, index, value); in SetPropertyByIndex()
443 JSTaggedValue ObjectFastOperator::GetPropertyByValue(JSThread *thread, JSTaggedValue receiver, JSTa… in GetPropertyByValue() argument
452 return GetPropertyByIndex<status>(thread, receiver, index); in GetPropertyByValue()
458 JSHandle<JSTaggedValue> receiverHandler(thread, receiver); in GetPropertyByValue()
461 receiver = receiverHandler.GetTaggedValue(); in GetPropertyByValue()
463 return ObjectFastOperator::GetPropertyByName<status>(thread, receiver, key); in GetPropertyByValue()
469 JSTaggedValue ObjectFastOperator::SetPropertyByValue(JSThread *thread, JSTaggedValue receiver, JSTa… in SetPropertyByValue() argument
479 return SetPropertyByIndex<status>(thread, receiver, index, value); in SetPropertyByValue()
486 JSHandle<JSTaggedValue> receiverHandler(thread, receiver); in SetPropertyByValue()
491 receiver = receiverHandler.GetTaggedValue(); in SetPropertyByValue()
495 ObjectOperator::UpdateDetector(thread, receiver, key); in SetPropertyByValue()
497 … return ObjectFastOperator::SetPropertyByName<status>(thread, receiver, key, value, sCheckMode); in SetPropertyByValue()
502 bool ObjectFastOperator::FastSetPropertyByValue(JSThread *thread, JSTaggedValue receiver, JSTaggedV… in FastSetPropertyByValue() argument
506 JSTaggedValue result = ObjectFastOperator::SetPropertyByValue(thread, receiver, key, value); in FastSetPropertyByValue()
511 return JSTaggedValue::SetProperty(thread, JSHandle<JSTaggedValue>(thread, receiver), in FastSetPropertyByValue()
516 bool ObjectFastOperator::FastSetPropertyByIndex(JSThread *thread, JSTaggedValue receiver, uint32_t … in FastSetPropertyByIndex() argument
520 JSTaggedValue result = ObjectFastOperator::SetPropertyByIndex(thread, receiver, index, value); in FastSetPropertyByIndex()
524 return JSTaggedValue::SetProperty(thread, JSHandle<JSTaggedValue>(thread, receiver), index, in FastSetPropertyByIndex()
528 JSTaggedValue ObjectFastOperator::FastGetPropertyByName(JSThread *thread, JSTaggedValue receiver, in FastGetPropertyByName() argument
534 JSHandle<JSTaggedValue> receiverHandler(thread, receiver); in FastGetPropertyByName()
537 receiver = receiverHandler.GetTaggedValue(); in FastGetPropertyByName()
539 …edValue result = ObjectFastOperator::GetPropertyByName<Status::GetInternal>(thread, receiver, key); in FastGetPropertyByName()
541 return JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>(thread, receiver), in FastGetPropertyByName()
547 JSTaggedValue ObjectFastOperator::FastGetPropertyByValue(JSThread *thread, JSTaggedValue receiver, … in FastGetPropertyByValue() argument
550 JSTaggedValue result = ObjectFastOperator::GetPropertyByValue(thread, receiver, key); in FastGetPropertyByValue()
552 return JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>(thread, receiver), in FastGetPropertyByValue()
558 JSTaggedValue ObjectFastOperator::FastGetPropertyByIndex(JSThread *thread, JSTaggedValue receiver, … in FastGetPropertyByIndex() argument
561 JSTaggedValue result = ObjectFastOperator::GetPropertyByIndex(thread, receiver, index); in FastGetPropertyByIndex()
564 JSHandle<JSTaggedValue>(thread, receiver), index).GetValue().GetTaggedValue(); in FastGetPropertyByIndex()
676 JSTaggedValue ObjectFastOperator::CallGetter(JSThread *thread, JSTaggedValue receiver, JSTaggedValu… in CallGetter() argument
687 JSHandle<JSTaggedValue> objHandle(thread, receiver); in CallGetter()
691 JSTaggedValue ObjectFastOperator::CallSetter(JSThread *thread, JSTaggedValue receiver, JSTaggedValu… in CallSetter() argument
697 JSHandle<JSTaggedValue> objHandle(thread, receiver); in CallSetter()
706 bool ObjectFastOperator::ShouldCallSetter(JSTaggedValue receiver, JSTaggedValue holder, JSTaggedVal… in ShouldCallSetter() argument
712 if (receiver != holder) { in ShouldCallSetter()
728 JSTaggedValue ObjectFastOperator::FastGetTypeArrayProperty(JSThread *thread, JSTaggedValue receiver, in FastGetTypeArrayProperty() argument
732 CHECK_IS_ON_PROTOTYPE_CHAIN(receiver, holder); in FastGetTypeArrayProperty()
742 return JSTypedArray::FastGetPropertyByIndex(thread, receiver, index, jsType); in FastGetTypeArrayProperty()
756 JSTaggedValue ObjectFastOperator::FastSetTypeArrayProperty(JSThread *thread, JSTaggedValue receiver, in FastSetTypeArrayProperty() argument
760 CHECK_IS_ON_PROTOTYPE_CHAIN(receiver, holder); in FastSetTypeArrayProperty()
773 return JSTypedArray::FastSetPropertyByIndex(thread, receiver, index, value, jsType); in FastSetTypeArrayProperty()
783 JSTaggedValue ObjectFastOperator::GetContainerProperty(JSThread *thread, JSTaggedValue receiver, ui… in GetContainerProperty() argument
789 res = JSAPIArrayList::Cast(receiver.GetTaggedObject())->Get(thread, index); in GetContainerProperty()
792 res = JSAPIQueue::Cast(receiver.GetTaggedObject())->Get(thread, index); in GetContainerProperty()
795 res = JSAPIPlainArray::Cast(receiver.GetTaggedObject())->Get(JSTaggedValue(index)); in GetContainerProperty()
798 res = JSAPIDeque::Cast(receiver.GetTaggedObject())->Get(index); in GetContainerProperty()
801 res = JSAPIStack::Cast(receiver.GetTaggedObject())->Get(index); in GetContainerProperty()
804 auto self = JSHandle<JSTaggedValue>(thread, receiver); in GetContainerProperty()
809 res = JSAPIList::Cast(receiver.GetTaggedObject())->Get(index); in GetContainerProperty()
813 res = JSAPILinkedList::Cast(receiver.GetTaggedObject())->Get(index); in GetContainerProperty()
822 JSTaggedValue ObjectFastOperator::SetContainerProperty(JSThread *thread, JSTaggedValue receiver, ui… in SetContainerProperty() argument
828 res = JSAPIArrayList::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
831 res = JSAPIQueue::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
834 JSHandle<JSAPIPlainArray> plainArray(thread, receiver); in SetContainerProperty()
839 res = JSAPIDeque::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
842 res = JSAPIStack::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
845 res = JSAPIVector::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
848 JSHandle<JSAPIList> singleList(thread, receiver); in SetContainerProperty()
853 JSHandle<JSAPILinkedList> doubleList(thread, receiver); in SetContainerProperty()
863 JSTaggedValue ObjectFastOperator::AddPropertyByIndex(JSThread *thread, JSTaggedValue receiver, uint… in AddPropertyByIndex() argument
868 if (UNLIKELY(!JSObject::Cast(receiver)->IsExtensible())) { in AddPropertyByIndex()
873 bool success = JSObject::AddElementInternal(thread, JSHandle<JSObject>(thread, receiver), index, in AddPropertyByIndex()