Changeset 1977 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Sep 5, 2002, 6:22:58 PM (23 years ago)
Author:
mjs
Message:

First baby step towards moving List away from garbage collection.

  • kjs/types.h: Add needsMarking boolean and make List inherit from Value privately instead of publicly.
File:
1 edited

Legend:

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

    r1859 r1977  
    105105   * copy of the list the referenced objects are still shared.
    106106   */
    107   class List : public Value {
     107  class List : private Value {
    108108    friend class ListIterator;
    109109  public:
    110110    List();
    111     List(ListImp *v);
     111    List(ListImp *);
    112112
    113113    /**
     
    192192     */
    193193    Value operator[](int i) const;
     194
     195    ListImp *imp() const { return (ListImp *)Value::imp(); }
     196
    194197    /**
    195198     * Returns a pointer to a static instance of an empty list. Useful if a
Note: See TracChangeset for help on using the changeset viewer.