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/interpreter.cpp

    r26688 r26808  
    364364        ExecState newExec(this, &ctx);
    365365        ctx.setExecState(&newExec);
    366         progNode->processDeclarations(&newExec);
    367366        res = progNode->execute(&newExec);
    368367    }
Note: See TracChangeset for help on using the changeset viewer.