# HG changeset patch # User Doug Simon # Date 1404847753 -7200 # Node ID 775660e1acbcc618643a8d3fe5dc2871559f956a # Parent 8eec87d7bfc4af62b68b8dd3fd8736d88cbc3b6c changed return type of Local.getType() to JavaType diff -r 8eec87d7bfc4 -r 775660e1acbc graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Local.java --- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Local.java Tue Jul 08 21:23:22 2014 +0200 +++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Local.java Tue Jul 08 21:29:13 2014 +0200 @@ -32,5 +32,5 @@ String getName(); - ResolvedJavaType getType(); + JavaType getType(); } diff -r 8eec87d7bfc4 -r 775660e1acbc graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/debug/LocalImpl.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/debug/LocalImpl.java Tue Jul 08 21:23:22 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/debug/LocalImpl.java Tue Jul 08 21:29:13 2014 +0200 @@ -33,19 +33,14 @@ private final int startBci; private final int endBci; private final int slot; - private final ResolvedJavaType resolvedType; + private final JavaType type; public LocalImpl(String name, String type, HotSpotResolvedObjectType holder, int startBci, int endBci, int slot) { this.name = name; this.startBci = startBci; this.endBci = endBci; this.slot = slot; - JavaType t = runtime().lookupType(type, holder, true); - if (t instanceof ResolvedJavaType) { - this.resolvedType = (ResolvedJavaType) runtime().lookupType(type, holder, false); - } else { - throw new AssertionError(t.getClass() + " is not a ResolvedJavaType"); - } + this.type = runtime().lookupType(type, holder, false); } @Override @@ -64,8 +59,8 @@ } @Override - public ResolvedJavaType getType() { - return resolvedType; + public JavaType getType() { + return type; } @Override @@ -79,7 +74,7 @@ return false; } LocalImpl that = (LocalImpl) obj; - return this.name.equals(that.name) && this.startBci == that.startBci && this.endBci == that.endBci && this.slot == that.slot && this.resolvedType.equals(that.resolvedType); + return this.name.equals(that.name) && this.startBci == that.startBci && this.endBci == that.endBci && this.slot == that.slot && this.type.equals(that.type); } @Override @@ -89,6 +84,6 @@ @Override public String toString() { - return "LocalImpl"; + return "LocalImpl"; } }