Interface Opnd.StackToStackConv<FT extends Types.BPrim<?>,FJT extends JitType.SimpleJitType<FT,FJT>,TT extends Types.BPrim<?>,TJT extends JitType.SimpleJitType<TT,TJT>>

Type Parameters:
FT - the "from" JVM type
FJT - the "from" p-code type
TT - the "to" JVM type
TJT - the "to" p-code type
All Known Implementing Classes:
Opnd.DoubleToDouble, Opnd.DoubleToFloat, Opnd.DoubleToInt, Opnd.DoubleToLong, Opnd.FloatToDouble, Opnd.FloatToFloat, Opnd.FloatToInt, Opnd.FloatToLong, Opnd.IntToDouble, Opnd.IntToFloat, Opnd.IntToInt, Opnd.IntToLong, Opnd.LongToDouble, Opnd.LongToFloat, Opnd.LongToInt, Opnd.LongToLong
Enclosing interface:
Opnd<T extends JitType>

public static interface Opnd.StackToStackConv<FT extends Types.BPrim<?>,FJT extends JitType.SimpleJitType<FT,FJT>,TT extends Types.BPrim<?>,TJT extends JitType.SimpleJitType<TT,TJT>>
An interface for converting between simple stack operands
  • Method Details

    • convertStackToStack

      <N1 extends Emitter.Next, N0 extends Emitter.Ent<N1, FT>> Emitter<Emitter.Ent<N1,TT>> convertStackToStack(Emitter<N0> em, FJT from, TJT to, Opnd.Ext ext)
      Convert a stack operand to another stack operand
      Type Parameters:
      N1 - the tail of the stack (...)
      N0 - ..., value
      Parameters:
      em - the emitter
      from - the source p-code type
      to - the destination p-code type
      ext - the kind of extension to apply
      Returns:
      the emitter with ..., result