Ignore:
Timestamp:
Jan 1, 2008, 11:47:21 AM (17 years ago)
Author:
Darin Adler
Message:
  • rolled scope chain optimization out; it was breaking the world
File:
1 edited

Legend:

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

    r29065 r29068  
    2828namespace KJS {
    2929
     30void ScopeChain::push(const ScopeChain &c)
     31{
     32    ScopeChainNode **tail = &_node;
     33    for (ScopeChainNode *n = c._node; n; n = n->next) {
     34        ScopeChainNode *newNode = new ScopeChainNode(*tail, n->object);
     35        *tail = newNode;
     36        tail = &newNode->next;
     37    }
     38}
     39
    3040#ifndef NDEBUG
    3141
Note: See TracChangeset for help on using the changeset viewer.