Changeset 2791 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 20, 2002, 4:21:24 PM (23 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r2789 r2791 1 2002-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 1 10 2002-11-20 Darin Adler <[email protected]> 2 11 -
trunk/JavaScriptCore/ChangeLog-2002-12-03
r2789 r2791 1 2002-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 1 10 2002-11-20 Darin Adler <[email protected]> 2 11 -
trunk/JavaScriptCore/ChangeLog-2003-10-25
r2789 r2791 1 2002-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 1 10 2002-11-20 Darin Adler <[email protected]> 2 11 -
trunk/JavaScriptCore/kjs/value.cpp
r2783 r2791 54 54 { 55 55 //fprintf(stderr,"ValueImp::~ValueImp %p\n",(void*)this); 56 _flags |= VI_DESTRUCTED;57 56 } 58 57 -
trunk/JavaScriptCore/kjs/value.h
r2783 r2791 96 96 ValueImp* ref() { if (!SimpleNumber::is(this)) refcount++; return this; } 97 97 bool deref() { if (SimpleNumber::is(this)) return false; else return (!--refcount); } 98 unsigned int refcount;99 98 100 99 virtual void mark(); … … 128 127 Object dispatchToObject(ExecState *exec) const; 129 128 130 private: 129 unsigned short int refcount; 130 131 private: 132 unsigned short int _flags; 133 131 134 virtual Type type() const = 0; 132 135 … … 143 146 VI_MARKED = 1, 144 147 VI_GCALLOWED = 2, 145 VI_CREATED = 4, 146 VI_DESTRUCTED = 8 148 VI_CREATED = 4 147 149 }; // VI means VALUEIMPL 148 150 149 ValueImpPrivate *_vd;150 unsigned int _flags;151 152 151 // Give a compile time error if we try to copy one of these. 153 152 ValueImp(const ValueImp&);
Note:
See TracChangeset
for help on using the changeset viewer.