Changeset 29541 in webkit for trunk/JavaScriptCore/kjs/math_object.h
- Timestamp:
- Jan 16, 2008, 2:31:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/math_object.h
r29508 r29541 28 28 namespace KJS { 29 29 30 class MathObjectImp : public JSObject {31 public:32 MathObjectImp(ExecState*, ObjectPrototype*);30 class MathObjectImp : public JSObject { 31 public: 32 MathObjectImp(ExecState*, ObjectPrototype*); 33 33 34 bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);35 JSValue* getValueProperty(ExecState*, int token) const;34 bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); 35 JSValue* getValueProperty(ExecState*, int token) const; 36 36 37 virtual const ClassInfo* classInfo() const { return &info; }38 static const ClassInfo info;37 virtual const ClassInfo* classInfo() const { return &info; } 38 static const ClassInfo info; 39 39 40 enum { Euler, Ln2, Ln10, Log2E, Log10E, Pi, Sqrt1_2, Sqrt2 };41 };40 enum { Euler, Ln2, Ln10, Log2E, Log10E, Pi, Sqrt1_2, Sqrt2 }; 41 }; 42 42 43 JSValue* mathProtoFuncAbs(ExecState*, JSObject*, const List&); 44 JSValue* mathProtoFuncACos(ExecState*, JSObject*, const List&); 45 JSValue* mathProtoFuncASin(ExecState*, JSObject*, const List&); 46 JSValue* mathProtoFuncATan(ExecState*, JSObject*, const List&); 47 JSValue* mathProtoFuncATan2(ExecState*, JSObject*, const List&); 48 JSValue* mathProtoFuncCeil(ExecState*, JSObject*, const List&); 49 JSValue* mathProtoFuncCos(ExecState*, JSObject*, const List&); 50 JSValue* mathProtoFuncExp(ExecState*, JSObject*, const List&); 51 JSValue* mathProtoFuncFloor(ExecState*, JSObject*, const List&); 52 JSValue* mathProtoFuncLog(ExecState*, JSObject*, const List&); 53 JSValue* mathProtoFuncMax(ExecState*, JSObject*, const List&); 54 JSValue* mathProtoFuncMin(ExecState*, JSObject*, const List&); 55 JSValue* mathProtoFuncPow(ExecState*, JSObject*, const List&); 56 JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const List&); 57 JSValue* mathProtoFuncRound(ExecState*, JSObject*, const List&); 58 JSValue* mathProtoFuncSin(ExecState*, JSObject*, const List&); 59 JSValue* mathProtoFuncSqrt(ExecState*, JSObject*, const List&); 60 JSValue* mathProtoFuncTan(ExecState*, JSObject*, const List&); 43 // Functions 44 JSValue* mathProtoFuncAbs(ExecState*, JSObject*, const List&); 45 JSValue* mathProtoFuncACos(ExecState*, JSObject*, const List&); 46 JSValue* mathProtoFuncASin(ExecState*, JSObject*, const List&); 47 JSValue* mathProtoFuncATan(ExecState*, JSObject*, const List&); 48 JSValue* mathProtoFuncATan2(ExecState*, JSObject*, const List&); 49 JSValue* mathProtoFuncCeil(ExecState*, JSObject*, const List&); 50 JSValue* mathProtoFuncCos(ExecState*, JSObject*, const List&); 51 JSValue* mathProtoFuncExp(ExecState*, JSObject*, const List&); 52 JSValue* mathProtoFuncFloor(ExecState*, JSObject*, const List&); 53 JSValue* mathProtoFuncLog(ExecState*, JSObject*, const List&); 54 JSValue* mathProtoFuncMax(ExecState*, JSObject*, const List&); 55 JSValue* mathProtoFuncMin(ExecState*, JSObject*, const List&); 56 JSValue* mathProtoFuncPow(ExecState*, JSObject*, const List&); 57 JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const List&); 58 JSValue* mathProtoFuncRound(ExecState*, JSObject*, const List&); 59 JSValue* mathProtoFuncSin(ExecState*, JSObject*, const List&); 60 JSValue* mathProtoFuncSqrt(ExecState*, JSObject*, const List&); 61 JSValue* mathProtoFuncTan(ExecState*, JSObject*, const List&); 61 62 62 63 } // namespace KJS
Note:
See TracChangeset
for help on using the changeset viewer.