Mercurial > hg > graal-compiler
changeset 7149:6a8b22829e36
made the Graal implementation of the C++ AbstractCompiler class support native wrapper generation
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 10 Dec 2012 22:19:07 +0100 |
parents | 46bad05d39b1 |
children | ff6df8b7ce81 2ae3e26b7e9a |
files | src/share/vm/compiler/abstractCompiler.hpp src/share/vm/graal/graalCompiler.hpp |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; }
--- 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; }