Enum Class FloatAccessGen
- All Implemented Interfaces:
AccessGen<JitType.FloatJitType>,SimpleAccessGen<Types.TFloat,,JitType.FloatJitType> Serializable,Comparable<FloatAccessGen>,Constable
This is accomplished by delegating to the int access generator with type conversion.
-
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<THIS extends JitCompiledPassage,N extends Emitter.Next>
Emitter<Emitter.Ent<N, Types.TFloat>> genReadToStack(Emitter<N> em, Local<Types.TRef<THIS>> localThis, JitCodeGenerator<THIS> gen, Varnode vn) Emit code to read a varnode<THIS extends JitCompiledPassage,N1 extends Emitter.Next, N0 extends Emitter.Ent<N1, Types.TFloat>>
Emitter<N1> genWriteFromStack(Emitter<N0> em, Local<Types.TRef<THIS>> localThis, JitCodeGenerator<THIS> gen, Varnode vn) Emit code to write a varnodestatic FloatAccessGenReturns the enum constant of this class with the specified name.static FloatAccessGen[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BE
The big-endian instance -
LE
The little-endian 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
-
genReadToStack
public <THIS extends JitCompiledPassage,N extends Emitter.Next> Emitter<Emitter.Ent<N,Types.TFloat>> genReadToStack(Emitter<N> em, Local<Types.TRef<THIS>> localThis, JitCodeGenerator<THIS> gen, Varnode vn) Description copied from interface:SimpleAccessGenEmit code to read a varnodeIf the varnode fits completely in the block (the common case), then this accesses the bytes from the one block, using the method chosen by size. If the varnode extends into the next block, then this will split the varnode into two portions according to machine byte order. Each portion is accessed using the method for the size of that portion. The results are reassembled into a single operand.
- Specified by:
genReadToStackin interfaceSimpleAccessGen<Types.TFloat,JitType.FloatJitType> - Type Parameters:
N- the incoming stack- Parameters:
em- the emitter typed with the incoming stacklocalThis- a handle to the local holding thethisreferencegen- the code generatorvn- the varnode- Returns:
- the code generator with the resulting stack, i.e., having pushed the value
-
genWriteFromStack
public <THIS extends JitCompiledPassage,N1 extends Emitter.Next, Emitter<N1> genWriteFromStackN0 extends Emitter.Ent<N1, Types.TFloat>> (Emitter<N0> em, Local<Types.TRef<THIS>> localThis, JitCodeGenerator<THIS> gen, Varnode vn) Description copied from interface:SimpleAccessGenEmit code to write a varnodeIf the varnode fits completely in the block (the common case), then this accesses the bytes from the one block, using the method chosen by size. If the varnode extends into the next block, then this will split the varnode into two portions according to machine byte order. Each portion is accessed using the method for the size of that portion.
- Specified by:
genWriteFromStackin interfaceSimpleAccessGen<Types.TFloat,JitType.FloatJitType> - Type Parameters:
N1- the tail of the incoming stackN0- the incoming stack having the value on top- Parameters:
em- the emitter typed with the incoming stacklocalThis- a handle to the local holding thethisreferencegen- the code generatorvn- the varnode- Returns:
- the code generator with the resulting stack, i.e., having popped the value
-