Bug 928140 - Add postbarrier when inlining UnsafeSetReservedSlot; r=shu

--HG--
extra : rebase_source : 35727cbe0f47983c29a186a0e319bfc4a61c48ba
This commit is contained in:
Terrence Cole 2013-10-17 18:07:39 -07:00
parent bea2774de7
commit 11af5b2d8c
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,3 @@
if (!getBuildConfiguration()['generational-gc']) {
let a = [];
a.length = 30;
@ -17,4 +16,3 @@ let h = function() new h(...a) + 1;
check(f);
check(g);
check(h);
}

View File

@ -1399,6 +1399,9 @@ IonBuilder::inlineUnsafeSetReservedSlot(CallInfo &callInfo)
current->add(store);
current->push(store);
if (NeedsPostBarrier(info(), callInfo.getArg(2)))
current->add(MPostWriteBarrier::New(callInfo.thisArg(), callInfo.getArg(2)));
return InliningStatus_Inlined;
}