Changeset 2791 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Nov 20, 2002, 4:21:24 PM (23 years ago)
Author:
mjs
Message:

Reduced the size of ValueImp by 8 bytes for a .5% speedup.

  • kjs/value.h: Removed destructed flag. Made refcount and flag 16 bits each.
  • kjs/value.cpp: (ValueImp::~ValueImp): Don't set destructed flag.
Location:
trunk/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r2789 r2791  
     12002-11-20  Maciej Stachowiak  <[email protected]>
     2
     3        Reduced the size of ValueImp by 8 bytes for a .5% speedup.
     4       
     5        * kjs/value.h: Removed destructed flag. Made refcount and flag 16
     6        bits each.
     7        * kjs/value.cpp:
     8        (ValueImp::~ValueImp): Don't set destructed flag.
     9
    1102002-11-20  Darin Adler  <[email protected]>
    211
  • trunk/JavaScriptCore/ChangeLog-2002-12-03

    r2789 r2791  
     12002-11-20  Maciej Stachowiak  <[email protected]>
     2
     3        Reduced the size of ValueImp by 8 bytes for a .5% speedup.
     4       
     5        * kjs/value.h: Removed destructed flag. Made refcount and flag 16
     6        bits each.
     7        * kjs/value.cpp:
     8        (ValueImp::~ValueImp): Don't set destructed flag.
     9
    1102002-11-20  Darin Adler  <[email protected]>
    211
  • trunk/JavaScriptCore/ChangeLog-2003-10-25

    r2789 r2791  
     12002-11-20  Maciej Stachowiak  <[email protected]>
     2
     3        Reduced the size of ValueImp by 8 bytes for a .5% speedup.
     4       
     5        * kjs/value.h: Removed destructed flag. Made refcount and flag 16
     6        bits each.
     7        * kjs/value.cpp:
     8        (ValueImp::~ValueImp): Don't set destructed flag.
     9
    1102002-11-20  Darin Adler  <[email protected]>
    211
  • trunk/JavaScriptCore/kjs/value.cpp

    r2783 r2791  
    5454{
    5555  //fprintf(stderr,"ValueImp::~ValueImp %p\n",(void*)this);
    56   _flags |= VI_DESTRUCTED;
    5756}
    5857
  • trunk/JavaScriptCore/kjs/value.h

    r2783 r2791  
    9696    ValueImp* ref() { if (!SimpleNumber::is(this)) refcount++; return this; }
    9797    bool deref() { if (SimpleNumber::is(this)) return false; else return (!--refcount); }
    98     unsigned int refcount;
    9998
    10099    virtual void mark();
     
    128127    Object dispatchToObject(ExecState *exec) const;
    129128
    130   private:
     129    unsigned short int refcount;
     130
     131  private:
     132    unsigned short int _flags;
     133
    131134    virtual Type type() const = 0;
    132135
     
    143146      VI_MARKED = 1,
    144147      VI_GCALLOWED = 2,
    145       VI_CREATED = 4,
    146       VI_DESTRUCTED = 8
     148      VI_CREATED = 4
    147149    }; // VI means VALUEIMPL
    148150
    149     ValueImpPrivate *_vd;
    150     unsigned int _flags;
    151    
    152151    // Give a compile time error if we try to copy one of these.
    153152    ValueImp(const ValueImp&);
Note: See TracChangeset for help on using the changeset viewer.