changeset 16993:81eb0d77e9f9

fix compilation issue; after a method is compiled (but not yet installed), it still needs to call the already compiled children.
author Christian Wirth <christian.wirth@oracle.com>
date Thu, 28 Aug 2014 18:07:52 +0200
parents 5a1d764f6afc
children 9cf849d5b3f9
files graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java	Thu Aug 28 15:35:29 2014 +0200
+++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java	Thu Aug 28 18:07:52 2014 +0200
@@ -333,6 +333,9 @@
     public final Object callInlined(Object[] arguments) {
         if (CompilerDirectives.inInterpreter()) {
             compilationProfile.reportInlinedCall();
+            if (isValid()) {
+                return callDirect(arguments);
+            }
         }
         VirtualFrame frame = createFrame(getRootNode().getFrameDescriptor(), arguments);
         return callProxy(frame);