Changeset 60170 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- May 25, 2010, 9:51:59 AM (15 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSFunction.cpp
r60117 r60170 67 67 } 68 68 69 #if ENABLE(JIT) 69 70 JSFunction::JSFunction(ExecState* exec, JSGlobalObject* globalObject, NonNullPassRefPtr<Structure> structure, int length, const Identifier& name, PassRefPtr<NativeExecutable> thunk) 70 71 : Base(globalObject, structure) 71 #if ENABLE(JIT)72 72 , m_executable(thunk) 73 #endif74 73 , m_scopeChain(globalObject->globalScopeChain()) 75 74 { 76 75 putDirect(exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum); 77 #if ENABLE(JIT)78 76 putDirect(exec->propertyNames().length, jsNumber(exec, length), DontDelete | ReadOnly | DontEnum); 79 #else 80 UNUSED_PARAM(thunk); 81 UNUSED_PARAM(length); 82 ASSERT_NOT_REACHED(); 83 #endif 84 } 77 } 78 #endif 85 79 86 80 JSFunction::JSFunction(ExecState* exec, JSGlobalObject* globalObject, NonNullPassRefPtr<Structure> structure, int length, const Identifier& name, NativeFunction func) -
trunk/JavaScriptCore/runtime/JSFunction.h
r60117 r60170 46 46 public: 47 47 JSFunction(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure>, int length, const Identifier&, NativeFunction); 48 #if ENABLE(JIT) 48 49 JSFunction(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure>, int length, const Identifier&, PassRefPtr<NativeExecutable>); 50 #endif 49 51 JSFunction(ExecState*, NonNullPassRefPtr<FunctionExecutable>, ScopeChainNode*); 50 52 virtual ~JSFunction();
Note:
See TracChangeset
for help on using the changeset viewer.