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/JSArray.h

    r54022 r55262  
    3232        unsigned m_numValuesInVector;
    3333        SparseArrayValueMap* m_sparseValueMap;
    34         void* lazyCreationData; // A JSArray subclass can use this to fill the vector lazily.
     34        void* subclassData; // A JSArray subclass can use this to fill the vector lazily.
    3535        size_t reportedMapCapacity;
    3636        JSValue m_vector[1];
     
    102102        virtual void markChildren(MarkStack&);
    103103
    104         void* lazyCreationData();
    105         void setLazyCreationData(void*);
     104        void* subclassData() const;
     105        void setSubclassData(void*);
    106106
    107107    private:
Note: See TracChangeset for help on using the changeset viewer.