Changeset 57019 in webkit for trunk/JavaScriptCore/runtime/JSObject.h
- Timestamp:
- Apr 2, 2010, 1:15:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSObject.h
r55521 r57019 36 36 #include "Structure.h" 37 37 #include "JSGlobalData.h" 38 #include "JSString.h" 38 39 #include <wtf/StdLibExtras.h> 39 40 … … 710 711 } 711 712 713 // --- JSValue inlines ---------------------------- 714 715 ALWAYS_INLINE UString JSValue::toThisString(ExecState* exec) const 716 { 717 return isString() ? static_cast<JSString*>(asCell())->value(exec) : toThisObject(exec)->toString(exec); 718 } 719 720 inline JSString* JSValue::toThisJSString(ExecState* exec) const 721 { 722 return isString() ? static_cast<JSString*>(asCell()) : jsString(exec, toThisObject(exec)->toString(exec)); 723 } 724 712 725 } // namespace JSC 713 726
Note:
See TracChangeset
for help on using the changeset viewer.