• Home
  • Raw
  • Download

Lines Matching refs:obj

23 int SubtypingOperator::GetElementByKey(const JSThread *thread, T *obj, JSTaggedValue key)  in GetElementByKey()  argument
26 return obj->GetElementIndexByKey(key); in GetElementByKey()
28 return obj->GetTupleIndexByName(key); in GetElementByKey()
30 LayoutInfo *objLayout = LayoutInfo::Cast(obj->GetLayout().GetTaggedObject()); in GetElementByKey()
31 return objLayout->FindElementWithCache(thread, obj, key, obj->NumberOfProps()); in GetElementByKey()
37 bool SubtypingOperator::IsLegalElement(const JSThread *thread, T *obj, JSTaggedValue key, JSTaggedV… in IsLegalElement() argument
42 int index = obj->GetElementIndexByKey(key); in IsLegalElement()
43 if (index != -1 && obj->GetTypeId(index) != expectedType) { in IsLegalElement()
47 int index = obj->GetTupleIndexByName(key); in IsLegalElement()
52 if (obj->IsAccessor(index) != isAccessor) { in IsLegalElement()
57 LayoutInfo *objLayout = LayoutInfo::Cast(obj->GetLayout().GetTaggedObject()); in IsLegalElement()
58 int index = objLayout->FindElementWithCache(thread, obj, key, obj->NumberOfProps()); in IsLegalElement()
73 uint32_t SubtypingOperator::GetLength(T *obj) in GetLength() argument
76 return obj->GetNumOfProperties(); in GetLength()
83 JSTaggedValue SubtypingOperator::GetKey(T *obj, uint32_t index) in GetKey() argument
86 return obj->GetKey(index); in GetKey()
93 JSTaggedValue SubtypingOperator::GetType(const JSThread *thread, T *obj, uint32_t index, ConditionT… in GetType() argument
97 return obj->GetTypeId(index); in GetType()
100 GlobalTSTypeRef typeGT = GlobalTSTypeRef(obj->GetTypeId(index).GetInt()); in GetType()