diff truffle/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java @ 22087:5d9e5f866821

add Shape.Allocator#copy()
author Andreas Woess <andreas.woess@oracle.com>
date Mon, 17 Aug 2015 14:58:34 +0200
parents 9c8c0937da41
children 22ce537a52fd
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java	Mon Aug 17 15:49:18 2015 +0200
+++ b/truffle/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java	Mon Aug 17 14:58:34 2015 +0200
@@ -280,6 +280,11 @@
         public abstract Location declaredLocation(Object value);
 
         public abstract Allocator addLocation(Location location);
+
+        /**
+         * Creates an copy of this allocator.
+         */
+        public abstract Allocator copy();
     }
 
     /**