mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 928140 - Add postbarrier when inlining UnsafeSetReservedSlot; r=shu
--HG-- extra : rebase_source : 35727cbe0f47983c29a186a0e319bfc4a61c48ba
This commit is contained in:
parent
bea2774de7
commit
11af5b2d8c
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user