Package ghidra.pcode.emu.jit.gen.op
Enum Class BoolAndOpGen
- All Implemented Interfaces:
BinOpGen<JitBoolAndOp>,IntBitwiseBinOpGen<JitBoolAndOp>,IntOpBinOpGen<JitBoolAndOp>,OpGen<JitBoolAndOp>,Serializable,Comparable<BoolAndOpGen>,Constable
The generator for a
bool_and.- Implementation Notes:
- It is the responsibility of the slaspec author to ensure boolean values are 0 or 1.
This allows us to use bitwise logic instead of having to check for any non-zero value,
just like
OpBehaviorBoolAnd. Thus, this is identical toIntAndOpGen., Because having bits other than the least significant set in the inputs is "undefined behavior," we could technically optimize this by only ANDing the least significant leg when we're dealing with mp-ints.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface ghidra.pcode.emu.jit.gen.op.BinOpGen
BinOpGen.TakeOutNested classes/interfaces inherited from interface ghidra.pcode.emu.jit.gen.op.OpGen
OpGen.DeadOpResult, OpGen.LiveOpResult, OpGen.OpResult -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<N2 extends Emitter.Next,N1 extends Emitter.Ent<N2, Types.TInt>, N0 extends Emitter.Ent<N1, Types.TInt>>
Emitter<Emitter.Ent<N2, Types.TInt>> opForInt(Emitter<N0> em, JitType.IntJitType type) Emit the JVM bytecode to perform the operator with intF operands on the stack.<N2 extends Emitter.Next,N1 extends Emitter.Ent<N2, Types.TLong>, N0 extends Emitter.Ent<N1, Types.TLong>>
Emitter<Emitter.Ent<N2, Types.TLong>> opForLong(Emitter<N0> em, JitType.LongJitType type) Emit the JVM bytecode to perform the operator with long operands on the stack.static BoolAndOpGenReturns the enum constant of this class with the specified name.static BoolAndOpGen[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface ghidra.pcode.emu.jit.gen.op.BinOpGen
ext, genMpDelegationToStaticMethod, rExtMethods inherited from interface ghidra.pcode.emu.jit.gen.op.IntBitwiseBinOpGen
genRunMpInt, isSignedMethods inherited from interface ghidra.pcode.emu.jit.gen.op.IntOpBinOpGen
genRun
-
Enum Constant Details
-
GEN
The generator singleton
-
-
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
-
opForInt
public <N2 extends Emitter.Next,N1 extends Emitter.Ent<N2, Emitter<Emitter.Ent<N2,Types.TInt>, N0 extends Emitter.Ent<N1, Types.TInt>> Types.TInt>> opForInt(Emitter<N0> em, JitType.IntJitType type) Description copied from interface:IntOpBinOpGenEmit the JVM bytecode to perform the operator with intF operands on the stack.- Specified by:
opForIntin interfaceIntOpBinOpGen<JitBoolAndOp>- Type Parameters:
N2- the tail of the incoming stackN1- the tail of the incoming stack including the right operandN0- the incoming stack with the right and left operands on top- Parameters:
em- the emitter typed with the incoming stacktype- the p-code type of the operands- Returns:
- the emitter typed with the resulting stack, i.e., the tail with the result pushed
-
opForLong
public <N2 extends Emitter.Next,N1 extends Emitter.Ent<N2, Emitter<Emitter.Ent<N2,Types.TLong>, N0 extends Emitter.Ent<N1, Types.TLong>> Types.TLong>> opForLong(Emitter<N0> em, JitType.LongJitType type) Description copied from interface:IntOpBinOpGenEmit the JVM bytecode to perform the operator with long operands on the stack.- Specified by:
opForLongin interfaceIntOpBinOpGen<JitBoolAndOp>- Type Parameters:
N2- the tail of the incoming stackN1- the tail of the incoming stack including the right operandN0- the incoming stack with the right and left operands on top- Parameters:
em- the emitter typed with the incoming stacktype- the p-code type of the operands- Returns:
- the emitter typed with the resulting stack, i.e., the tail with the result pushed
-