Ignore:
Timestamp:
Jan 16, 2008, 2:31:17 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Oliver.

Clean up MathObjectImp, it needed a little scrubbing.

  • kjs/math_object.cpp: (KJS::MathObjectImp::MathObjectImp): (KJS::MathObjectImp::getOwnPropertySlot): (KJS::MathObjectImp::getValueProperty): (KJS::mathProtoFuncACos): (KJS::mathProtoFuncASin): (KJS::mathProtoFuncATan): (KJS::mathProtoFuncATan2): (KJS::mathProtoFuncCos): (KJS::mathProtoFuncExp): (KJS::mathProtoFuncLog): (KJS::mathProtoFuncSin): (KJS::mathProtoFuncSqrt): (KJS::mathProtoFuncTan):
  • kjs/math_object.h: (KJS::MathObjectImp::classInfo): (KJS::MathObjectImp::):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/math_object.h

    r29508 r29541  
    2828namespace KJS {
    2929
    30   class MathObjectImp : public JSObject {
    31   public:
    32     MathObjectImp(ExecState*, ObjectPrototype*);
     30    class MathObjectImp : public JSObject {
     31    public:
     32        MathObjectImp(ExecState*, ObjectPrototype*);
    3333
    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;
    3636
    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;
    3939
    40     enum { Euler, Ln2, Ln10, Log2E, Log10E, Pi, Sqrt1_2, Sqrt2 };
    41   };
     40        enum { Euler, Ln2, Ln10, Log2E, Log10E, Pi, Sqrt1_2, Sqrt2 };
     41    };
    4242
    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&);
    6162
    6263} // namespace KJS
Note: See TracChangeset for help on using the changeset viewer.