Changeset 29508 in webkit for trunk/JavaScriptCore/kjs/math_object.cpp
- Timestamp:
- Jan 15, 2008, 10:43:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/math_object.cpp
r27608 r29508 45 45 SQRT1_2 MathObjectImp::Sqrt1_2 DontEnum|DontDelete|ReadOnly 46 46 SQRT2 MathObjectImp::Sqrt2 DontEnum|DontDelete|ReadOnly 47 abs &MathProtoFuncAbs::createDontEnum|Function 148 acos &MathProtoFuncACos::createDontEnum|Function 149 asin &MathProtoFuncASin::createDontEnum|Function 150 atan &MathProtoFuncATan::createDontEnum|Function 151 atan2 &MathProtoFuncATan2::createDontEnum|Function 252 ceil &MathProtoFuncCeil::createDontEnum|Function 153 cos &MathProtoFuncCos::createDontEnum|Function 154 exp &MathProtoFuncExp::createDontEnum|Function 155 floor &MathProtoFuncFloor::createDontEnum|Function 156 log &MathProtoFuncLog::createDontEnum|Function 157 max &MathProtoFuncMax::createDontEnum|Function 258 min &MathProtoFuncMin::createDontEnum|Function 259 pow &MathProtoFuncPow::createDontEnum|Function 260 random &MathProtoFuncRandom::createDontEnum|Function 061 round &MathProtoFuncRound::createDontEnum|Function 162 sin &MathProtoFuncSin::createDontEnum|Function 163 sqrt &MathProtoFuncSqrt::createDontEnum|Function 164 tan &MathProtoFuncTan::createDontEnum|Function 147 abs mathProtoFuncAbs DontEnum|Function 1 48 acos mathProtoFuncACos DontEnum|Function 1 49 asin mathProtoFuncASin DontEnum|Function 1 50 atan mathProtoFuncATan DontEnum|Function 1 51 atan2 mathProtoFuncATan2 DontEnum|Function 2 52 ceil mathProtoFuncCeil DontEnum|Function 1 53 cos mathProtoFuncCos DontEnum|Function 1 54 exp mathProtoFuncExp DontEnum|Function 1 55 floor mathProtoFuncFloor DontEnum|Function 1 56 log mathProtoFuncLog DontEnum|Function 1 57 max mathProtoFuncMax DontEnum|Function 2 58 min mathProtoFuncMin DontEnum|Function 2 59 pow mathProtoFuncPow DontEnum|Function 2 60 random mathProtoFuncRandom DontEnum|Function 0 61 round mathProtoFuncRound DontEnum|Function 1 62 sin mathProtoFuncSin DontEnum|Function 1 63 sqrt mathProtoFuncSqrt DontEnum|Function 1 64 tan mathProtoFuncTan DontEnum|Function 1 65 65 @end 66 66 */ … … 116 116 // ------------------------------ Functions -------------------------------- 117 117 118 JSValue* MathProtoFuncAbs::callAsFunction(ExecState* exec, JSObject*, const List& args)118 JSValue* mathProtoFuncAbs(ExecState* exec, JSObject*, const List& args) 119 119 { 120 120 double arg = args[0]->toNumber(exec); … … 122 122 } 123 123 124 JSValue* MathProtoFuncACos::callAsFunction(ExecState* exec, JSObject*, const List& args)124 JSValue* mathProtoFuncACos(ExecState* exec, JSObject*, const List& args) 125 125 { 126 126 double arg = args[0]->toNumber(exec); … … 128 128 } 129 129 130 JSValue* MathProtoFuncASin::callAsFunction(ExecState* exec, JSObject*, const List& args)130 JSValue* mathProtoFuncASin(ExecState* exec, JSObject*, const List& args) 131 131 { 132 132 double arg = args[0]->toNumber(exec); … … 134 134 } 135 135 136 JSValue* MathProtoFuncATan::callAsFunction(ExecState* exec, JSObject*, const List& args)136 JSValue* mathProtoFuncATan(ExecState* exec, JSObject*, const List& args) 137 137 { 138 138 double arg = args[0]->toNumber(exec); … … 140 140 } 141 141 142 JSValue* MathProtoFuncATan2::callAsFunction(ExecState* exec, JSObject*, const List& args)142 JSValue* mathProtoFuncATan2(ExecState* exec, JSObject*, const List& args) 143 143 { 144 144 double arg = args[0]->toNumber(exec); … … 147 147 } 148 148 149 JSValue* MathProtoFuncCeil::callAsFunction(ExecState* exec, JSObject*, const List& args)149 JSValue* mathProtoFuncCeil(ExecState* exec, JSObject*, const List& args) 150 150 { 151 151 double arg = args[0]->toNumber(exec); … … 155 155 } 156 156 157 JSValue* MathProtoFuncCos::callAsFunction(ExecState* exec, JSObject*, const List& args)157 JSValue* mathProtoFuncCos(ExecState* exec, JSObject*, const List& args) 158 158 { 159 159 double arg = args[0]->toNumber(exec); … … 161 161 } 162 162 163 JSValue* MathProtoFuncExp::callAsFunction(ExecState* exec, JSObject*, const List& args)163 JSValue* mathProtoFuncExp(ExecState* exec, JSObject*, const List& args) 164 164 { 165 165 double arg = args[0]->toNumber(exec); … … 167 167 } 168 168 169 JSValue* MathProtoFuncFloor::callAsFunction(ExecState* exec, JSObject*, const List& args)169 JSValue* mathProtoFuncFloor(ExecState* exec, JSObject*, const List& args) 170 170 { 171 171 double arg = args[0]->toNumber(exec); … … 175 175 } 176 176 177 JSValue* MathProtoFuncLog::callAsFunction(ExecState* exec, JSObject*, const List& args)177 JSValue* mathProtoFuncLog(ExecState* exec, JSObject*, const List& args) 178 178 { 179 179 double arg = args[0]->toNumber(exec); … … 181 181 } 182 182 183 JSValue* MathProtoFuncMax::callAsFunction(ExecState* exec, JSObject*, const List& args)183 JSValue* mathProtoFuncMax(ExecState* exec, JSObject*, const List& args) 184 184 { 185 185 unsigned argsCount = args.size(); … … 197 197 } 198 198 199 JSValue* MathProtoFuncMin::callAsFunction(ExecState* exec, JSObject*, const List& args)199 JSValue* mathProtoFuncMin(ExecState* exec, JSObject*, const List& args) 200 200 { 201 201 unsigned argsCount = args.size(); … … 213 213 } 214 214 215 JSValue* MathProtoFuncPow::callAsFunction(ExecState* exec, JSObject*, const List& args)215 JSValue* mathProtoFuncPow(ExecState* exec, JSObject*, const List& args) 216 216 { 217 217 // ECMA 15.8.2.1.13 … … 229 229 static bool didInitRandom; 230 230 231 JSValue* MathProtoFuncRandom::callAsFunction(ExecState*, JSObject*, const List&)231 JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const List&) 232 232 { 233 233 if (!didInitRandom) { … … 238 238 } 239 239 240 JSValue* MathProtoFuncRound::callAsFunction(ExecState* exec, JSObject*, const List& args)240 JSValue* mathProtoFuncRound(ExecState* exec, JSObject*, const List& args) 241 241 { 242 242 double arg = args[0]->toNumber(exec); … … 246 246 } 247 247 248 JSValue* MathProtoFuncSin::callAsFunction(ExecState* exec, JSObject*, const List& args)248 JSValue* mathProtoFuncSin(ExecState* exec, JSObject*, const List& args) 249 249 { 250 250 double arg = args[0]->toNumber(exec); … … 252 252 } 253 253 254 JSValue* MathProtoFuncSqrt::callAsFunction(ExecState* exec, JSObject*, const List& args)254 JSValue* mathProtoFuncSqrt(ExecState* exec, JSObject*, const List& args) 255 255 { 256 256 double arg = args[0]->toNumber(exec); … … 258 258 } 259 259 260 JSValue* MathProtoFuncTan::callAsFunction(ExecState* exec, JSObject*, const List& args)260 JSValue* mathProtoFuncTan(ExecState* exec, JSObject*, const List& args) 261 261 { 262 262 double arg = args[0]->toNumber(exec);
Note:
See TracChangeset
for help on using the changeset viewer.