Ignore:
Timestamp:
Nov 20, 2002, 1:11:43 AM (23 years ago)
Author:
darin
Message:
  • on the road to killing ActivationImp
  • kjs/function.h: Add get/put to FunctionImp. Remove argumentsObject() from ActivationImp. Add function() to ActivationImp.
  • kjs/function.cpp: (FunctionImp::FunctionImp): No arguments property. (FunctionImp::call): No need to set up the arguments property. (FunctionImp::parameterString): Remove strangeness. (FunctionImp::processParameters): Ditto. (FunctionImp::get): Added, handles arguments and length properties. (FunctionImp::put): Ditto. (FunctionImp::hasProperty): Ditto. (FunctionImp::deleteProperty): Ditto. (ActivationImp::ActivationImp): Store a function pointer so we can find it in the context.
  • kjs/function_object.cpp: (FunctionObjectImp::construct): No need to set up arguments property.
  • kjs/nodes.cpp: (FuncExprNode::evaluate): No need to set up length property.
  • kjs/internal.h: Return ObjectImp * for activation object.
  • kjs/interpreter.h: Remove stray declaration of ExecStateImp.
File:
1 edited

Legend:

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

    r2772 r2778  
    284284                Object(fimp), DontEnum|DontDelete|ReadOnly);
    285285  fimp->put(exec,prototypePropertyName,prototype,DontEnum|DontDelete|ReadOnly);
    286   fimp->put(exec,argumentsPropertyName,Null(),DontEnum|DontDelete|ReadOnly);
    287286  return ret;
    288287}
Note: See TracChangeset for help on using the changeset viewer.