Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/MemoryAccessProvider.java @ 23401:c9993da505a0
Remove unused method MemoryAccessProvider.readUnsafeConstant (JDK-8157428).
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 20 May 2016 12:07:06 +0200 |
parents | 0cbc2bd101c3 |
children | 8abcd8e1285d |
comparison
equal
deleted
inserted
replaced
23400:0cbc2bd101c3 | 23401:c9993da505a0 |
---|---|
26 * Provides memory access operations for the target VM. | 26 * Provides memory access operations for the target VM. |
27 */ | 27 */ |
28 public interface MemoryAccessProvider { | 28 public interface MemoryAccessProvider { |
29 | 29 |
30 /** | 30 /** |
31 * Reads a value of this kind using a base address and a displacement. No bounds checking or | |
32 * type checking is performed. Returns {@code null} if the value is not available at this point. | |
33 * | |
34 * @param base the base address from which the value is read. | |
35 * @param displacement the displacement within the object in bytes | |
36 * @return the read value encapsulated in a {@link JavaConstant} object, or {@code null} if the | |
37 * value cannot be read. | |
38 * @throws IllegalArgumentException if {@code kind} is {@code null}, {@link JavaKind#Void}, not | |
39 * {@link JavaKind#Object} or not {@linkplain JavaKind#isPrimitive() primitive} kind | |
40 */ | |
41 JavaConstant readUnsafeConstant(JavaKind kind, JavaConstant base, long displacement) throws IllegalArgumentException; | |
42 | |
43 /** | |
44 * Reads a primitive value using a base address and a displacement. | 31 * Reads a primitive value using a base address and a displacement. |
45 * | 32 * |
46 * @param kind the {@link JavaKind} of the returned {@link JavaConstant} object | 33 * @param kind the {@link JavaKind} of the returned {@link JavaConstant} object |
47 * @param base the base address from which the value is read | 34 * @param base the base address from which the value is read |
48 * @param displacement the displacement within the object in bytes | 35 * @param displacement the displacement within the object in bytes |