Bug 1395927 - Part 5: Inline RegExpInstanceOptimizable when called with MIRType::Value. r=jandem

--HG--
extra : rebase_source : b0478233159ef5610cf8bb47ecb23f28e5049041
extra : histedit_source : 9496db6a8b328f232ad5b2568f9a84d6b5a86b40
This commit is contained in:
André Bargull 2017-09-08 16:41:11 +02:00
parent aec411f2fd
commit eab7196d33

View File

@ -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)