Package ghidra.pcode.emu.jit.gen
Class FieldForPcodeOp
java.lang.Object
ghidra.pcode.emu.jit.gen.FieldForPcodeOp
- All Implemented Interfaces:
FieldReq<Types.TRef<PcodeOp>>,StaticFieldReq<Types.TRef<PcodeOp>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<N extends Emitter.Next>
Emitter<N> genClInitCode(Emitter<N> em, JitCodeGenerator<?> gen, org.objectweb.asm.ClassVisitor cv) Emit the field declaration and its initialization bytecode<N extends Emitter.Next>
Emitter<Emitter.Ent<N, Types.TRef<PcodeOp>>> genLoad(Emitter<N> em, JitCodeGenerator<?> gen) Emit code to load the field onto the JVM stackname()Derive a suitable name for the field
-
Constructor Details
-
FieldForPcodeOp
-
-
Method Details
-
name
Description copied from interface:FieldReqDerive a suitable name for the field- Specified by:
namein interfaceFieldReq<Types.TRef<PcodeOp>>- Returns:
- the name
-
genClInitCode
public <N extends Emitter.Next> Emitter<N> genClInitCode(Emitter<N> em, JitCodeGenerator<?> gen, org.objectweb.asm.ClassVisitor cv) Description copied from interface:StaticFieldReqEmit the field declaration and its initialization bytecodeThe declaration is emitted into the class definition, and the initialization code is emitted into the class initializer.
- Specified by:
genClInitCodein interfaceStaticFieldReq<Types.TRef<PcodeOp>>- Type Parameters:
N- the incoming stack- Parameters:
em- the emitter typed with the incoming stackgen- the code generatorcv- the visitor for the class definition- Returns:
- the emitter typed with the incoming stack
-
genLoad
public <N extends Emitter.Next> Emitter<Emitter.Ent<N,Types.TRef<PcodeOp>>> genLoad(Emitter<N> em, JitCodeGenerator<?> gen) Description copied from interface:StaticFieldReqEmit code to load the field onto the JVM stack- Specified by:
genLoadin interfaceStaticFieldReq<Types.TRef<PcodeOp>>- Type Parameters:
N- the incoming stack- Parameters:
em- the emitter typed with the incoming stackgen- the code generator- Returns:
- the emitter typed with the resulting stack, i.e., having pushed the value
-