Changeset 30871 in webkit for trunk/JavaScriptCore/kjs/function.h
- Timestamp:
- Mar 7, 2008, 11:46:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.h
r30534 r30871 126 126 class PrototypeFunction : public InternalFunctionImp { 127 127 public: 128 typedef KJS::JSValue* (*JSMemberFunction)(ExecState*, JSObject*, const List&);128 typedef JSValue* (*JSMemberFunction)(ExecState*, JSObject* thisObj, const List&); 129 129 130 130 PrototypeFunction(ExecState*, int len, const Identifier&, JSMemberFunction); … … 138 138 139 139 140 // Just like PrototypeFunction, but callbacks also get passed the JS function object. 141 class PrototypeReflexiveFunction : public InternalFunctionImp { 142 public: 143 typedef JSValue* (*JSMemberFunction)(ExecState*, PrototypeReflexiveFunction*, JSObject* thisObj, const List&); 144 145 PrototypeReflexiveFunction(ExecState*, FunctionPrototype*, int len, const Identifier&, JSMemberFunction); 146 147 virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const List&); 148 149 private: 150 const JSMemberFunction m_function; 151 }; 152 140 153 // Global Functions 141 JSValue* globalFuncEval(ExecState*, JSObject*, const List&);154 JSValue* globalFuncEval(ExecState*, PrototypeReflexiveFunction*, JSObject*, const List&); 142 155 JSValue* globalFuncParseInt(ExecState*, JSObject*, const List&); 143 156 JSValue* globalFuncParseFloat(ExecState*, JSObject*, const List&); … … 154 167 #endif 155 168 169 JSValue* eval(ExecState*, const ScopeChain&, JSVariableObject*, JSGlobalObject*, JSObject* thisObj, const List& args); 170 156 171 static const double mantissaOverflowLowerBound = 9007199254740992.0; 157 172 double parseIntOverflow(const char*, int length, int radix);
Note:
See TracChangeset
for help on using the changeset viewer.