Changeset 27095 in webkit for trunk/JavaScriptCore/kjs/value.h
- Timestamp:
- Oct 26, 2007, 12:51:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/value.h
r27086 r27095 92 92 // Integer conversions. 93 93 double toInteger(ExecState*) const; 94 double toIntegerPreserveNaN(ExecState*) const; 94 95 int32_t toInt32(ExecState*) const; 95 96 int32_t toInt32(ExecState*, bool& ok) const; 96 97 uint32_t toUInt32(ExecState*) const; 97 98 uint32_t toUInt32(ExecState*, bool& ok) const; 98 uint16_t toUInt16(ExecState*) const;99 99 100 100 // Floating point conversions. … … 406 406 { 407 407 int32_t i; 408 if ( JSImmediate::isImmediate(this) && JSImmediate::getTruncatedInt32(this,i))408 if (getTruncatedInt32(i)) 409 409 return i; 410 410 bool ok; … … 415 415 { 416 416 uint32_t i; 417 if ( JSImmediate::isImmediate(this) && JSImmediate::getTruncatedUInt32(this,i))417 if (getTruncatedUInt32(i)) 418 418 return i; 419 419 bool ok; … … 424 424 { 425 425 int32_t i; 426 if ( JSImmediate::isImmediate(this) && JSImmediate::getTruncatedInt32(this,i)) {426 if (getTruncatedInt32(i)) { 427 427 ok = true; 428 428 return i; … … 434 434 { 435 435 uint32_t i; 436 if ( JSImmediate::isImmediate(this) && JSImmediate::getTruncatedUInt32(this,i)) {436 if (getTruncatedUInt32(i)) { 437 437 ok = true; 438 438 return i;
Note:
See TracChangeset
for help on using the changeset viewer.