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


Ignore:
Timestamp:
Oct 17, 2007, 2:01:27 PM (18 years ago)
Author:
ggaren
Message:

Reviewed by Darin Adler.


Merged DeclaredFunctionImp into FunctionImp (the base class) because
the distinction between the two was unused.


Removed codeType() from FunctionImp because FunctionImp and its
subclasses all returned FunctionCode, so it was unused, practically
speaking.


Removed a different codeType() from GlobalFuncImp because it was unused.
(Perhaps it was vestigial from a time when GlobalFuncImp used to
inherit from FunctionImp.)

  • bindings/runtime_method.cpp:
  • bindings/runtime_method.h:
  • kjs/function.cpp: (KJS::): (KJS::FunctionImp::FunctionImp): (KJS::FunctionImp::callAsFunction): (KJS::FunctionImp::construct): (KJS::FunctionImp::execute): (KJS::FunctionImp::processVarDecls):
  • kjs/function.h: (KJS::FunctionImp::implementsConstruct): (KJS::FunctionImp::scope):
  • kjs/function_object.cpp: (FunctionProtoFunc::callAsFunction): (FunctionObjectImp::construct):
  • kjs/nodes.cpp: (FuncDeclNode::processFuncDecl): (FuncExprNode::evaluate):
File:
1 edited

Legend:

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

    r26689 r26715  
    24972497
    24982498  // TODO: let this be an object with [[Class]] property "Function"
    2499   FunctionImp *func = new DeclaredFunctionImp(exec, ident, body.get(), context->scopeChain());
     2499  FunctionImp *func = new FunctionImp(exec, ident, body.get(), context->scopeChain());
    25002500
    25012501  JSObject *proto = exec->lexicalInterpreter()->builtinObject()->construct(exec, List::empty());
     
    25372537  }
    25382538
    2539   FunctionImp* func = new DeclaredFunctionImp(exec, ident, body.get(), context->scopeChain());
     2539  FunctionImp* func = new FunctionImp(exec, ident, body.get(), context->scopeChain());
    25402540  JSObject* proto = exec->lexicalInterpreter()->builtinObject()->construct(exec, List::empty());
    25412541  proto->put(exec, exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum);
Note: See TracChangeset for help on using the changeset viewer.