changeset 9951:c73690957f9b

Add custom constructor to VirtualInstanceNode.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 10 Jun 2013 01:08:23 +0200
parents b59331342d01
children 5d91b0b67cba
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/virtual/VirtualInstanceNode.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/virtual/VirtualInstanceNode.java	Mon Jun 10 01:07:32 2013 +0200
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/virtual/VirtualInstanceNode.java	Mon Jun 10 01:08:23 2013 +0200
@@ -37,6 +37,11 @@
         this.fields = type.getInstanceFields(true);
     }
 
+    public VirtualInstanceNode(ResolvedJavaType type, ResolvedJavaField[] fields) {
+        this.type = type;
+        this.fields = fields;
+    }
+
     @Override
     public ResolvedJavaType type() {
         return type;