Changeset 43661 in webkit for trunk/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- May 13, 2009, 2:53:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSFunction.cpp
r43642 r43661 46 46 const ClassInfo JSFunction::info = { "Function", &InternalFunction::info, 0, 0 }; 47 47 48 JSFunction::JSFunction(PassRefPtr<Structure> structure)49 : InternalFunction(structure)50 {51 clearScopeChain();52 }53 54 48 JSFunction::JSFunction(ExecState* exec, PassRefPtr<Structure> structure, int length, const Identifier& name, NativeFunction func) 55 49 : Base(&exec->globalData(), structure, name) 56 50 #if ENABLE(JIT) 57 51 , m_body(exec->globalData().nativeFunctionThunk()) 52 #else 53 , m_body(0) 58 54 #endif 59 55 { … … 75 71 } 76 72 77 inline bool JSFunction::isHostFunction() const78 {79 #if ENABLE(JIT)80 return m_body && m_body->isHostFunction();81 #else82 return false;83 #endif84 }85 86 73 JSFunction::~JSFunction() 87 74 { … … 95 82 scopeChain().~ScopeChain(); 96 83 } 84 97 85 #endif 98 86 } … … 228 216 } 229 217 230 void JSFunction::setBody(PassRefPtr<FunctionBodyNode> body)231 {232 m_body = body;233 }234 235 218 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.