diff options
author | David Boddie <dboddie@trolltech.com> | 2009-09-04 13:12:40 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-09-04 13:12:40 (GMT) |
commit | e15ab744f15127422ef62a0b70e6cf129f52f48f (patch) | |
tree | 72352e1e297f0322610234c2eeb994820407616e /src/3rdparty/webkit/JavaScriptCore/parser/ParserArena.cpp | |
parent | 04802c1fe74439111c7bbe92fcb777dcbd618500 (diff) | |
parent | b3b9813f1083fc556aea1f952329551da97aee90 (diff) | |
download | Qt-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.cpp | 18 |
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); +} + } |