Changeset 55401 in webkit for trunk/JavaScriptCore/runtime/NumberConstructor.cpp
- Timestamp:
- Mar 2, 2010, 12:20:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/NumberConstructor.cpp
r48836 r55401 30 30 ASSERT_CLASS_FITS_IN_CELL(NumberConstructor); 31 31 32 static JSValue numberConstructorNaNValue(ExecState*, const Identifier&, const PropertySlot&);33 static JSValue numberConstructorNegInfinity(ExecState*, const Identifier&, const PropertySlot&);34 static JSValue numberConstructorPosInfinity(ExecState*, const Identifier&, const PropertySlot&);35 static JSValue numberConstructorMaxValue(ExecState*, const Identifier&, const PropertySlot&);36 static JSValue numberConstructorMinValue(ExecState*, const Identifier&, const PropertySlot&);32 static JSValue numberConstructorNaNValue(ExecState*, JSValue, const Identifier&); 33 static JSValue numberConstructorNegInfinity(ExecState*, JSValue, const Identifier&); 34 static JSValue numberConstructorPosInfinity(ExecState*, JSValue, const Identifier&); 35 static JSValue numberConstructorMaxValue(ExecState*, JSValue, const Identifier&); 36 static JSValue numberConstructorMinValue(ExecState*, JSValue, const Identifier&); 37 37 38 38 } // namespace JSC … … 74 74 } 75 75 76 static JSValue numberConstructorNaNValue(ExecState* exec, const Identifier&, const PropertySlot&)76 static JSValue numberConstructorNaNValue(ExecState* exec, JSValue, const Identifier&) 77 77 { 78 78 return jsNaN(exec); 79 79 } 80 80 81 static JSValue numberConstructorNegInfinity(ExecState* exec, const Identifier&, const PropertySlot&)81 static JSValue numberConstructorNegInfinity(ExecState* exec, JSValue, const Identifier&) 82 82 { 83 83 return jsNumber(exec, -Inf); 84 84 } 85 85 86 static JSValue numberConstructorPosInfinity(ExecState* exec, const Identifier&, const PropertySlot&)86 static JSValue numberConstructorPosInfinity(ExecState* exec, JSValue, const Identifier&) 87 87 { 88 88 return jsNumber(exec, Inf); 89 89 } 90 90 91 static JSValue numberConstructorMaxValue(ExecState* exec, const Identifier&, const PropertySlot&)91 static JSValue numberConstructorMaxValue(ExecState* exec, JSValue, const Identifier&) 92 92 { 93 93 return jsNumber(exec, 1.7976931348623157E+308); 94 94 } 95 95 96 static JSValue numberConstructorMinValue(ExecState* exec, const Identifier&, const PropertySlot&)96 static JSValue numberConstructorMinValue(ExecState* exec, JSValue, const Identifier&) 97 97 { 98 98 return jsNumber(exec, 5E-324);
Note:
See TracChangeset
for help on using the changeset viewer.