Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java @ 18311:3343ed66de79
Truffle: RootNode#getExecutionContext.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Sun, 09 Nov 2014 00:54:15 +0000 |
parents | be1316e633b5 |
children | 656331a61829 |
comparison
equal
deleted
inserted
replaced
18310:36fb9592c13b | 18311:3343ed66de79 |
---|---|
105 | 105 |
106 public final void setCallTarget(RootCallTarget callTarget) { | 106 public final void setCallTarget(RootCallTarget callTarget) { |
107 this.callTarget = callTarget; | 107 this.callTarget = callTarget; |
108 } | 108 } |
109 | 109 |
110 /** | |
111 * Returns the {@link ExecutionContext} associated with this <code>RootNode</code>. This allows | |
112 * the correct <code>ExecutionContext</code> to be determined for a <code>RootNode</code> (and | |
113 * so also for a {@link RootCallTarget} and a {@link FrameInstance} obtained from the call | |
114 * stack) without prior knowledge of the language it has come from. | |
115 * | |
116 * Used for instance to determine the language of a <code>RootNode<code>: | |
117 * | |
118 * <pre> | |
119 * <code> | |
120 * rootNode.getExecutionContext().getLanguageShortName(); | |
121 * </code> </pre> | |
122 * | |
123 * Returns <code>null</code> by default. | |
124 */ | |
125 public ExecutionContext getExecutionContext() { | |
126 return null; | |
127 } | |
128 | |
110 } | 129 } |