mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Bug 849014 - Check type inference before optimizing regexp calls. r=sstangl
This commit is contained in:
parent
6395a0230f
commit
379782da5b
@ -887,6 +887,9 @@ IonBuilder::inlineRegExpTest(CallInfo &callInfo)
|
||||
|
||||
if (getInlineThisType(callInfo) != MIRType_Object)
|
||||
return InliningStatus_NotInlined;
|
||||
Class *clasp = getInlineThisTypeSet(callInfo)->getKnownClass();
|
||||
if (clasp != &RegExpClass)
|
||||
return InliningStatus_NotInlined;
|
||||
if (getInlineArgType(callInfo, 0) != MIRType_String)
|
||||
return InliningStatus_NotInlined;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user