Ignore:
Timestamp:
Aug 19, 2009, 1:08:08 PM (16 years ago)
Author:
[email protected]
Message:

Devirtualise marking
https://bugs.webkit.org/show_bug.cgi?id=28294

Reviewed by Gavin Barraclough

We actually need to mark the value in a number object if we're using the
32bit number representation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/NumberObject.h

    r47267 r47522  
    3131
    3232        static const ClassInfo info;
    33        
     33#if USE(JSVALUE32)
     34        static PassRefPtr<Structure> createStructure(JSValue prototype)
     35        {
     36            return Structure::create(prototype, TypeInfo(ObjectType, HasStandardGetOwnPropertySlot));
     37        }
     38#else
    3439        static PassRefPtr<Structure> createStructure(JSValue prototype)
    3540        {
    3641            return Structure::create(prototype, TypeInfo(ObjectType, HasStandardGetOwnPropertySlot | HasDefaultMark));
    3742        }
    38 
     43#endif
    3944    private:
    4045        virtual const ClassInfo* classInfo() const { return &info; }
Note: See TracChangeset for help on using the changeset viewer.