summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-09-04 13:12:40 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-09-04 13:12:40 (GMT)
commite15ab744f15127422ef62a0b70e6cf129f52f48f (patch)
tree72352e1e297f0322610234c2eeb994820407616e /src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp
parent04802c1fe74439111c7bbe92fcb777dcbd618500 (diff)
parentb3b9813f1083fc556aea1f952329551da97aee90 (diff)
downloadQt-e15ab744f15127422ef62a0b70e6cf129f52f48f.zip
Qt-e15ab744f15127422ef62a0b70e6cf129f52f48f.tar.gz
Qt-e15ab744f15127422ef62a0b70e6cf129f52f48f.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp b/src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp
index 2617506..78c5196 100644
--- a/src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp
+++ b/src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp
@@ -24,6 +24,7 @@
*/
#include "config.h"
+#include "Parser.h"
#include "ParserArena.h"
#include "Nodes.h"
@@ -57,4 +58,21 @@ void ParserArena::reset()
m_refCountedObjects.shrink(0);
}
+void* ParserArenaDeletable::operator new(size_t size, JSGlobalData* globalData)
+{
+ ParserArenaDeletable* deletable = static_cast<ParserArenaDeletable*>(fastMalloc(size));
+ globalData->parser->arena().deleteWithArena(deletable);
+ return deletable;
+}
+
+void* ParserArenaDeletable::operator new(size_t size)
+{
+ return fastMalloc(size);
+}
+
+void ParserArenaDeletable::operator delete(void* p)
+{
+ fastFree(p);
+}
+
}