Bug 480132. SpiderMonkey clones too many blocks into the heap. r=igor
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user