generateMagic
public static boolean generateMagic(BC2IR bc2ir,
GenerationContext gc,
MethodReference meth)
throws MagicNotImplementedException
"Semantic inlining" of methods of the Magic class.
Based on the methodName, generate a sequence of opt instructions
that implement the magic, updating the stack as necessary
- Parameters:
bc2ir - the bc2ir object generating the ir containing this magic
gc - == bc2ir.gc
meth - the RVMMethod that is the magic method
- Returns:
true if and only if magic was generated
- Throws:
MagicNotImplementedException