Changeset 47799 in webkit for trunk/JavaScriptCore/runtime/JSCell.h
- Timestamp:
- Aug 26, 2009, 4:00:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSCell.h
r47622 r47799 46 46 private: 47 47 explicit JSCell(Structure*); 48 JSCell(); // Only used for initializing Collector blocks. 48 49 virtual ~JSCell(); 49 50 … … 75 76 76 77 // Basic conversions. 77 virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const = 0;78 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue&) = 0;79 virtual bool toBoolean(ExecState*) const = 0;80 virtual double toNumber(ExecState*) const = 0;81 virtual UString toString(ExecState*) const = 0;82 virtual JSObject* toObject(ExecState*) const = 0;78 virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const; 79 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue&); 80 virtual bool toBoolean(ExecState*) const; 81 virtual double toNumber(ExecState*) const; 82 virtual UString toString(ExecState*) const; 83 virtual JSObject* toObject(ExecState*) const; 83 84 84 85 // Garbage collection. … … 122 123 inline JSCell::JSCell(Structure* structure) 123 124 : m_structure(structure) 125 { 126 } 127 128 // Only used for initializing Collector blocks. 129 inline JSCell::JSCell() 124 130 { 125 131 } … … 362 368 m_values.append(cell); 363 369 } 370 371 inline Heap* Heap::heap(JSValue v) 372 { 373 if (!v.isCell()) 374 return 0; 375 return heap(v.asCell()); 376 } 377 378 inline Heap* Heap::heap(JSCell* c) 379 { 380 return cellBlock(c)->heap; 381 } 382 364 383 } // namespace JSC 365 384
Note:
See TracChangeset
for help on using the changeset viewer.