IonMonkey: Generalize different CanEmitXXXAtUses functions and replace them with a single function

NEW

Status

()

P5
normal
4 years ago
2 years ago

People

(Reporter: mukilanthiagarajan, Assigned: mukilanthiagarajan)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

4 years ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
Build ID: 20140830210659

Steps to reproduce:

In bug #1023154, a new LIsObjectBranch instruction was introduced that replaces an LIsObject, when the MIsObject's only consumer is the MTest. The instruction is similar to the already existing LBitAndBranch and LCompare*AndBranch instructions. But each case has an individual function that detects the scenarios in which the optimization is possible (the CanEmitIsObjectAtUses, CanEmitBitAndAtUses and CanEmitCompareAtUses). As noted in comment #6 of bug #1023154, we can generalize these functions and replace them with a single function.
Assignee: nobody → mukilanthiagarajan
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.