Changeset 47622 in webkit for trunk/JavaScriptCore/runtime/Operations.h
- Timestamp:
- Aug 20, 2009, 10:41:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Operations.h
r46598 r47622 309 309 UString result(resultRep); 310 310 311 // Loop over the ope nards, writing them into the output buffer.311 // Loop over the operands, writing them into the output buffer. 312 312 for (unsigned i = 0; i < count; ++i) { 313 313 JSValue v = strings[i].jsValue(); 314 314 if (LIKELY(v.isString())) 315 315 result.append(asString(v)->value()); 316 else if (v.isInt32()) 317 result.appendNumeric(v.asInt32()); 318 else { 319 double d; 320 if (v.getNumber(d)) 321 result.appendNumeric(d); 322 else 323 result.append(v.toString(callFrame)); 324 } 316 else 317 result.append(v.toString(callFrame)); 325 318 } 326 319
Note:
See TracChangeset
for help on using the changeset viewer.