Mercurial > hg > truffle
comparison graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/MemoryAccessProvider.java @ 18483:d7cc487d1325
Move HotSpot specific functionality to new subinterface of ConstantReflectionProvider.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 20 Nov 2014 18:01:18 +0100 |
parents | b8a622c3e99f |
children | 2906b3cc3e2f |
comparison
equal
deleted
inserted
replaced
18482:b8a622c3e99f | 18483:d7cc487d1325 |
---|---|
48 * @return the read value encapsulated in a {@link JavaConstant} object of {@link Kind} kind | 48 * @return the read value encapsulated in a {@link JavaConstant} object of {@link Kind} kind |
49 */ | 49 */ |
50 JavaConstant readPrimitiveConstant(Kind kind, Constant base, long displacement, int bits); | 50 JavaConstant readPrimitiveConstant(Kind kind, Constant base, long displacement, int bits); |
51 | 51 |
52 /** | 52 /** |
53 * Reads a pointer value using a base address and a displacement. | 53 * Reads a Java {@link Object} value using a base address and a displacement. |
54 * | 54 * |
55 * @param type the {@link PointerType} of the returned {@link Constant} object | |
56 * @param base the base address from which the value is read | 55 * @param base the base address from which the value is read |
57 * @param displacement the displacement within the object in bytes | 56 * @param displacement the displacement within the object in bytes |
58 * @return the read value encapsulated in a {@link Constant} object | 57 * @return the read value encapsulated in a {@link Constant} object |
59 */ | 58 */ |
60 Constant readPointerConstant(PointerType type, Constant base, long displacement); | 59 JavaConstant readObjectConstant(Constant base, long displacement); |
61 } | 60 } |