Changeset 27747 in webkit for trunk/JavaScriptCore/kjs/value.cpp
- Timestamp:
- Nov 13, 2007, 12:02:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/value.cpp
r27201 r27747 73 73 } 74 74 75 int32_t JSValue::toInt32SlowCase( ExecState* exec, bool& ok) const75 int32_t JSValue::toInt32SlowCase(double d, bool& ok) 76 76 { 77 77 ok = true; 78 78 79 double d = toNumber(exec);80 79 if (d >= -D32 / 2 && d < D32 / 2) 81 80 return static_cast<int32_t>(d); … … 94 93 } 95 94 96 uint32_t JSValue::toUInt32SlowCase(ExecState* exec, bool& ok) const 95 int32_t JSValue::toInt32SlowCase(ExecState* exec, bool& ok) const 96 { 97 return JSValue::toInt32SlowCase(toNumber(exec), ok); 98 } 99 100 uint32_t JSValue::toUInt32SlowCase(double d, bool& ok) 97 101 { 98 102 ok = true; 99 103 100 double d = toNumber(exec);101 104 if (d >= 0.0 && d < D32) 102 105 return static_cast<uint32_t>(d); … … 111 114 d32 += D32; 112 115 return static_cast<uint32_t>(d32); 116 } 117 118 uint32_t JSValue::toUInt32SlowCase(ExecState* exec, bool& ok) const 119 { 120 return JSValue::toUInt32SlowCase(toNumber(exec), ok); 113 121 } 114 122
Note:
See TracChangeset
for help on using the changeset viewer.