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


Ignore:
Timestamp:
Apr 25, 2003, 11:05:37 PM (22 years ago)
Author:
darin
Message:
  • fixed 3241344 -- REGRESSION: top of page missing on wired.com and cnn.com

Caused by the ResolveNode speedup. Roll it out until I can figure out why.

  • kjs/nodes.cpp: (ResolveNode::evaluate): Go back to using evaluateReference.
File:
1 edited

Legend:

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

    r4191 r4198  
    222222Value ResolveNode::evaluate(ExecState *exec)
    223223{
    224   // This is the same as calling evaluateReference(exec).getValue(exec),
    225   // only considerably faster.
    226  
    227   ScopeChain chain = exec->context().imp()->scopeChain();
    228 
    229   while (!chain.isEmpty()) {
    230     ObjectImp *o = chain.top();
    231     Value result = o->get(exec, ident);
    232     if (result.type() != UndefinedType)
    233       return result;
    234     chain.pop();
    235   }
    236 
    237   return Reference(Null(), ident).getValue(exec);
     224  return evaluateReference(exec).getValue(exec);
    238225}
    239226
Note: See TracChangeset for help on using the changeset viewer.