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


Ignore:
Timestamp:
Nov 20, 2002, 5:28:08 PM (23 years ago)
Author:
darin
Message:
  • added a feature for Richard to use in his back/forward cache
  • kjs/object.h: Added save/restoreProperties.
  • kjs/property_map.h: Here too.
  • kjs/property_map.cpp: Here too.
File:
1 edited

Legend:

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

    r2783 r2794  
    8181    void *dummy;
    8282  };
    83 
     83 
    8484  /**
    8585   * Represents an Object. This is a wrapper for ObjectImp
     
    358358     */
    359359    void setInternalValue(const Value &v);
     360
     361    void saveProperties(SavedProperties &p) const;
     362    void restoreProperties(const SavedProperties &p);
    360363  };
    361364
     
    590593    void putDirect(const Identifier &propertyName, ValueImp *value, int attr = 0);
    591594    void putDirect(const Identifier &propertyName, int value, int attr = 0);
     595   
     596    void saveProperties(SavedProperties &p) const { _prop.save(p); }
     597    void restoreProperties(const SavedProperties &p) { _prop.restore(p); }
    592598
    593599  private:
     
    714720    { imp()->setInternalValue(v); }
    715721
     722  inline void Object::saveProperties(SavedProperties &p) const
     723    { imp()->saveProperties(p); }
     724  inline void Object::restoreProperties(const SavedProperties &p)
     725    { imp()->restoreProperties(p); }
     726
    716727}; // namespace
    717728
Note: See TracChangeset for help on using the changeset viewer.