Bug 989414 - Implement BarrieredValue in terms of BarrieredPtr using GCMethods; r=jonco

This commit is contained in:
Terrence Cole
2014-04-25 14:18:18 -07:00
parent 0bcc19fe6c
commit 996100701b
6 changed files with 108 additions and 333 deletions

View File

@@ -1757,7 +1757,7 @@ SendToGenerator(JSContext *cx, JSGeneratorOp op, HandleObject obj,
*/
HeapValue::writeBarrierPre(gen->regs.sp[-1]);
gen->regs.sp[-1] = arg;
HeapValue::writeBarrierPost(cx->runtime(), gen->regs.sp[-1], &gen->regs.sp[-1]);
HeapValue::writeBarrierPost(gen->regs.sp[-1], &gen->regs.sp[-1]);
}
futureState = JSGEN_RUNNING;
break;