org.jikesrvm.compilers.opt.regalloc
Class SimpleSpillCost

java.lang.Object
  extended by org.jikesrvm.compilers.opt.regalloc.SpillCostEstimator
      extended by org.jikesrvm.compilers.opt.regalloc.SimpleSpillCost

 class SimpleSpillCost
extends SpillCostEstimator

An object that returns an estimate of the relative cost of spilling a symbolic register.


Constructor Summary
SimpleSpillCost(IR ir)
           
 
Method Summary
(package private)  void calculate(IR ir)
          Calculate the estimated cost for each register.
(package private) static boolean hasBadSizeMemoryOperand(Instruction s)
          Does instruction s have a memory operand of an inconvenient size?
 
Methods inherited from class org.jikesrvm.compilers.opt.regalloc.SpillCostEstimator
getCost, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSpillCost

SimpleSpillCost(IR ir)
Method Detail

calculate

void calculate(IR ir)
Description copied from class: SpillCostEstimator
Calculate the estimated cost for each register.

Specified by:
calculate in class SpillCostEstimator

hasBadSizeMemoryOperand

static boolean hasBadSizeMemoryOperand(Instruction s)
Does instruction s have a memory operand of an inconvenient size?

NOTE: This is pretty intel-specific. TODO Refactor to arch/ tree.