Ignore:
Timestamp:
May 13, 2009, 2:53:59 PM (16 years ago)
Author:
Darin Adler
Message:

JavaScriptCore:

2009-05-13 Darin Adler <Darin Adler>

Revert the parser arena change. It was a slowdown, not a speedup.
Better luck next time (I'll break it up into pieces).

WebCore:

2009-05-13 Darin Adler <Darin Adler>

Revert the parser arena change. It was a slowdown, not a speedup.
Better luck next time (I'll break it up into pieces).

WebKit/mac:

2009-05-13 Darin Adler <Darin Adler>

Revert the parser arena change. It was a slowdown, not a speedup.
Better luck next time (I'll break it up into pieces).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSFunction.cpp

    r43642 r43661  
    4646const ClassInfo JSFunction::info = { "Function", &InternalFunction::info, 0, 0 };
    4747
    48 JSFunction::JSFunction(PassRefPtr<Structure> structure)
    49     : InternalFunction(structure)
    50 {
    51     clearScopeChain();
    52 }
    53 
    5448JSFunction::JSFunction(ExecState* exec, PassRefPtr<Structure> structure, int length, const Identifier& name, NativeFunction func)
    5549    : Base(&exec->globalData(), structure, name)
    5650#if ENABLE(JIT)
    5751    , m_body(exec->globalData().nativeFunctionThunk())
     52#else
     53    , m_body(0)
    5854#endif
    5955{
     
    7571}
    7672
    77 inline bool JSFunction::isHostFunction() const
    78 {
    79 #if ENABLE(JIT)
    80     return m_body && m_body->isHostFunction();
    81 #else
    82     return false;
    83 #endif
    84 }
    85 
    8673JSFunction::~JSFunction()
    8774{
     
    9582        scopeChain().~ScopeChain();
    9683    }
     84   
    9785#endif
    9886}
     
    228216}
    229217
    230 void JSFunction::setBody(PassRefPtr<FunctionBodyNode> body)
    231 {
    232     m_body = body;
    233 }
    234 
    235218} // namespace JSC
Note: See TracChangeset for help on using the changeset viewer.