diff graal/com.oracle.jvmci.code/src/com/oracle/jvmci/code/CompilationResult.java @ 21780:3d15183f3c93

Introduce Compiler interface in jvmci. Use it from jvmci.hotspot.CompilationTask
author Gilles Duboscq <gilles.m.duboscq@oracle.com>
date Wed, 03 Jun 2015 15:47:54 +0200
parents b9f9b8af17ff
children
line wrap: on
line diff
--- a/graal/com.oracle.jvmci.code/src/com/oracle/jvmci/code/CompilationResult.java	Mon Jun 08 13:20:02 2015 +0200
+++ b/graal/com.oracle.jvmci.code/src/com/oracle/jvmci/code/CompilationResult.java	Wed Jun 03 15:47:54 2015 +0200
@@ -514,6 +514,8 @@
      */
     private ResolvedJavaMethod[] methods;
 
+    private int bytecodeSize;
+
     public CompilationResult() {
         this(null);
     }
@@ -649,6 +651,14 @@
         return methods;
     }
 
+    public void setBytecodeSize(int bytecodeSize) {
+        this.bytecodeSize = bytecodeSize;
+    }
+
+    public int getBytecodeSize() {
+        return bytecodeSize;
+    }
+
     public DataSection getDataSection() {
         return dataSection;
     }