mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1200809 part 8 - Don't call shouldAbortOnPreliminaryGroups if we have an uninlinable native. r=bhackett
This commit is contained in:
parent
34f74c8efb
commit
0491a186c1
@ -45,6 +45,13 @@ IonBuilder::inlineNativeCall(CallInfo& callInfo, JSFunction* target)
|
||||
return InliningStatus_NotInlined;
|
||||
}
|
||||
|
||||
if (!target->jitInfo() || target->jitInfo()->type() != JSJitInfo::InlinableNative) {
|
||||
// Reaching here means we tried to inline a native for which there is no
|
||||
// Ion specialization.
|
||||
trackOptimizationOutcome(TrackedOutcome::CantInlineNativeNoSpecialization);
|
||||
return InliningStatus_NotInlined;
|
||||
}
|
||||
|
||||
// Default failure reason is observing an unsupported type.
|
||||
trackOptimizationOutcome(TrackedOutcome::CantInlineNativeBadType);
|
||||
|
||||
@ -55,13 +62,6 @@ IonBuilder::inlineNativeCall(CallInfo& callInfo, JSFunction* target)
|
||||
return InliningStatus_NotInlined;
|
||||
}
|
||||
|
||||
if (!target->jitInfo() || target->jitInfo()->type() != JSJitInfo::InlinableNative) {
|
||||
// Reaching here means we tried to inline a native for which there is no
|
||||
// Ion specialization.
|
||||
trackOptimizationOutcome(TrackedOutcome::CantInlineNativeNoSpecialization);
|
||||
return InliningStatus_NotInlined;
|
||||
}
|
||||
|
||||
switch (InlinableNative inlNative = target->jitInfo()->inlinableNative) {
|
||||
// Array natives.
|
||||
case InlinableNative::Array:
|
||||
|
Loading…
Reference in New Issue
Block a user