Package ghidra.pcode.emu.jit.gen
Interface StaticFieldReq<T extends Types.BNonVoid>
- Type Parameters:
T- the JVM type of the field
- All Superinterfaces:
FieldReq<T>
- All Known Implementing Classes:
FieldForPcodeOp,FieldForVarnode
A static field request initialized in the class initializer
-
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, T>> genLoad(Emitter<N> em, JitCodeGenerator<?> gen) Emit code to load the field onto the JVM stack
-
Method Details
-
genClInitCode
<N extends Emitter.Next> Emitter<N> genClInitCode(Emitter<N> em, JitCodeGenerator<?> gen, org.objectweb.asm.ClassVisitor cv) Emit the field declaration and its initialization bytecodeThe declaration is emitted into the class definition, and the initialization code is emitted into the class initializer.
- 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
Emit code to load the field onto the JVM stack- 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
-