# HG changeset patch # User Matthias Grimmer # Date 1382525157 -7200 # Node ID ecd85445f77a7c4a41e362f421d5490f6b7b81f1 # Parent 23dc5dfdb9c7c4285f219abf01128abf659ca651 Rename CodeCacheProvider.addDefaultMethod to setDefaultMethod diff -r 23dc5dfdb9c7 -r ecd85445f77a graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CodeCacheProvider.java --- a/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CodeCacheProvider.java Tue Oct 22 13:25:37 2013 +0200 +++ b/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CodeCacheProvider.java Wed Oct 23 12:45:57 2013 +0200 @@ -42,14 +42,14 @@ InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult compResult); /** - * Adds the given compilation result as a default implementation of the given method. + * Sets the given compilation result as the default implementation of the given method. * * @param method a method to which the executable code is begin added * @param compResult the compilation result to be added * @return a reference to the compiled and ready-to-run code or null if the code installation * failed */ - InstalledCode addDefaultMethod(ResolvedJavaMethod method, CompilationResult compResult); + InstalledCode setDefaultMethod(ResolvedJavaMethod method, CompilationResult compResult); /** * Returns a disassembly of some compiled code.