Changeset 32807 in webkit for trunk/JavaScriptCore/kjs/internal.h
- Timestamp:
- May 2, 2008, 3:07:53 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.h
r32609 r32807 46 46 class StringImp : public JSCell { 47 47 public: 48 StringImp(const UString& v) : val(v) { Collector::reportExtraMemoryCost(v.cost()); }48 StringImp(const UString& v) : val(v) { Heap::heap(this)->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(double);68 friend JSValue* jsNumberCell(ExecState*, 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 )81 void* operator new(size_t size, ExecState* exec) 82 82 { 83 return Collector::allocateNumber(size);83 return exec->heap()->allocateNumber(size); 84 84 } 85 85 86 private: 86 87 NumberImp(double v) : val(v) { }
Note:
See TracChangeset
for help on using the changeset viewer.