DescriptionI'm making Functions auto-remove themselves from the JIT when they're destroyed. In this case, the Function needs to be removed from the JITEmitter, but the map recording which Functions need to be removed lived behind the JITMemoryManager interface, which made things difficult.
This patch replaces the deallocateMemForFunction(Function*) method with a pair of methods deallocateFunctionBody(void *) and deallocateExceptionTable(void *) corresponding to the two startFoo/endFoo pairs.
Patch at http://codereview.appspot.com/download/issue135055_1.diff. This slightly depends on http://codereview.appspot.com/132055 for ValueMap<>, but I can remove that if this gets approved first.
Patch Set 1 #
MessagesTotal messages: 1
|