mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1114981 - IonMonkey: Don't increase the return typeset during inlining, r=jandem
This commit is contained in:
parent
44e3c949b4
commit
86e9fdf741
@ -4446,7 +4446,18 @@ IonBuilder::inlineScriptedCall(CallInfo &callInfo, JSFunction *target)
|
||||
if (!returnBlock->initEntrySlots(alloc()))
|
||||
return false;
|
||||
|
||||
return setCurrentAndSpecializePhis(returnBlock);
|
||||
if (!setCurrentAndSpecializePhis(returnBlock))
|
||||
return false;
|
||||
|
||||
// Improve return types with observed typeset, except for Setters.
|
||||
// Setters return their argument, not whatever value is returned.
|
||||
if (!callInfo.isSetter()) {
|
||||
types::TemporaryTypeSet *types = bytecodeTypes(pc);
|
||||
if (!pushTypeBarrier(retvalDefn, types, BarrierKind::TypeSet))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
MDefinition *
|
||||
|
Loading…
Reference in New Issue
Block a user