Mercurial > hg > truffle
changeset 5068:6e7c1fb1980f
enabled wrappers for native method calls
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Fri, 09 Mar 2012 13:14:54 -0800 |
parents | bb290d53a338 |
children | b593e82d9309 95b8a32a7cc3 |
files | graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java src/share/vm/graal/graalCompiler.hpp |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Fri Mar 09 17:12:20 2012 +0100 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Fri Mar 09 13:14:54 2012 -0800 @@ -22,6 +22,7 @@ */ package com.oracle.graal.compiler; +import java.lang.reflect.*; import java.util.*; import java.util.concurrent.*; @@ -78,6 +79,7 @@ } public CiTargetMethod compileMethod(final RiResolvedMethod method, final StructuredGraph graph, int osrBCI, final PhasePlan plan) { + assert (method.accessFlags() & Modifier.NATIVE) == 0 : "compiling native methods is not supported"; if (osrBCI != -1) { throw new CiBailout("No OSR supported"); }
--- a/src/share/vm/graal/graalCompiler.hpp Fri Mar 09 17:12:20 2012 +0100 +++ b/src/share/vm/graal/graalCompiler.hpp Fri Mar 09 13:14:54 2012 -0800 @@ -41,7 +41,7 @@ virtual const char* name() { return "G"; } // Native / OSR not supported - virtual bool supports_native() { return false; } + virtual bool supports_native() { return true; } virtual bool supports_osr () { return false; } // Pretend to be C1