Changeset 95475 in webkit for trunk/Source/JavaScriptCore/runtime/JSString.h
- Timestamp:
- Sep 19, 2011, 2:28:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSString.h
r95466 r95475 427 427 unsigned length() { return m_length; } 428 428 429 JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;430 429 bool getStringPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&); 431 430 bool getStringPropertySlot(ExecState*, unsigned propertyName, PropertySlot&); … … 494 493 } 495 494 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) const686 {687 if (!isCell())688 return asValue();689 return asCell()->toPrimitive(exec, preferredType);690 }691 684 692 685 inline UString JSValue::toString(ExecState* exec) const
Note:
See TracChangeset
for help on using the changeset viewer.