Ignore:
Timestamp:
Jun 9, 2006, 8:57:13 PM (19 years ago)
Author:
ggaren
Message:

Reviewed by Eric (yay!).


  • Removed Context wrapper for ContextImp, renamed ContextImp to Context, split Context into its own file -- Context.cpp -- renamed _var to m_var, change ' *' to '* '.
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • kjs/Context.cpp: Added. (KJS::Context::Context): (KJS::Context::~Context): (KJS::Context::mark):
  • kjs/context.h: (KJS::Context::scopeChain): (KJS::Context::variableObject): (KJS::Context::setVariableObject): (KJS::Context::thisValue): (KJS::Context::callingContext): (KJS::Context::activationObject): (KJS::Context::currentBody): (KJS::Context::function): (KJS::Context::arguments): (KJS::Context::pushScope): (KJS::Context::seenLabels):
  • kjs/function.cpp: (KJS::FunctionImp::callAsFunction): (KJS::FunctionImp::processParameters): (KJS::FunctionImp::argumentsGetter): (KJS::GlobalFuncImp::callAsFunction):
  • kjs/internal.cpp: (KJS::InterpreterImp::evaluate):
  • kjs/internal.h: (KJS::InterpreterImp::setContext): (KJS::InterpreterImp::context):
  • kjs/interpreter.cpp:
  • kjs/interpreter.h: (KJS::ExecState::context): (KJS::ExecState::ExecState):
  • kjs/nodes.cpp: (currentSourceId): (currentSourceURL): (ThisNode::evaluate): (ResolveNode::evaluate): (FunctionCallResolveNode::evaluate): (PostfixResolveNode::evaluate): (DeleteResolveNode::evaluate): (TypeOfResolveNode::evaluate): (PrefixResolveNode::evaluate): (AssignResolveNode::evaluate): (VarDeclNode::evaluate): (VarDeclNode::processVarDecls): (DoWhileNode::execute): (WhileNode::execute): (ForNode::execute): (ForInNode::execute): (ContinueNode::execute): (BreakNode::execute): (ReturnNode::execute): (WithNode::execute): (SwitchNode::execute): (LabelNode::execute): (TryNode::execute): (FuncDeclNode::processFuncDecl): (FuncExprNode::evaluate):
File:
1 edited

Legend:

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

    r14734 r14799  
    7272
    7373  // enter a new execution context
    74   ContextImp ctx(globalObj, exec->dynamicInterpreter()->imp(), thisObj, body.get(),
    75                  codeType(), exec->context().imp(), this, &args);
     74  Context ctx(globalObj, exec->dynamicInterpreter()->imp(), thisObj, body.get(),
     75                 codeType(), exec->context(), this, &args);
    7676  ExecState newExec(exec->dynamicInterpreter(), &ctx);
    7777  newExec.setException(exec->exception()); // could be null
     
    164164void FunctionImp::processParameters(ExecState *exec, const List &args)
    165165{
    166   JSObject *variable = exec->context().imp()->variableObject();
     166  JSObject* variable = exec->context()->variableObject();
    167167
    168168#ifdef KJS_VERBOSE
     
    204204{
    205205  FunctionImp *thisObj = static_cast<FunctionImp *>(slot.slotBase());
    206   ContextImp *context = exec->m_context;
     206  Context *context = exec->m_context;
    207207  while (context) {
    208208    if (context->function() == thisObj) {
     
    800800
    801801        // enter a new execution context
    802         JSObject *thisVal = static_cast<JSObject *>(exec->context().thisValue());
    803         ContextImp ctx(exec->dynamicInterpreter()->globalObject(),
     802        JSObject *thisVal = static_cast<JSObject *>(exec->context()->thisValue());
     803        Context ctx(exec->dynamicInterpreter()->globalObject(),
    804804                       exec->dynamicInterpreter()->imp(),
    805805                       thisVal,
    806806                       progNode.get(),
    807807                       EvalCode,
    808                        exec->context().imp());
     808                       exec->context());
    809809       
    810810        ExecState newExec(exec->dynamicInterpreter(), &ctx);
Note: See TracChangeset for help on using the changeset viewer.