Add collector helper to interpreter in order to facilitate visibility rules in
KDE.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12031
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-01-12 George Staikos <staikos@kde.org>
+
+ Reviewed by Darin.
+
+ * kjs/interpreter.cpp:
+ * kjs/testkjs.cpp:
+ * kjs/interpreter.h:
+ Add helper to interpreter to call the collector in order to facilitate
+ visibility rules in KDE.
+
2006-01-12 George Staikos <staikos@kde.org>
Reviewed by Maciej.
return rep->compatMode();
}
+bool Interpreter::collect()
+{
+ return Collector::collect();
+}
+
#ifdef KJS_DEBUG_MEM
#include "lexer.h"
void Interpreter::finalCheck()
void setCompatMode(CompatMode mode);
CompatMode compatMode() const;
+ /**
+ * Run the garbage collection. Returns true when at least one object
+ * was collected; false otherwise.
+ */
+ static bool collect();
+
/**
* Called by InterpreterImp during the mark phase of the garbage collector
* Default implementation does nothing, this exist for classes that reimplement Interpreter.
#include "object.h"
#include "types.h"
#include "interpreter.h"
-#include "collector.h"
#include "JSLock.h"
using namespace KJS;
case GC:
{
JSLock lock;
- Collector::collect();
+ Interpreter::collect();
}
break;
default: