Lines Matching full:top
36 int top = static_cast<int>(stack->GetTop()); in Push() local
37 JSHandle<TaggedArray> elements = GrowCapacity(thread, stack, top + 1); in Push()
40 elements->Set(thread, top + 1, value); in Push()
41 stack->SetTop(++top); in Push()
47 int top = this->GetTop(); in Peek() local
48 if (top == -1) { in Peek()
54 return elements->Get(top); in Peek()
59 int top = this->GetTop(); in Pop() local
60 if (top == -1) { in Pop()
65 this->SetTop(--top); in Pop()
66 return elements->Get(top + 1); in Pop()
71 int top = this->GetTop(); in Search() local
74 for (int i = 0; i <= top; i++) { in Search()
116 int top = static_cast<int>(GetTop()); in Has() local
117 if (top == -1) { in Has()
121 for (int i = 0; i < top + 1; i++) { in Has()
131 uint32_t top = static_cast<uint32_t>(obj->GetTop()); in OwnKeys() local
133 JSHandle<TaggedArray> keys = factory->NewTaggedArray(top + 1); in OwnKeys()
135 for (uint32_t i = 0; i < top + 1; i++) { in OwnKeys()