Ignore:
Timestamp:
Jan 22, 2015, 11:34:34 AM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r178894.
https://bugs.webkit.org/show_bug.cgi?id=140775

Broke JSC and bindings tests (Requested by ap_ on #webkit).

Reverted changeset:

"put_by_val_direct need to check the property is index or not
for using putDirect / putDirectIndex"
https://bugs.webkit.org/show_bug.cgi?id=140426
http://trac.webkit.org/changeset/178894

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSObject.h

    r178894 r178928  
    12451245    if (object->inlineGetOwnPropertySlot(vm, structure, propertyName, slot))
    12461246        return true;
    1247     if (Optional<uint32_t> index = propertyName.asIndex())
    1248         return getOwnPropertySlotByIndex(object, exec, index.value(), slot);
     1247    unsigned index = propertyName.asIndex();
     1248    if (index != PropertyName::NotAnIndex)
     1249        return getOwnPropertySlotByIndex(object, exec, index, slot);
    12491250    return false;
    12501251}
     
    12741275    }
    12751276
    1276     if (Optional<uint32_t> index = propertyName.asIndex())
    1277         return getPropertySlot(exec, index.value(), slot);
     1277    unsigned index = propertyName.asIndex();
     1278    if (index != PropertyName::NotAnIndex)
     1279        return getPropertySlot(exec, index, slot);
    12781280    return false;
    12791281}
     
    13191321    ASSERT(value.isGetterSetter() == !!(attributes & Accessor));
    13201322    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
    1321     ASSERT(!propertyName.asIndex());
     1323    ASSERT(propertyName.asIndex() == PropertyName::NotAnIndex);
    13221324
    13231325    Structure* structure = this->structure(vm);
Note: See TracChangeset for help on using the changeset viewer.