Bug 1395927 - Part 5: Inline RegExpInstanceOptimizable when called with MIRType::Value. r=jandem
authorAndré Bargull <andre.bargull@gmail.com>
Fri, 08 Sep 2017 16:41:11 +0200
changeset 429420 0998107850f7973d1667e1c924a196decdbd7435
parent 429419 a3a57ed979fa3800c23824a198a804be305d7b7e
child 429421 c5cb3aad36f8614f0a9f445007accb3725b66b66
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1395927
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1395927 - Part 5: Inline RegExpInstanceOptimizable when called with MIRType::Value. r=jandem
js/src/jit/MCallOptimize.cpp
--- a/js/src/jit/MCallOptimize.cpp
+++ b/js/src/jit/MCallOptimize.cpp
@@ -2257,17 +2257,17 @@ IonBuilder::InliningResult
 IonBuilder::inlineRegExpInstanceOptimizable(CallInfo& callInfo)
 {
     MOZ_ASSERT(!callInfo.constructing());
     MOZ_ASSERT(callInfo.argc() == 2);
 
     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)
         return InliningStatus_NotInlined;
 
     if (getInlineReturnType() != MIRType::Boolean)
         return InliningStatus_NotInlined;