mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 497009 - Deallocate LIR after recording, r=gal.
--HG-- extra : rebase_source : 5fc9d76620f83d3bbf6ba7a4656c296654bb6323
This commit is contained in:
parent
df2ec67c4d
commit
b5097e03aa
@ -3109,6 +3109,7 @@ class RegExpNativeCompiler {
|
||||
~RegExpNativeCompiler() {
|
||||
/* Purge the tempAlloc used during recording. */
|
||||
tempAlloc.reset();
|
||||
JS_TRACE_MONITOR(cx).reLirBuf->clear();
|
||||
}
|
||||
|
||||
JSBool compile()
|
||||
|
@ -2290,6 +2290,7 @@ TraceRecorder::~TraceRecorder()
|
||||
|
||||
/* Purge the tempAlloc used during recording. */
|
||||
tempAlloc.reset();
|
||||
traceMonitor->lirbuf->clear();
|
||||
|
||||
#ifdef DEBUG
|
||||
debug_only_stmt( delete verbose_filter; )
|
||||
@ -2598,8 +2599,8 @@ JSTraceMonitor::flush()
|
||||
}
|
||||
|
||||
assembler = new (alloc) Assembler(*codeAlloc, alloc, core, &js_LogController);
|
||||
lirbuf = new (alloc) LirBuffer(alloc);
|
||||
reLirBuf = new (alloc) LirBuffer(alloc);
|
||||
lirbuf = new (alloc) LirBuffer(*tempAlloc);
|
||||
reLirBuf = new (alloc) LirBuffer(*reTempAlloc);
|
||||
verbose_only( branches = NULL; )
|
||||
|
||||
#ifdef DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user