Bug 510015: TM: more Allocator merge fallout in jsregexp.cpp, r=gal.

--HG--
extra : rebase_source : 7607da6f49cc355af49b73528c826d5888291eb9
This commit is contained in:
Graydon Hoare 2009-08-12 12:26:17 -07:00
parent 9c489db37c
commit 7bddd2c62f

View File

@ -3164,6 +3164,11 @@ class RegExpNativeCompiler {
if (alloc->outOfMemory() || oom ||
js_OverfullFragmento(tm, fragmento)) {
fragmento->clearFrags();
#ifdef DEBUG
fragmento->labels->clear();
delete lirbuf->names;
lirbuf->names = new (&gc) LirNameMap(&gc, *alloc, fragmento->labels);
#endif
tm->reCodeAlloc->sweep();
alloc->reset();
lirbuf->clear();