comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiRuntime.java @ 5360:6cc970203f30

moved creation of a RiCodeInfo to the runtime side of the CRI
author Doug Simon <doug.simon@oracle.com>
date Mon, 07 May 2012 11:34:16 +0200
parents 290b3025b66f
children e1f45fcddb49
comparison
equal deleted inserted replaced
5359:4bfdf8cf87af 5360:6cc970203f30
174 /** 174 /**
175 * Installs some given machine code as the implementation of a given method. 175 * Installs some given machine code as the implementation of a given method.
176 * 176 *
177 * @param method a method whose executable code is being modified 177 * @param method a method whose executable code is being modified
178 * @param code the code to be executed when {@code method} is called 178 * @param code the code to be executed when {@code method} is called
179 * @param info the object into which details of the installed code will be written (ignored if null) 179 * @param info the object into which details of the installed code will be written.
180 */ 180 * Ignored if null, otherwise the info is written to index 0 of this array.
181 void installMethod(RiResolvedMethod method, CiTargetMethod code, RiCodeInfo info); 181 */
182 void installMethod(RiResolvedMethod method, CiTargetMethod code, RiCodeInfo[] info);
182 183
183 /** 184 /**
184 * Adds the given machine code as an implementation of the given method without making it the default implementation. 185 * Adds the given machine code as an implementation of the given method without making it the default implementation.
185 * @param method a method to which the executable code is begin added 186 * @param method a method to which the executable code is begin added
186 * @param code the code to be added 187 * @param code the code to be added
188 * @param info the object into which details of the installed code will be written.
189 * Ignored if null, otherwise the info is written to index 0 of this array.
187 * @return a reference to the compiled and ready-to-run code 190 * @return a reference to the compiled and ready-to-run code
188 */ 191 */
189 RiCompiledMethod addMethod(RiResolvedMethod method, CiTargetMethod code); 192 RiCompiledMethod addMethod(RiResolvedMethod method, CiTargetMethod code, RiCodeInfo[] info);
190 193
191 /** 194 /**
192 * Encodes a deoptimization action and a deoptimization reason in an integer value. 195 * Encodes a deoptimization action and a deoptimization reason in an integer value.
193 * @return the encoded value as an integer 196 * @return the encoded value as an integer
194 */ 197 */