Changeset 26808 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp


Ignore:
Timestamp:
Oct 19, 2007, 10:18:23 PM (18 years ago)
Author:
ggaren
Message:

Reviewed by Darin Adler.


To improve encapsulation, moved processDeclarations call into
FunctionBodyNode::execute. Also marked processDeclarations
ALWAYS_INLINE, since it has only 1 caller now. This is a .71% speedup
on command-line JS iBench.

  • kjs/function.cpp: (KJS::FunctionImp::callAsFunction): (KJS::GlobalFuncImp::callAsFunction):
  • kjs/function.h:
  • kjs/interpreter.cpp: (KJS::Interpreter::evaluate):
  • kjs/nodes.cpp: (FunctionBodyNode::execute):
  • kjs/nodes.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.cpp

    r26715 r26808  
    24782478}
    24792479
     2480Completion FunctionBodyNode::execute(ExecState* exec)
     2481{
     2482    processDeclarations(exec);
     2483    return BlockNode::execute(exec);
     2484}
    24802485
    24812486// ------------------------------ FuncDeclNode ---------------------------------
Note: See TracChangeset for help on using the changeset viewer.