• Home
  • Raw
  • Download

Lines Matching refs:array

34     VReg array = pg->AllocReg();  in GenRestElement()  local
47 pg->StoreAccumulator(restElement, array); in GenRestElement()
56 pg->StoreObjByValue(restElement, array, index); in GenRestElement()
66 pg->LoadAccumulator(restElement, array); in GenRestElement()
71 static void GenElement(const ir::ArrayExpression *array, DestructuringIterator &iterator, PandaGen … in GenElement() argument
73 for (const auto *element : array->Elements()) { in GenElement()
77 GenRestElement(pg, element->AsRestElement(), iterator, array->IsDeclaration()); in GenElement()
95 auto lref = JSLReference::Create(pg, target, array->IsDeclaration()); in GenElement()
114 static void GenArray(PandaGen *pg, const ir::ArrayExpression *array) in GenArray() argument
116 DestructuringIterator iterator(pg, array); in GenArray()
118 if (array->Elements().empty()) { in GenArray()
125 pg->SetLabel(array, labelSet.TryBegin()); in GenArray()
127 GenElement(array, iterator, pg); in GenArray()
129 pg->SetLabel(array, labelSet.TryEnd()); in GenArray()
132 pg->LoadAccumulator(array, iterator.Done()); in GenArray()
133 pg->BranchIfTrue(array, labelSet.CatchEnd()); in GenArray()
136 pg->Branch(array, labelSet.CatchEnd()); in GenArray()
139 pg->SetLabel(array, labelSet.CatchBegin()); in GenArray()
140 pg->StoreAccumulator(array, iterator.Result()); in GenArray()
141 pg->LoadAccumulator(array, iterator.Done()); in GenArray()
143 pg->BranchIfTrue(array, end); in GenArray()
144 pg->LoadAccumulator(array, iterator.Result()); in GenArray()
146 pg->SetLabel(array, end); in GenArray()
147 pg->LoadAccumulator(array, iterator.Result()); in GenArray()
148 pg->EmitThrow(array); in GenArray()
149 pg->SetLabel(array, labelSet.CatchEnd()); in GenArray()