Package ghidra.pcode.emu.jit.gen.opnd
Enum Class Opnd.MpIntToInt
- All Implemented Interfaces:
Opnd.MpToStackConv<Types.TInt,,JitType.IntJitType, JitType.MpIntJitType, Types.TInt, JitType.IntJitType> Serializable,Comparable<Opnd.MpIntToInt>,Constable
public static enum Opnd.MpIntToInt
extends Enum<Opnd.MpIntToInt>
implements Opnd.MpToStackConv<Types.TInt,JitType.IntJitType,JitType.MpIntJitType,Types.TInt,JitType.IntJitType>
Converter from mp-int to (simple) int
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<N1 extends Emitter.Next,N0 extends Emitter.Ent<N1, Types.TRef<int[]>>>
Emitter<Emitter.Ent<N1, Types.TInt>> convertArrayToStack(Emitter<N0> em, JitType.MpIntJitType from, JitType.IntJitType to, Opnd.Ext ext) Convert an mp operand in an array to a stack operand<N extends Emitter.Next>
Emitter<Emitter.Ent<N, Types.TInt>> convertOpndToStack(Emitter<N> em, Opnd<JitType.MpIntJitType> from, JitType.IntJitType to, Opnd.Ext ext) Convert an mp operand in locals to a stack operandstatic Opnd.MpIntToIntReturns the enum constant of this class with the specified name.static Opnd.MpIntToInt[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
convertOpndToStack
public <N extends Emitter.Next> Emitter<Emitter.Ent<N,Types.TInt>> convertOpndToStack(Emitter<N> em, Opnd<JitType.MpIntJitType> from, JitType.IntJitType to, Opnd.Ext ext) Description copied from interface:Opnd.MpToStackConvConvert an mp operand in locals to a stack operand- Specified by:
convertOpndToStackin interfaceOpnd.MpToStackConv<Types.TInt,JitType.IntJitType, JitType.MpIntJitType, Types.TInt, JitType.IntJitType> - 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
public <N1 extends Emitter.Next,N0 extends Emitter.Ent<N1, Emitter<Emitter.Ent<N1,Types.TRef<int[]>>> Types.TInt>> convertArrayToStack(Emitter<N0> em, JitType.MpIntJitType from, JitType.IntJitType to, Opnd.Ext ext) Description copied from interface:Opnd.MpToStackConvConvert an mp operand in an array to a stack operand- Specified by:
convertArrayToStackin interfaceOpnd.MpToStackConv<Types.TInt,JitType.IntJitType, JitType.MpIntJitType, Types.TInt, JitType.IntJitType> - 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
-