public interface MemoryAccessProvider
Modifier and Type | Method and Description |
---|---|
JavaConstant |
readObjectConstant(Constant base,
long displacement)
Reads a Java
Object value using a base address and a displacement. |
JavaConstant |
readPrimitiveConstant(Kind kind,
Constant base,
long displacement,
int bits)
Reads a primitive value using a base address and a displacement.
|
JavaConstant |
readUnsafeConstant(Kind kind,
JavaConstant base,
long displacement)
Reads a value of this kind using a base address and a displacement.
|
JavaConstant readUnsafeConstant(Kind kind, JavaConstant base, long displacement)
null
if the value is not available at this point.base
- the base address from which the value is read.displacement
- the displacement within the object in bytesJavaConstant
object, or null
if the
value cannot be read.JavaConstant readPrimitiveConstant(Kind kind, Constant base, long displacement, int bits)
kind
- the Kind
of the returned JavaConstant
objectbase
- the base address from which the value is readdisplacement
- the displacement within the object in bytesbits
- the number of bits to read from memoryJavaConstant
object of Kind
kindJavaConstant readObjectConstant(Constant base, long displacement)
Object
value using a base address and a displacement.base
- the base address from which the value is readdisplacement
- the displacement within the object in bytesConstant
object