Changeset 79177 in webkit for trunk/Source/JavaScriptCore/runtime/Lookup.cpp
- Timestamp:
- Feb 20, 2011, 9:18:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Lookup.cpp
r79142 r79177 23 23 #include "Executable.h" 24 24 #include "JSFunction.h" 25 #include "PrototypeFunction.h"26 25 27 26 namespace JSC { … … 78 77 79 78 if (!location) { 80 NativeFunctionWrapper* function;79 JSFunction* function; 81 80 JSGlobalObject* globalObject = asGlobalObject(thisObj->getAnonymousValue(0).asCell()); 82 81 #if ENABLE(JIT) && ENABLE(JIT_OPTIMIZE_NATIVE_CALL) 83 82 if (entry->generator()) 84 function = new (exec) NativeFunctionWrapper(exec, globalObject, globalObject->prototypeFunctionStructure(), entry->functionLength(), propertyName, exec->globalData().getHostFunction(entry->function(), entry->generator()));83 function = new (exec) JSFunction(exec, globalObject, globalObject->functionStructure(), entry->functionLength(), propertyName, exec->globalData().getHostFunction(entry->function(), entry->generator())); 85 84 else 86 85 #endif 87 function = new (exec) NativeFunctionWrapper(exec, globalObject, globalObject->prototypeFunctionStructure(), entry->functionLength(), propertyName, entry->function());86 function = new (exec) JSFunction(exec, globalObject, globalObject->functionStructure(), entry->functionLength(), propertyName, entry->function()); 88 87 89 88 thisObj->putDirectFunction(exec->globalData(), propertyName, function, entry->attributes());
Note:
See TracChangeset
for help on using the changeset viewer.