Lines Matching refs:element
43 // create left reference for rest element
83 for (const auto *element : array->Elements()) {
86 if (element->IsRestElement()) {
87 GenRestElement(pg, element->AsRestElement(), iterator, array->IsDeclaration());
92 if (element->IsOmittedExpression()) {
98 const ir::Expression *target = element;
100 if (element->IsAssignmentPattern() || element->IsAssignmentExpression()) {
101 auto *assignment = element->IsAssignmentPattern() ? element->AsAssignmentPattern() :
102 element->AsAssignmentExpression();
113 pg->BranchIfStrictUndefined(element, defaultInit);
114 pg->LoadAccumulator(element, iterator.Result());
115 pg->Branch(element, assingValue);
117 pg->SetLabel(element, defaultInit);
119 pg->SetLabel(element, assingValue);
127 const ir::Expression *element, VReg value)
131 const ir::Property *propExpr = element->AsProperty();
148 pg->LoadObjByName(element, value, key->AsIdentifier()->Name());
151 pg->LoadObjByValue(element, value);
156 pg->StoreAccumulator(element, loadedValue);
160 pg->BranchIfStrictUndefined(element, getDefault);
161 pg->LoadAccumulator(element, loadedValue);
162 pg->Branch(element, store);
165 pg->SetLabel(element, getDefault);
168 pg->SetLabel(element, store);
181 auto *element = properties[0];
182 ASSERT(element->IsRestElement());
184 LReference lref = LReference::CreateLRef(pg, element, object->IsDeclaration());
185 pg->CreateObjectWithExcludedKeys(element, rhs, defaultProp, 0);
192 for (const auto *element : properties) {
193 if (element->IsRestElement()) {
195 LReference lref = LReference::CreateLRef(pg, element, object->IsDeclaration());
196 pg->CreateObjectWithExcludedKeys(element, rhs, propStart, properties.size() - 1);
202 const ir::Expression *key = element->AsProperty()->Key();
208 pg->StoreAccumulator(element, propName);
210 GenObjectProperty(pg, object, element, rhs);
238 for (const auto *element : properties) {
239 GenObjectProperty(pg, object, element, rhs);