Changeset 33038 in webkit for trunk/JavaScriptCore/kjs/internal.h
- Timestamp:
- May 12, 2008, 12:12:31 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.h
r32807 r33038 46 46 class StringImp : public JSCell { 47 47 public: 48 StringImp(const UString& v) : val(v) { Heap::heap(this)->reportExtraMemoryCost(v.cost()); }48 StringImp(const UString& v) : val(v) { Collector::reportExtraMemoryCost(v.cost()); } 49 49 enum HasOtherOwnerType { HasOtherOwner }; 50 50 StringImp(const UString& value, HasOtherOwnerType) : val(value) { } … … 66 66 class NumberImp : public JSCell { 67 67 friend class ConstantValues; 68 friend JSValue * jsNumberCell(ExecState*,double);68 friend JSValue *jsNumberCell(double); 69 69 public: 70 70 double value() const { return val; } … … 79 79 virtual JSObject *toObject(ExecState *exec) const; 80 80 81 void* operator new(size_t size , ExecState* exec)81 void* operator new(size_t size) 82 82 { 83 return exec->heap()->allocateNumber(size);83 return Collector::allocateNumber(size); 84 84 } 85 86 85 private: 87 86 NumberImp(double v) : val(v) { }
Note:
See TracChangeset
for help on using the changeset viewer.