66
67
void setUpStaticFunctionSlot(ExecState* exec, const HashEntry* entry, JSObject* thisObj, const Identifier& propertyName, PropertySlot& slot)
68
69
ASSERT(entry->attributes() & Function);
72
PrototypeFunction* function = new (exec) PrototypeFunction(exec, entry->functionLength(), propertyName, entry->function());
73
InternalFunction* function = new (exec) NativeFunctionWrapper(exec, exec->lexicalGlobalObject()->prototypeFunctionStructure(), entry->functionLength(), propertyName, entry->function());
73
74
thisObj->putDirect(propertyName, function, entry->attributes());
74
75
location = thisObj->getDirectLocation(propertyName);