comparison graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CodeCacheProvider.java @ 5780:64257cbef60c

removed compile method from GraalCodeCacheProvider interface added hook for Graal tests to modify the phase plan used during compilation renamed of variables to reflect types: compiler -> graalRuntime, targetMethod -> compResult rename: InvokeTest -> InvokeHintsTest
author Doug Simon <doug.simon@oracle.com>
date Fri, 06 Jul 2012 14:52:42 +0200
parents 2c088af17e59
children 92bc58dc5b5e
comparison
equal deleted inserted replaced
5779:1458f656b060 5780:64257cbef60c
75 * when not known or not applicable. Intended for determining the required size of address/offset fields. 75 * when not known or not applicable. Intended for determining the required size of address/offset fields.
76 */ 76 */
77 long getMaxCallTargetOffset(RuntimeCall rtcall); 77 long getMaxCallTargetOffset(RuntimeCall rtcall);
78 78
79 /** 79 /**
80 * Adds the given machine code as an implementation of the given method without making it the default implementation. 80 * Adds the given compilation result as an implementation of the given method without making it the default implementation.
81 *
81 * @param method a method to which the executable code is begin added 82 * @param method a method to which the executable code is begin added
82 * @param code the code to be added 83 * @param compResult the compilation result to be added
83 * @param info the object into which details of the installed code will be written. 84 * @param info the object into which details of the installed code will be written.
84 * Ignored if null, otherwise the info is written to index 0 of this array. 85 * Ignored if null, otherwise the info is written to index 0 of this array.
85 * @return a reference to the compiled and ready-to-run code 86 * @return a reference to the compiled and ready-to-run code
86 */ 87 */
87 InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult code, CodeInfo[] info); 88 InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult compResult, CodeInfo[] info);
88 89
89 /** 90 /**
90 * Encodes a deoptimization action and a deoptimization reason in an integer value. 91 * Encodes a deoptimization action and a deoptimization reason in an integer value.
91 * @return the encoded value as an integer 92 * @return the encoded value as an integer
92 */ 93 */