~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to JavaScriptCore/runtime/JSWrapperObject.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-02-04 19:30:57 UTC
  • mfrom: (1.2.8 upstream) (4.3.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100204193057-d3018lm1fipb0703
* New upstream release
* debian/copyright:
- Updated with changes since 1.1.19.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
        static PassRefPtr<Structure> createStructure(JSValue prototype) 
40
40
        { 
41
 
            return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags));
 
41
            return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount);
42
42
        }
43
43
 
 
44
    protected:
 
45
        static const unsigned AnonymousSlotCount = 1 + JSObject::AnonymousSlotCount;
 
46
 
44
47
    private:
45
48
        virtual void markChildren(MarkStack&);
46
49
        
50
53
    inline JSWrapperObject::JSWrapperObject(NonNullPassRefPtr<Structure> structure)
51
54
        : JSObject(structure)
52
55
    {
53
 
        addAnonymousSlots(1);
54
56
        putAnonymousValue(0, jsNull());
55
57
    }
56
58