Changeset 39769 in webkit for trunk/JavaScriptCore/runtime/JSImmediate.h
- Timestamp:
- Jan 9, 2009, 4:14:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSImmediate.h
r39738 r39769 38 38 class JSCell; 39 39 class JSObject; 40 class JSValue;41 40 class UString; 42 41 … … 506 505 uint32_t toUInt32SlowCase(double, bool& ok); 507 506 508 inline bool JSValue ::isUndefined() const507 inline bool JSValuePtr::isUndefined() const 509 508 { 510 509 return asValue() == jsUndefined(); 511 510 } 512 511 513 inline bool JSValue ::isNull() const512 inline bool JSValuePtr::isNull() const 514 513 { 515 514 return asValue() == jsNull(); 516 515 } 517 516 518 inline bool JSValue ::isUndefinedOrNull() const517 inline bool JSValuePtr::isUndefinedOrNull() const 519 518 { 520 519 return JSImmediate::isUndefinedOrNull(asValue()); 521 520 } 522 521 523 inline bool JSValue ::isBoolean() const522 inline bool JSValuePtr::isBoolean() const 524 523 { 525 524 return JSImmediate::isBoolean(asValue()); 526 525 } 527 526 528 inline bool JSValue ::getBoolean(bool& v) const527 inline bool JSValuePtr::getBoolean(bool& v) const 529 528 { 530 529 if (JSImmediate::isBoolean(asValue())) { … … 536 535 } 537 536 538 inline bool JSValue ::getBoolean() const537 inline bool JSValuePtr::getBoolean() const 539 538 { 540 539 return asValue() == jsBoolean(true); 541 540 } 542 541 543 ALWAYS_INLINE int32_t JSValue ::toInt32(ExecState* exec) const542 ALWAYS_INLINE int32_t JSValuePtr::toInt32(ExecState* exec) const 544 543 { 545 544 int32_t i; … … 550 549 } 551 550 552 inline uint32_t JSValue ::toUInt32(ExecState* exec) const551 inline uint32_t JSValuePtr::toUInt32(ExecState* exec) const 553 552 { 554 553 uint32_t i; … … 577 576 } 578 577 579 inline int32_t JSValue ::toInt32(ExecState* exec, bool& ok) const578 inline int32_t JSValuePtr::toInt32(ExecState* exec, bool& ok) const 580 579 { 581 580 int32_t i; … … 587 586 } 588 587 589 inline uint32_t JSValue ::toUInt32(ExecState* exec, bool& ok) const588 inline uint32_t JSValuePtr::toUInt32(ExecState* exec, bool& ok) const 590 589 { 591 590 uint32_t i;
Note:
See TracChangeset
for help on using the changeset viewer.