[INFER] Don't expand frames in contexts without a compartment, fix warnings, add type barrier comment.

This commit is contained in:
Brian Hackett
2011-06-07 09:14:52 -07:00
parent 2d9ff9b8d2
commit 9bdc5ec338
9 changed files with 69 additions and 15 deletions

View File

@@ -1247,13 +1247,6 @@ SendToGenerator(JSContext *cx, JSGeneratorOp op, JSObject *obj,
case JSGENOP_NEXT:
case JSGENOP_SEND:
if (gen->state == JSGEN_OPEN) {
JSScript *script = gen->floatingFrame()->script();
jsbytecode *yieldpc = gen->regs.pc - JSOP_YIELD_LENGTH;
JS_ASSERT(JSOp(*yieldpc) == JSOP_YIELD || JSOp(*yieldpc) == JSOP_TRAP);
script->types.monitorUnknown(cx, yieldpc);
/*
* Store the argument to send as the result of the yield
* expression.