Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultTruffleRuntime.java @ 17036:7b45e33b7986
Truffle: made TruffleRuntime#getCallTargets return a Collection and simplified its implementation.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 03 Sep 2014 14:58:53 +0200 |
parents | 5a1d764f6afc |
children | 0a35e2789735 |
comparison
equal
deleted
inserted
replaced
17035:7b2e6171f455 | 17036:7b45e33b7986 |
---|---|
133 public FrameInstance getCallerFrame() { | 133 public FrameInstance getCallerFrame() { |
134 return getThreadLocalStackTrace().peekFirst(); | 134 return getThreadLocalStackTrace().peekFirst(); |
135 } | 135 } |
136 | 136 |
137 @Override | 137 @Override |
138 public List<RootCallTarget> getCallTargets() { | 138 public Collection<RootCallTarget> getCallTargets() { |
139 return new ArrayList<>(callTargets.keySet()); | 139 return Collections.unmodifiableSet(callTargets.keySet()); |
140 } | 140 } |
141 | 141 |
142 @Override | 142 @Override |
143 public FrameInstance getCurrentFrame() { | 143 public FrameInstance getCurrentFrame() { |
144 return currentFrames.get(); | 144 return currentFrames.get(); |