# HG changeset patch # User Christian Haeubl # Date 1331327694 28800 # Node ID 6e7c1fb1980f1d30103dff1237a77a3e6b56ff53 # Parent bb290d53a338c618875d3f647d54d552fce948c4 enabled wrappers for native method calls diff -r bb290d53a338 -r 6e7c1fb1980f graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java --- 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"); } diff -r bb290d53a338 -r 6e7c1fb1980f src/share/vm/graal/graalCompiler.hpp --- 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