Bug 1383436 - Part 9: Use MToIntegerInt32 when inlining ToIntegerPositiveZero. r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D37292

--HG--
extra : moz-landing-system : lando
This commit is contained in:
André Bargull 2019-10-22 09:37:21 +00:00
parent a4821747b3
commit 0540825b30

View File

@ -3689,11 +3689,7 @@ IonBuilder::InliningResult IonBuilder::inlineToIntegerPositiveZero(
}
if (returnType == MIRType::Int32) {
if (input->mightBeType(MIRType::Undefined)) {
return InliningStatus_NotInlined;
}
auto* toInt32 = MToNumberInt32::New(alloc(), input);
auto* toInt32 = MToIntegerInt32::New(alloc(), input);
current->add(toInt32);
current->push(toInt32);
} else {