Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TypeUniverse.java @ 23384:f102ee538647
Remove stable constant handling from ConstantReflectionProvider (JDK-8156552).
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 10 May 2016 14:55:40 +0200 |
parents | 30af491f98c5 |
children | 1d4ce2d19e52 |
comparison
equal
deleted
inserted
replaced
23383:0226d6bcb0d2 | 23384:f102ee538647 |
---|---|
180 ResolvedJavaField javaField = metaAccess.lookupJavaField(field); | 180 ResolvedJavaField javaField = metaAccess.lookupJavaField(field); |
181 Object boxed = field.get(null); | 181 Object boxed = field.get(null); |
182 if (boxed instanceof JavaConstant) { | 182 if (boxed instanceof JavaConstant) { |
183 res.add(new ConstantValue(javaField.format("%H.%n"), (JavaConstant) boxed, boxed)); | 183 res.add(new ConstantValue(javaField.format("%H.%n"), (JavaConstant) boxed, boxed)); |
184 } else { | 184 } else { |
185 JavaConstant value = constantReflection.readConstantFieldValue(javaField, null); | 185 JavaConstant value = constantReflection.readFieldValue(javaField, null); |
186 if (value != null) { | 186 if (value != null) { |
187 res.add(new ConstantValue(javaField.format("%H.%n"), value, boxed)); | 187 res.add(new ConstantValue(javaField.format("%H.%n"), value, boxed)); |
188 if (boxed instanceof Object[]) { | 188 if (boxed instanceof Object[]) { |
189 Object[] arr = (Object[]) boxed; | 189 Object[] arr = (Object[]) boxed; |
190 for (int i = 0; i < arr.length; i++) { | 190 for (int i = 0; i < arr.length; i++) { |