comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMemoryAccessProviderImpl.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 b5557b757040
comparison
equal deleted inserted replaced
23400:0cbc2bd101c3 23401:c9993da505a0
147 } 147 }
148 assert verifyReadRawObject(ret, baseConstant, initialDisplacement, compressed); 148 assert verifyReadRawObject(ret, baseConstant, initialDisplacement, compressed);
149 return ret; 149 return ret;
150 } 150 }
151 151
152 @Override 152 /**
153 public JavaConstant readUnsafeConstant(JavaKind kind, JavaConstant baseConstant, long displacement) { 153 * Reads a value of this kind using a base address and a displacement. No bounds checking or
154 * type checking is performed. Returns {@code null} if the value is not available at this point.
155 *
156 * @param baseConstant the base address from which the value is read.
157 * @param displacement the displacement within the object in bytes
158 * @return the read value encapsulated in a {@link JavaConstant} object, or {@code null} if the
159 * value cannot be read.
160 * @throws IllegalArgumentException if {@code kind} is {@code null}, {@link JavaKind#Void}, not
161 * {@link JavaKind#Object} or not {@linkplain JavaKind#isPrimitive() primitive} kind
162 */
163 JavaConstant readUnsafeConstant(JavaKind kind, JavaConstant baseConstant, long displacement) {
154 if (kind == null) { 164 if (kind == null) {
155 throw new IllegalArgumentException("null JavaKind"); 165 throw new IllegalArgumentException("null JavaKind");
156 } 166 }
157 if (kind == JavaKind.Object) { 167 if (kind == JavaKind.Object) {
158 Object o = readRawObject(baseConstant, displacement, runtime.getConfig().useCompressedOops); 168 Object o = readRawObject(baseConstant, displacement, runtime.getConfig().useCompressedOops);