Home | History | Annotate | Download | only in API

Lines Matching refs:array

444     Vector<JSRetainPtr<JSStringRef> > array;
456 PropertyNameArray array(globalData);
457 jsObject->getPropertyNames(exec, array);
459 size_t size = array.size();
460 propertyNames->array.reserveInitialCapacity(size);
462 propertyNames->array.append(JSRetainPtr<JSStringRef>(Adopt, OpaqueJSString::create(array[i].ustring()).releaseRef()));
467 JSPropertyNameArrayRef JSPropertyNameArrayRetain(JSPropertyNameArrayRef array)
469 ++array->refCount;
470 return array;
473 void JSPropertyNameArrayRelease(JSPropertyNameArrayRef array)
475 if (--array->refCount == 0) {
476 APIEntryShim entryShim(array->globalData, false);
477 delete array;
481 size_t JSPropertyNameArrayGetCount(JSPropertyNameArrayRef array)
483 return array->array.size();
486 JSStringRef JSPropertyNameArrayGetNameAtIndex(JSPropertyNameArrayRef array, size_t index)
488 return array->array[static_cast<unsigned>(index)].get();
491 void JSPropertyNameAccumulatorAddName(JSPropertyNameAccumulatorRef array, JSStringRef propertyName)
493 PropertyNameArray* propertyNames = toJS(array);