Changeset 49845 in webkit


Ignore:
Timestamp:
Oct 20, 2009 2:42:42 AM (15 years ago)
Author:
Csaba Osztrogonác
Message:

Move OverridesMarkChildren flag from DatePrototype to its parent class
https://bugs.webkit.org/show_bug.cgi?id=30372

Patch by Gabor Loki <loki@inf.u-szeged.hu> on 2009-10-20
Reviewed by Oliver Hunt.

  • runtime/DateInstance.h:

(JSC::DateInstance::createStructure):

  • runtime/DatePrototype.h:
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r49820 r49845  
     12009-10-20  Gabor Loki  <loki@inf.u-szeged.hu>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Move OverridesMarkChildren flag from DatePrototype to its parent class
     6        https://bugs.webkit.org/show_bug.cgi?id=30372
     7
     8        * runtime/DateInstance.h:
     9        (JSC::DateInstance::createStructure):
     10        * runtime/DatePrototype.h:
     11
    1122009-10-19  Geoffrey Garen  <ggaren@apple.com>
    213
  • trunk/JavaScriptCore/runtime/DateInstance.h

    r49247 r49845  
    4747        void msToGregorianDateTime(double, bool outputIsUTC, WTF::GregorianDateTime&) const;
    4848
     49        static PassRefPtr<Structure> createStructure(JSValue prototype)
     50        {
     51            return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags));
     52        }
     53
     54    protected:
     55        static const unsigned StructureFlags = OverridesMarkChildren | JSWrapperObject::StructureFlags;
     56
    4957    private:
    5058        virtual const ClassInfo* classInfo() const { return &info; }
  • trunk/JavaScriptCore/runtime/DatePrototype.h

    r49721 r49845  
    4444
    4545    protected:
    46         static const unsigned StructureFlags = OverridesGetOwnPropertySlot | OverridesMarkChildren | DateInstance::StructureFlags;
     46        static const unsigned StructureFlags = OverridesGetOwnPropertySlot | DateInstance::StructureFlags;
    4747
    4848    };
Note: See TracChangeset for help on using the changeset viewer.