Changeset 39769 in webkit for trunk/JavaScriptCore/runtime/JSValue.cpp
- Timestamp:
- Jan 9, 2009, 4:14:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSValue.cpp
r37938 r39769 32 32 33 33 // ECMA 9.4 34 double JSValue ::toInteger(ExecState* exec) const34 double JSValuePtr::toInteger(ExecState* exec) const 35 35 { 36 36 int32_t i; … … 41 41 } 42 42 43 double JSValue ::toIntegerPreserveNaN(ExecState* exec) const43 double JSValuePtr::toIntegerPreserveNaN(ExecState* exec) const 44 44 { 45 45 int32_t i; … … 69 69 } 70 70 71 int32_t JSValue ::toInt32SlowCase(ExecState* exec, bool& ok) const71 int32_t JSValuePtr::toInt32SlowCase(ExecState* exec, bool& ok) const 72 72 { 73 73 return JSC::toInt32SlowCase(toNumber(exec), ok); … … 92 92 } 93 93 94 uint32_t JSValue ::toUInt32SlowCase(ExecState* exec, bool& ok) const94 uint32_t JSValuePtr::toUInt32SlowCase(ExecState* exec, bool& ok) const 95 95 { 96 96 return JSC::toUInt32SlowCase(toNumber(exec), ok); 97 97 } 98 98 99 float JSValue::toFloat(ExecState* exec) const100 {101 return static_cast<float>(toNumber(exec));102 }103 104 99 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.