From eab7196d335bca53d6838b18369d23b19ba9a090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 8 Sep 2017 16:41:11 +0200 Subject: [PATCH] Bug 1395927 - Part 5: Inline RegExpInstanceOptimizable when called with MIRType::Value. r=jandem --HG-- extra : rebase_source : b0478233159ef5610cf8bb47ecb23f28e5049041 extra : histedit_source : 9496db6a8b328f232ad5b2568f9a84d6b5a86b40 --- js/src/jit/MCallOptimize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jit/MCallOptimize.cpp b/js/src/jit/MCallOptimize.cpp index 266a2254c972..ba478d6fb61f 100644 --- a/js/src/jit/MCallOptimize.cpp +++ b/js/src/jit/MCallOptimize.cpp @@ -2262,7 +2262,7 @@ IonBuilder::inlineRegExpInstanceOptimizable(CallInfo& callInfo) MDefinition* rxArg = callInfo.getArg(0); MDefinition* protoArg = callInfo.getArg(1); - if (rxArg->type() != MIRType::Object) + if (rxArg->type() != MIRType::Object && rxArg->type() != MIRType::Value) return InliningStatus_NotInlined; if (protoArg->type() != MIRType::Object)