diff graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderContext.java @ 19505:16ad9711b44f

always inline intrinsics in the graph builder as well as any methods (recursively) called from an instrinsic replace BytecodeParser.currentDepth with BytecodeParser.parent
author Doug Simon <doug.simon@oracle.com>
date Thu, 19 Feb 2015 15:40:17 +0100
parents 9525e4d5b385
children 69b7ad0a3fda
line wrap: on
line diff
--- a/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderContext.java	Thu Feb 19 13:25:23 2015 +0100
+++ b/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderContext.java	Thu Feb 19 15:40:17 2015 +0100
@@ -60,6 +60,16 @@
     StructuredGraph getGraph();
 
     /**
+     * Gets the parsing context for the method that inlines the method being parsed by this context.
+     */
+    GraphBuilderContext getParent();
+
+    /**
+     * Gets the inline depth of this context. 0 implies this is the context for the root method.
+     */
+    int getDepth();
+
+    /**
      * Determines if the graph builder is parsing a snippet or method substitution.
      */
     boolean parsingReplacement();