diff graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CodeCacheProvider.java @ 6329:92bc58dc5b5e

More clean up and documentation in api.code and api.meta.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 07 Sep 2012 13:40:53 +0200
parents 64257cbef60c
children 2a0c9f20baa1
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CodeCacheProvider.java	Fri Sep 07 12:12:47 2012 +0200
+++ b/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CodeCacheProvider.java	Fri Sep 07 13:40:53 2012 +0200
@@ -31,6 +31,17 @@
 public interface CodeCacheProvider extends MetaAccessProvider {
 
     /**
+     * Adds the given compilation result as an implementation of the given method without making it the default implementation.
+     *
+     * @param method a method to which the executable code is begin added
+     * @param compResult the compilation result to be added
+     * @param info the object into which details of the installed code will be written.
+     *        Ignored if null, otherwise the info is written to index 0 of this array.
+     * @return a reference to the compiled and ready-to-run code
+     */
+    InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult compResult, CodeInfo[] info);
+
+    /**
      * Get the size in bytes for locking information on the stack.
      */
     int sizeOfLockData();
@@ -50,8 +61,6 @@
      */
     RegisterConfig getRegisterConfig(JavaMethod method);
 
-    RegisterConfig getGlobalStubRegisterConfig();
-
     /**
      * Custom area on the stack of each compiled method that the VM can use for its own purposes.
      * @return the size of the custom area in bytes
@@ -77,17 +86,6 @@
     long getMaxCallTargetOffset(RuntimeCall rtcall);
 
     /**
-     * Adds the given compilation result as an implementation of the given method without making it the default implementation.
-     *
-     * @param method a method to which the executable code is begin added
-     * @param compResult the compilation result to be added
-     * @param info the object into which details of the installed code will be written.
-     *        Ignored if null, otherwise the info is written to index 0 of this array.
-     * @return a reference to the compiled and ready-to-run code
-     */
-    InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult compResult, CodeInfo[] info);
-
-    /**
      * Encodes a deoptimization action and a deoptimization reason in an integer value.
      * @return the encoded value as an integer
      */