Changeset 47622 in webkit for trunk/JavaScriptCore/runtime/JSString.h
- Timestamp:
- Aug 20, 2009, 10:41:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSString.h
r47267 r47622 212 212 } 213 213 214 inline UString JSValue::toString(ExecState* exec) const 215 { 216 if (isString()) 217 return static_cast<JSString*>(asCell())->value(); 218 if (isInt32()) 219 return exec->globalData().numericStrings.add(asInt32()); 220 if (isDouble()) 221 return exec->globalData().numericStrings.add(asDouble()); 222 if (isTrue()) 223 return "true"; 224 if (isFalse()) 225 return "false"; 226 if (isNull()) 227 return "null"; 228 if (isUndefined()) 229 return "undefined"; 230 ASSERT(isCell()); 231 return asCell()->toString(exec); 232 } 233 214 234 } // namespace JSC 215 235
Note:
See TracChangeset
for help on using the changeset viewer.