Changeset 29588 in webkit for trunk/JavaScriptCore/kjs/function.h
- Timestamp:
- Jan 17, 2008, 11:27:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.h
r29508 r29588 55 55 private: 56 56 Identifier m_name; 57 };58 59 /**60 * @internal61 *62 * The initial value of Function.prototype (and thus all objects created63 * with the Function constructor)64 */65 class FunctionPrototype : public InternalFunctionImp {66 public:67 FunctionPrototype(ExecState *exec);68 virtual ~FunctionPrototype();69 70 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);71 57 }; 72 58 … … 144 130 145 131 PrototypeFunction(ExecState*, int len, const Identifier&, JSMemberFunction); 132 PrototypeFunction(ExecState*, FunctionPrototype*, int len, const Identifier&, JSMemberFunction); 146 133 147 134 virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const List&); … … 151 138 }; 152 139 153 class GlobalFuncImp : public InternalFunctionImp { 154 public: 155 GlobalFuncImp(ExecState*, FunctionPrototype*, int i, int len, const Identifier&); 156 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args); 157 enum { Eval, ParseInt, ParseFloat, IsNaN, IsFinite, Escape, UnEscape, 158 DecodeURI, DecodeURIComponent, EncodeURI, EncodeURIComponent 140 141 // Global Functions 142 JSValue* globalFuncEval(ExecState*, JSObject*, const List&); 143 JSValue* globalFuncParseInt(ExecState*, JSObject*, const List&); 144 JSValue* globalFuncParseFloat(ExecState*, JSObject*, const List&); 145 JSValue* globalFuncIsNaN(ExecState*, JSObject*, const List&); 146 JSValue* globalFuncIsFinite(ExecState*, JSObject*, const List&); 147 JSValue* globalFuncDecodeURI(ExecState*, JSObject*, const List&); 148 JSValue* globalFuncDecodeURIComponent(ExecState*, JSObject*, const List&); 149 JSValue* globalFuncEncodeURI(ExecState*, JSObject*, const List&); 150 JSValue* globalFuncEncodeURIComponent(ExecState*, JSObject*, const List&); 151 JSValue* globalFuncEscape(ExecState*, JSObject*, const List&); 152 JSValue* globalFuncUnescape(ExecState*, JSObject*, const List&); 159 153 #ifndef NDEBUG 160 , KJSPrint154 JSValue* globalFuncKJSPrint(ExecState*, JSObject*, const List&); 161 155 #endif 162 };163 private:164 int id;165 };166 156 167 static const double mantissaOverflowLowerBound = 9007199254740992.0;168 double parseIntOverflow(const char* s, int length, int radix);157 static const double mantissaOverflowLowerBound = 9007199254740992.0; 158 double parseIntOverflow(const char*, int length, int radix); 169 159 170 160 } // namespace
Note:
See TracChangeset
for help on using the changeset viewer.