Changeset 95466 in webkit for trunk/Source/JavaScriptCore/runtime/JSString.h
- Timestamp:
- Sep 19, 2011, 1:32:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSString.h
r95229 r95466 427 427 unsigned length() { return m_length; } 428 428 429 JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const; 429 430 bool getStringPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&); 430 431 bool getStringPropertySlot(ExecState*, unsigned propertyName, PropertySlot&); … … 493 494 } 494 495 495 virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;496 496 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue& value); 497 497 virtual bool toBoolean(ExecState*) const; … … 682 682 683 683 // --- JSValue inlines ---------------------------- 684 685 inline JSValue JSValue::toPrimitive(ExecState* exec, PreferredPrimitiveType preferredType) const 686 { 687 if (!isCell()) 688 return asValue(); 689 return asCell()->toPrimitive(exec, preferredType); 690 } 684 691 685 692 inline UString JSValue::toString(ExecState* exec) const
Note:
See TracChangeset
for help on using the changeset viewer.