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
Родитель ecc6ad9ee7
Коммит cf3e9a04dd
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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();