Changeset 47522 in webkit


Ignore:
Timestamp:
Aug 19, 2009 1:08:08 PM (15 years ago)
Author:
oliver@apple.com
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.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r47519 r47522  
     12009-08-19  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        Devirtualise marking
     6        https://bugs.webkit.org/show_bug.cgi?id=28294
     7
     8        We actually need to mark the value in a number object if we're using the
     9        32bit number representation.
     10
     11        * runtime/NumberObject.h:
     12        (JSC::NumberObject::createStructure):
     13
    1142009-08-19  Gavin Barraclough  <barraclough@apple.com>
    215
  • 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.