Commit ee4f1b19 authored by mjs's avatar mjs
Browse files

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.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5a82287b
2002-09-05 Maciej Stachowiak <mjs@apple.com>
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.
2002-08-30 Darin Adler <darin@apple.com>
* JavaScriptCore.pbproj/project.pbxproj: Allowed the new Project Builder to put in
......
2002-09-05 Maciej Stachowiak <mjs@apple.com>
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.
2002-08-30 Darin Adler <darin@apple.com>
* JavaScriptCore.pbproj/project.pbxproj: Allowed the new Project Builder to put in
......
2002-09-05 Maciej Stachowiak <mjs@apple.com>
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.
2002-08-30 Darin Adler <darin@apple.com>
* JavaScriptCore.pbproj/project.pbxproj: Allowed the new Project Builder to put in
......
......@@ -104,11 +104,11 @@ namespace KJS {
* The list is explicitly shared. Note that while copy() returns a deep
* copy of the list the referenced objects are still shared.
*/
class List : public Value {
class List : private Value {
friend class ListIterator;
public:
List();
List(ListImp *v);
List(ListImp *);
/**
* Converts a Value into an List. If the value's type is not
......@@ -191,6 +191,9 @@ namespace KJS {
* Equivalent to @ref at.
*/
Value operator[](int i) const;
ListImp *imp() const { return (ListImp *)Value::imp(); }
/**
* Returns a pointer to a static instance of an empty list. Useful if a
* function has a @ref KJS::List parameter.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment