KJS::Collector Class Reference
Garbage collector. More...
#include <collector.h>
Static Public Member Functions | |
void * | allocate (size_t s) |
bool | collect () |
int | size () |
bool | outOfMemory () |
Detailed Description
Garbage collector.
Definition at line 38 of file collector.h.
Member Function Documentation
|
Register an object with the collector. The following assumptions are made:
Definition at line 82 of file collector.cpp. References KJS::ValueImp::_vd, and collect(). |
|
Run the garbage collection. This involves calling the delete operator on each object and freeing the used memory. Definition at line 157 of file collector.cpp. References KJS::ValueImp::_flags, KJS::ValueImp::_vd, KJS::ValueImp::mark(), KJS::ValueImp::refcount, and KJS::ValueImp::~ValueImp(). Referenced by allocate(), and KJS::Interpreter::collect(). |
The documentation for this class was generated from the following files: