• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/JavaScriptCore-7600.1.17/runtime/

Lines Matching refs:attributes

88             if ((!(iter->attributes() & DontEnum) || (mode == IncludeDontEnumProperties)) && !((iter->attributes() & BuiltinOrFunction) && didReify))
374 unsigned attributes;
376 PropertyOffset offset = obj->structure(vm)->get(vm, propertyName, attributes, specificValue);
378 if (attributes & ReadOnly) {
397 ASSERT(!(attributes & Accessor));
556 // and attributes are default so no need to set them.
1220 void JSObject::putDirectAccessor(ExecState* exec, PropertyName propertyName, JSValue value, unsigned attributes)
1222 ASSERT(value.isGetterSetter() && (attributes & Accessor));
1226 putDirectIndex(exec, index, value, attributes, PutDirectIndexLikePutDirect);
1230 putDirectNonIndexAccessor(exec->vm(), propertyName, value, attributes);
1233 void JSObject::putDirectCustomAccessor(VM& vm, PropertyName propertyName, JSValue value, unsigned attributes)
1238 putDirectInternal<PutModeDefineOwnProperty>(vm, propertyName, value, attributes, slot, getCallableObject(value));
1243 if (attributes & ReadOnly)
1248 void JSObject::putDirectNonIndexAccessor(VM& vm, PropertyName propertyName, JSValue value, unsigned attributes)
1251 putDirectInternal<PutModeDefineOwnProperty>(vm, propertyName, value, attributes, slot, getCallableObject(value));
1257 setStructure(vm, Structure::attributeChangeTransition(vm, structure(vm), propertyName, attributes));
1260 if (attributes & ReadOnly)
1290 unsigned attributes;
1293 if (isValidOffset(thisObject->structure(vm)->get(vm, propertyName, attributes, specificValue))) {
1294 if (attributes & DontDelete && !vm.isInDefineOwnProperty())
1303 if (entry->attributes() & DontDelete && !vm.isInDefineOwnProperty())
1360 if (it->value.attributes & DontDelete)
1473 unsigned attributes;
1474 if (isValidOffset(structure(vm)->get(vm, propertyName, attributes, specificValue)))
1557 if (mode == IncludeDontEnumProperties || !(it->value.attributes & DontEnum))
1654 if (iter->attributes() & BuiltinOrFunction)
1684 NEVER_INLINE void JSObject::fillGetterPropertySlot(PropertySlot& slot, JSValue getterSetter, unsigned attributes, PropertyOffset offset)
1687 slot.setGetterSlot(this, attributes, jsCast<GetterSetter*>(getterSetter));
1690 slot.setCacheableGetterSlot(this, attributes, jsCast<GetterSetter*>(getterSetter), offset);
1702 entryInMap->attributes = descriptor.attributesOverridingCurrent(oldDescriptor) & ~Accessor;
1725 entryInMap->attributes = descriptor.attributesOverridingCurrent(oldDescriptor) & ~ReadOnly;
1730 entryInMap->attributes = descriptor.attributesOverridingCurrent(oldDescriptor);
1740 // FIXME: this will pessimistically assume that if attributes are missing then they'll default to false
1741 // however if the property currently exists missing attributes will override from their current 'true'
1743 if (!descriptor.attributes()) {
1751 if (descriptor.attributes() & (ReadOnly | Accessor))
1782 entryInMap->attributes = DontDelete | DontEnum | ReadOnly;
1817 // [[Configurable]] and [[Enumerable]] attributes and set the rest of the property's attributes to
1821 // attributes and set the rest of the property's attributes to their default values.
1879 if (iter != storage->m_sparseMap->notFound() && (iter->value.attributes & (Accessor | ReadOnly))) {
2097 bool JSObject::putDirectIndexBeyondVectorLengthWithArrayStorage(ExecState* exec, unsigned i, JSValue value, unsigned attributes, PutDirectIndexMode mode, ArrayStorage* storage)
2104 ASSERT(i >= storage->vectorLength() || attributes);
2120 !attributes
2132 return map->putDirect(exec, this, i, value, attributes, mode);
2152 if (map->sparseMode() || attributes || !isDenseEnoughForVector(length, numValuesInArray) || !increaseVectorLength(exec->vm(), length))
2153 return map->putDirect(exec, this, i, value, attributes, mode);
2174 bool JSObject::putDirectIndexBeyondVectorLength(ExecState* exec, unsigned i, JSValue value, unsigned attributes, PutDirectIndexMode mode)
2181 if (attributes & (ReadOnly | Accessor))
2186 if (indexingShouldBeSparse() || attributes) {
2188 exec, i, value, attributes, mode,
2193 exec, i, value, attributes, mode, createArrayStorage(vm, 0, 0));
2209 return putDirectIndex(exec, i, value, attributes, mode);
2213 if (attributes & (ReadOnly | Accessor)) {
2215 exec, i, value, attributes, mode, convertInt32ToArrayStorage(vm));
2219 return putDirectIndexBeyondVectorLength(exec, i, value, attributes, mode);
2226 if (attributes & (ReadOnly | Accessor)) {
2228 exec, i, value, attributes, mode, convertDoubleToArrayStorage(vm));
2232 return putDirectIndexBeyondVectorLength(exec, i, value, attributes, mode);
2237 return putDirectIndexBeyondVectorLength(exec, i, value, attributes, mode);
2244 if (attributes & (ReadOnly | Accessor)) {
2246 exec, i, value, attributes, mode, convertContiguousToArrayStorage(vm));
2253 return putDirectIndexBeyondVectorLengthWithArrayStorage(exec, i, value, attributes, mode, arrayStorage());
2261 void JSObject::putDirectNativeFunction(VM& vm, JSGlobalObject* globalObject, const PropertyName& propertyName, unsigned functionLength, NativeFunction nativeFunction, Intrinsic intrinsic, unsigned attributes)
2269 putDirect(vm, propertyName, function, attributes);
2272 JSFunction* JSObject::putDirectBuiltinFunction(VM& vm, JSGlobalObject* globalObject, const PropertyName& propertyName, FunctionExecutable* functionExecutable, unsigned attributes)
2279 putDirect(vm, propertyName, function, attributes);
2283 JSFunction* JSObject::putDirectBuiltinFunctionWithoutTransition(VM& vm, JSGlobalObject* globalObject, const PropertyName& propertyName, FunctionExecutable* functionExecutable, unsigned attributes)
2290 putDirectWithoutTransition(vm, propertyName, function, attributes);
2294 void JSObject::putDirectNativeFunctionWithoutTransition(VM& vm, JSGlobalObject* globalObject, const PropertyName& propertyName, unsigned functionLength, NativeFunction nativeFunction, Intrinsic intrinsic, unsigned attributes)
2300 putDirectWithoutTransition(vm, propertyName, function, attributes);
2479 descriptor.setAccessorDescriptor(slot.getterSetter(), slot.attributes());
2480 else if (slot.attributes() & CustomAccessor)
2481 descriptor.setCustomDescriptor(slot.attributes());
2483 descriptor.setDescriptor(slot.getValue(exec, propertyName), slot.attributes());
2487 static bool putDescriptor(ExecState* exec, JSObject* target, PropertyName propertyName, const PropertyDescriptor& descriptor, unsigned attributes, const PropertyDescriptor& oldDescriptor)
2497 target->putDirectAccessor(exec, propertyName, accessor, attributes | Accessor);
2505 target->putDirect(vm, propertyName, newValue, attributes & ~Accessor);
2506 if (attributes & ReadOnly)
2510 attributes &= ~ReadOnly;
2522 target->putDirectAccessor(exec, propertyName, accessor, attributes | Accessor);
2556 // (particularly when changing attributes), however delete won't allow non-configurable (i.e.
2571 return putDescriptor(exec, this, propertyName, descriptor, descriptor.attributes(), oldDescriptor);
2594 // A generic descriptor is simply changing the attributes of an existing property
2614 // Changing the value and attributes of an existing property
2649 if (current.attributes() & CustomAccessor) {