Mercurial > hg > graal-jvmci-8
changeset 21952:f929f601bdca
Truffle: remove Shape#copyOverPropertiesInternal
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Fri, 12 Jun 2015 15:23:50 +0200 |
parents | 4fe034122fd3 |
children | 633eb3ec30ce |
files | graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java graal/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java |
diffstat | 2 files changed, 0 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java Fri Jun 12 17:32:52 2015 +0200 +++ b/graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java Fri Jun 12 15:23:50 2015 +0200 @@ -156,11 +156,6 @@ public abstract Allocator allocator(); /** - * For copying over properties after exchanging the prototype of an object. - */ - public abstract Shape copyOverPropertiesInternal(Shape destination); - - /** * Get number of properties in this shape. */ public abstract int getPropertyCount();
--- a/graal/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java Fri Jun 12 17:32:52 2015 +0200 +++ b/graal/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java Fri Jun 12 15:23:50 2015 +0200 @@ -752,26 +752,6 @@ return leftPtr; } - /** - * For copying over properties after exchanging the prototype of an object. - */ - @TruffleBoundary - @Override - public final ShapeImpl copyOverPropertiesInternal(Shape destination) { - assert ((ShapeImpl) destination).getDepth() == 0; - List<Property> properties = this.getPropertyListInternal(true); - ShapeImpl newShape = ((ShapeImpl) destination).addPropertiesInternal(properties); - return newShape; - } - - private ShapeImpl addPropertiesInternal(List<Property> properties) { - ShapeImpl newShape = this; - for (Property p : properties) { - newShape = newShape.addPropertyInternal(p); - } - return newShape; - } - @Override public final int getPropertyCount() { return propertyCount;