Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaField.java @ 10063:9e688291fc53
HotSpotResolvedJavaField: don't embed object for empty stack trace for replacements when compiled in AOT mode (GRAAL-290)
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Sun, 16 Jun 2013 23:55:20 +0200 |
parents | 56fc40ca4ae0 |
children | 5ba3763d6986 |
comparison
equal
deleted
inserted
replaced
10062:56fc40ca4ae0 | 10063:9e688291fc53 |
---|---|
78 | 78 |
79 private static final String SystemClassName = MetaUtil.toInternalName(System.class.getName()); | 79 private static final String SystemClassName = MetaUtil.toInternalName(System.class.getName()); |
80 private static final String IntegerCacheClassName = "Ljava/lang/Integer$IntegerCache;"; | 80 private static final String IntegerCacheClassName = "Ljava/lang/Integer$IntegerCache;"; |
81 private static final String LongCacheClassName = "Ljava/lang/Long$LongCache;"; | 81 private static final String LongCacheClassName = "Ljava/lang/Long$LongCache;"; |
82 private static final String BooleanCacheName = MetaUtil.toInternalName(Boolean.class.getName()); | 82 private static final String BooleanCacheName = MetaUtil.toInternalName(Boolean.class.getName()); |
83 private static final String ThrowableClassName = MetaUtil.toInternalName(Throwable.class.getName()); | |
83 | 84 |
84 private boolean isConstantCache() { | 85 private boolean isConstantCache() { |
85 String n = holder.getName(); | 86 String n = holder.getName(); |
86 return GraalOptions.AOTCompilation.getValue() && n.equals(IntegerCacheClassName) || n.equals(LongCacheClassName) || n.equals(BooleanCacheName); | 87 return GraalOptions.AOTCompilation.getValue() && n.equals(IntegerCacheClassName) || n.equals(LongCacheClassName) || n.equals(BooleanCacheName) || n.equals(ThrowableClassName); |
87 } | 88 } |
88 | 89 |
89 @Override | 90 @Override |
90 public Constant readConstantValue(Constant receiver) { | 91 public Constant readConstantValue(Constant receiver) { |
91 if (receiver == null) { | 92 if (receiver == null) { |