Package ghidra.pcode.emu.jit.gen.opnd
Interface Opnd.MpToStackConv<FT extends Types.BPrim<?>,FLT extends JitType.SimpleJitType<FT,FLT>,FJT extends JitType.LeggedJitType<FT,FLT>,TT extends Types.BPrim<?>,TJT extends JitType.SimpleJitType<TT,TJT>>
- Type Parameters:
FT- the "from" JVM type for each mp legFLT- the "from" p-code type for each mp legFJT- the "from" p-code typeTT- the "to" JVM typeTJT- the "to" p-code type
- All Known Implementing Classes:
Opnd.MpIntToDouble,Opnd.MpIntToFloat,Opnd.MpIntToInt,Opnd.MpIntToLong
public static interface Opnd.MpToStackConv<FT extends Types.BPrim<?>,FLT extends JitType.SimpleJitType<FT,FLT>,FJT extends JitType.LeggedJitType<FT,FLT>,TT extends Types.BPrim<?>,TJT extends JitType.SimpleJitType<TT,TJT>>
An interface for converting multi-precision operands to simple stack operands
-
Method Summary
Modifier and TypeMethodDescription<N1 extends Emitter.Next,N0 extends Emitter.Ent<N1, Types.TRef<int[]>>>
Emitter<Emitter.Ent<N1, TT>> convertArrayToStack(Emitter<N0> em, FJT from, TJT to, Opnd.Ext ext) Convert an mp operand in an array to a stack operand<N extends Emitter.Next>
Emitter<Emitter.Ent<N, TT>> Convert an mp operand in locals to a stack operand
-
Method Details
-
convertOpndToStack
<N extends Emitter.Next> Emitter<Emitter.Ent<N,TT>> convertOpndToStack(Emitter<N> em, Opnd<FJT> from, TJT to, Opnd.Ext ext) Convert an mp operand in locals to a stack operand- Type Parameters:
N- the tail of the stack (...)- Parameters:
em- the emitterfrom- the source operandto- the destination p-code typeext- the kind of extension to apply- Returns:
- the emitter with ..., result
-
convertArrayToStack
<N1 extends Emitter.Next,N0 extends Emitter.Ent<N1, Emitter<Emitter.Ent<N1,Types.TRef<int[]>>> TT>> convertArrayToStack(Emitter<N0> em, FJT from, TJT to, Opnd.Ext ext) Convert an mp operand in an array to a stack operand- Type Parameters:
N1- the tail of the stack (...)N0- ..., arrayref- Parameters:
em- the emitterfrom- the source p-code typeto- the destination p-code typeext- the kind of extension to apply- Returns:
- the emitter with ..., result
-