Changeset 11296 in webkit for trunk/JavaScriptCore/kjs/object.h


Ignore:
Timestamp:
Nov 26, 2005, 5:28:30 PM (20 years ago)
Author:
eseidel
Message:

Bug #: 5687
Submitted by: darin
Reviewed by: eseidel

Inline ScopeChain functions for speed.
http://bugzilla.opendarwin.org/show_bug.cgi?id=5687

  • kjs/object.h: (KJS::ScopeChain::mark):
  • kjs/scope_chain.cpp:
  • kjs/scope_chain.h: (KJS::ScopeChain::ref): (KJS::ScopeChain::operator=): (KJS::ScopeChain::bottom): (KJS::ScopeChain::push): (KJS::ScopeChain::pop):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.h

    r10857 r11296  
    607607}
    608608
     609// FIXME: Put this function in a separate file named something like scope_chain_mark.h -- can't put it in scope_chain.h since it depends on ObjectImp.
     610
     611inline void ScopeChain::mark()
     612{
     613    for (ScopeChainNode *n = _node; n; n = n->next) {
     614        ObjectImp *o = n->object;
     615        if (!o->marked())
     616            o->mark();
     617    }
     618}
     619
    609620} // namespace
    610621
Note: See TracChangeset for help on using the changeset viewer.