void JSFloat64Array::putByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, JSValue value, bool) { JSFloat64Array* thisObject = jsCast<JSFloat64Array*>(cell); ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info); thisObject->indexSetter(exec, propertyName, value); return; }
void JSFloat64Array::putByIndex(JSCell* cell, ExecState* exec, unsigned index, JSValue value, bool shouldThrow) { JSFloat64Array* thisObject = jsCast<JSFloat64Array*>(cell); ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info); if (index <= MAX_ARRAY_INDEX) { UNUSED_PARAM(shouldThrow); thisObject->indexSetter(exec, index, value); return; } Base::putByIndex(cell, exec, index, value, shouldThrow); }
void JSFloat64Array::put(JSCell* cell, ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot) { JSFloat64Array* thisObject = jsCast<JSFloat64Array*>(cell); ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info); unsigned index = propertyName.asIndex(); if (index != PropertyName::NotAnIndex) { thisObject->indexSetter(exec, index, value); return; } Base::put(thisObject, exec, propertyName, value, slot); }
void JSFloat64Array::put(JSCell* cell, ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) { JSFloat64Array* thisObject = jsCast<JSFloat64Array*>(cell); ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info); bool ok; unsigned index = propertyName.toUInt32(ok); if (ok) { thisObject->indexSetter(exec, index, value); return; } Base::put(thisObject, exec, propertyName, value, slot); }