abstract class SpillCostEstimator extends Object
| Constructor and Description |
|---|
SpillCostEstimator() |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract void |
calculate(IR ir)
Calculates the estimated cost for each register.
|
(package private) double |
getCost(Register r)
Returns a number that represents an estimate of the relative cost of
spilling register
r. |
protected void |
update(Register r,
double delta)
Updates the cost for a particular register.
|
SpillCostEstimator()
double getCost(Register r)
r.r - the register to checkabstract void calculate(IR ir)
ir - the IR object