changeset 18663:058cbb02b58c

Added public getters for frame and register map
author adlertz
date Thu, 11 Dec 2014 19:35:44 +0100
parents c9d57a5fb655
children 54712aa2d3ee
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotReferenceMap.java
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotReferenceMap.java	Thu Dec 11 19:35:25 2014 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotReferenceMap.java	Thu Dec 11 19:35:44 2014 +0100
@@ -34,7 +34,7 @@
 
     private static final long serialVersionUID = -1052183095979496819L;
 
-    private static final int BITS_PER_WORD = 3;
+    public static final int BITS_PER_WORD = 3;
 
     /**
      * Contains 3 bits per scalar register, and n*3 bits per n-word vector register (e.g., on a
@@ -167,6 +167,14 @@
         }
     }
 
+    public BitSet getFrameMap() {
+        return (BitSet) frameRefMap.clone();
+    }
+
+    public BitSet getRegisterMap() {
+        return (BitSet) registerRefMap.clone();
+    }
+
     // clear
 
     private static void clearOop(BitSet map, int startIdx, LIRKind kind) {