Changeset 34580 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Jun 15, 2008, 8:02:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r34578 r34580 62 62 JSValue* functionProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&) 63 63 { 64 if (!thisObj || !thisObj->inherits(&InternalFunction Imp::info)) {64 if (!thisObj || !thisObj->inherits(&InternalFunction::info)) { 65 65 #ifndef NDEBUG 66 66 fprintf(stderr,"attempted toString() call on null or non-function object\n"); … … 74 74 } 75 75 76 return jsString("function " + static_cast<InternalFunction Imp*>(thisObj)->functionName().ustring() + "() {\n [native code]\n}");76 return jsString("function " + static_cast<InternalFunction*>(thisObj)->functionName().ustring() + "() {\n [native code]\n}"); 77 77 } 78 78 … … 126 126 } 127 127 128 // ------------------------------ Function ObjectImp----------------------------129 130 Function ObjectImp::FunctionObjectImp(ExecState* exec, FunctionPrototype* functionPrototype)131 : InternalFunction Imp(functionPrototype, functionPrototype->classInfo()->className)128 // ------------------------------ FunctionConstructor ---------------------------- 129 130 FunctionConstructor::FunctionConstructor(ExecState* exec, FunctionPrototype* functionPrototype) 131 : InternalFunction(functionPrototype, functionPrototype->classInfo()->className) 132 132 { 133 133 putDirect(exec->propertyNames().prototype, functionPrototype, DontEnum | DontDelete | ReadOnly); … … 137 137 } 138 138 139 ConstructType Function ObjectImp::getConstructData(ConstructData&)139 ConstructType FunctionConstructor::getConstructData(ConstructData&) 140 140 { 141 141 return ConstructTypeNative; … … 143 143 144 144 // ECMA 15.3.2 The Function Constructor 145 JSObject* Function ObjectImp::construct(ExecState* exec, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber)145 JSObject* FunctionConstructor::construct(ExecState* exec, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber) 146 146 { 147 147 UString p(""); … … 216 216 217 217 // ECMA 15.3.2 The Function Constructor 218 JSObject* Function ObjectImp::construct(ExecState* exec, const List& args)218 JSObject* FunctionConstructor::construct(ExecState* exec, const List& args) 219 219 { 220 220 return construct(exec, args, "anonymous", UString(), 1); … … 222 222 223 223 // ECMA 15.3.1 The Function Constructor Called as a Function 224 JSValue* Function ObjectImp::callAsFunction(ExecState* exec, JSObject*, const List& args)224 JSValue* FunctionConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args) 225 225 { 226 226 return construct(exec, args);
Note:
See TracChangeset
for help on using the changeset viewer.