Bug 480132. SpiderMonkey clones too many blocks into the heap. r=igor

This commit is contained in:
Jim Blandy
2009-03-14 02:09:28 -04:00
parent afe927ad8a
commit 1e32480aad
6 changed files with 196 additions and 92 deletions

View File

@@ -786,6 +786,8 @@ js_NewGenerator(JSContext *cx, JSStackFrame *fp)
gen->frame.flags = (fp->flags & ~JSFRAME_ROOTED_ARGV) | JSFRAME_GENERATOR;
gen->frame.dormantNext = NULL;
gen->frame.xmlNamespace = NULL;
/* JSOP_GENERATOR appears in the prologue, outside all blocks. */
JS_ASSERT(!fp->blockChain);
gen->frame.blockChain = NULL;
/* Note that gen is newborn. */