Lines Matching refs:array
18 …<ChangeListener> ChangeListener::Add(const JSThread *thread, const JSHandle<ChangeListener> &array, in Add() argument
22 if (!array->Full()) { in Add()
24 uint32_t arrayIndex = array->PushBack(thread, weakValue); in Add()
29 return array; in Add()
35 uint32_t holeIndex = CheckHole(array); in Add()
38 array->Set(thread, holeIndex, weakValue); in Add()
42 return array; in Add()
45 …JSHandle<WeakVector> newArray = WeakVector::Grow(thread, JSHandle<WeakVector>(array), array->GetCa… in Add()
55 uint32_t ChangeListener::CheckHole(const JSHandle<ChangeListener> &array) in CheckHole() argument
57 for (uint32_t i = 0; i < array->GetEnd(); i++) { in CheckHole()
58 JSTaggedValue value = array->Get(i); in CheckHole()