Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleRuntime.java @ 18220:890d284b2771
Truffle: add TruffleRuntime#getCapability method
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Thu, 30 Oct 2014 17:04:16 +0100 |
parents | 7b45e33b7986 |
children | 656331a61829 |
comparison
equal
deleted
inserted
replaced
18219:4a8dd0fdcc38 | 18220:890d284b2771 |
---|---|
137 * important to note that this {@link FrameInstance} supports only slow path access. | 137 * important to note that this {@link FrameInstance} supports only slow path access. |
138 */ | 138 */ |
139 FrameInstance getCurrentFrame(); | 139 FrameInstance getCurrentFrame(); |
140 | 140 |
141 /** | 141 /** |
142 * Requests a capability from the runtime. | |
143 * | |
144 * @param capability the type of the interface representing the capability | |
145 * @return an implementation of the capability or {@code null} if the runtime does not offer it | |
146 */ | |
147 <T> T getCapability(Class<T> capability); | |
148 | |
149 /** | |
142 * Returns a list of all still referenced {@link RootCallTarget} instances that were created | 150 * Returns a list of all still referenced {@link RootCallTarget} instances that were created |
143 * using {@link #createCallTarget(RootNode)}. | 151 * using {@link #createCallTarget(RootNode)}. |
144 */ | 152 */ |
145 Collection<RootCallTarget> getCallTargets(); | 153 Collection<RootCallTarget> getCallTargets(); |
146 | 154 |