# HG changeset patch # User Doug Simon # Date 1355174347 -3600 # Node ID 6a8b22829e369f92f20837314d5fd83c53bb386d # Parent 46bad05d39b103e3d90f3d77411758322432d1fe made the Graal implementation of the C++ AbstractCompiler class support native wrapper generation diff -r 46bad05d39b1 -r 6a8b22829e36 src/share/vm/compiler/abstractCompiler.hpp --- a/src/share/vm/compiler/abstractCompiler.hpp Fri Dec 07 23:41:51 2012 +0100 +++ b/src/share/vm/compiler/abstractCompiler.hpp Mon Dec 10 22:19:07 2012 +0100 @@ -47,8 +47,11 @@ // Name of this compiler virtual const char* name() = 0; - // Missing feature tests + // Should a native wrapper be generated by the runtime. This method + // does *not* answer the question "can this compiler generate code for + // a native method". virtual bool supports_native() { return true; } + virtual bool supports_osr () { return true; } #if defined(TIERED) || ( !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK) && !defined(GRAAL)) virtual bool is_c1 () { return false; } diff -r 46bad05d39b1 -r 6a8b22829e36 src/share/vm/graal/graalCompiler.hpp --- a/src/share/vm/graal/graalCompiler.hpp Fri Dec 07 23:41:51 2012 +0100 +++ b/src/share/vm/graal/graalCompiler.hpp Mon Dec 10 22:19:07 2012 +0100 @@ -48,7 +48,7 @@ virtual const char* name() { return "G"; } - virtual bool supports_native() { return false; } + virtual bool supports_native() { return true; } virtual bool supports_osr () { return true; } bool is_graal() { return true; }