mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
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:
parent
a4821747b3
commit
0540825b30
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user