From 0540825b30e079c75487acccf8152f485b6134fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Tue, 22 Oct 2019 09:37:21 +0000 Subject: [PATCH] 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 --- js/src/jit/MCallOptimize.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/src/jit/MCallOptimize.cpp b/js/src/jit/MCallOptimize.cpp index d228a919b3b3..e31a1b575cf1 100644 --- a/js/src/jit/MCallOptimize.cpp +++ b/js/src/jit/MCallOptimize.cpp @@ -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 {