Ignore:
Timestamp:
Feb 25, 2010, 4:22:34 PM (15 years ago)
Author:
[email protected]
Message:

Reviewed by Anders Carlsson.

https://bugs.webkit.org/show_bug.cgi?id=35406
<rdar://problem/6945502> Make generic array methods work with JavaArray

Test: java/array-sort.html

Made RuntimeArray inherit from JSArray, keeping the promise given in ClassInfo.

  • bridge/runtime_array.cpp: (JSC::RuntimeArray::RuntimeArray): (JSC::RuntimeArray::~RuntimeArray):
  • bridge/runtime_array.h: (JSC::RuntimeArray::classInfo): (JSC::RuntimeArray::getConcreteArray):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/RegExpConstructor.cpp

    r52028 r55262  
    114114    // d->multiline is not needed, and remains uninitialized
    115115
    116     setLazyCreationData(d);
     116    setSubclassData(d);
    117117}
    118118
    119119RegExpMatchesArray::~RegExpMatchesArray()
    120120{
    121     delete static_cast<RegExpConstructorPrivate*>(lazyCreationData());
     121    delete static_cast<RegExpConstructorPrivate*>(subclassData());
    122122}
    123123
    124124void RegExpMatchesArray::fillArrayInstance(ExecState* exec)
    125125{
    126     RegExpConstructorPrivate* d = static_cast<RegExpConstructorPrivate*>(lazyCreationData());
     126    RegExpConstructorPrivate* d = static_cast<RegExpConstructorPrivate*>(subclassData());
    127127    ASSERT(d);
    128128
     
    142142
    143143    delete d;
    144     setLazyCreationData(0);
     144    setSubclassData(0);
    145145}
    146146
Note: See TracChangeset for help on using the changeset viewer.