Closed Bug 1207210 Opened 9 years ago Closed 9 years ago

MTypeBarrier::alwaysBails returns true for ObjectOrNull -> Null barrier

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
This is causing a ton of bailouts on Octane-richards.
Attachment #8664282 - Flags: review?(hv1989)
Comment on attachment 8664282 [details] [diff] [review]
Patch

Review of attachment 8664282 [details] [diff] [review]:
-----------------------------------------------------------------

Nice find!

::: js/src/jit/MIR.h
@@ +12427,5 @@
>              return false;
>          if (input()->type() == MIRType_Value)
>              return false;
> +        if (input()->type() == MIRType_ObjectOrNull) {
> +            MOZ_ASSERT(type == MIRType_Null);

Can you mention here that the ObjectNull optimization currently is only applied when 
the type is MIRType_Null ? To justify why we assert MIRType_Null here.
Attachment #8664282 - Flags: review?(hv1989) → review+
Blocks: 1131403
https://hg.mozilla.org/mozilla-central/rev/9383690a4acd
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: