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