# HG changeset patch # User Andreas Woess # Date 1434475609 -7200 # Node ID 1adad389c232bc2a1ab34d40e050765943b7b0de # Parent dd4050aadaf8d91301b159cb30a609d8bb99feeb Truffle: remove Shape#copyOverPropertiesInternal diff -r dd4050aadaf8 -r 1adad389c232 graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java --- a/graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java Tue Jun 16 13:43:32 2015 +0200 +++ b/graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/Shape.java Tue Jun 16 19:26:49 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(); diff -r dd4050aadaf8 -r 1adad389c232 graal/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java --- a/graal/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java Tue Jun 16 13:43:32 2015 +0200 +++ b/graal/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java Tue Jun 16 19:26:49 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 properties = this.getPropertyListInternal(true); - ShapeImpl newShape = ((ShapeImpl) destination).addPropertiesInternal(properties); - return newShape; - } - - private ShapeImpl addPropertiesInternal(List properties) { - ShapeImpl newShape = this; - for (Property p : properties) { - newShape = newShape.addPropertyInternal(p); - } - return newShape; - } - @Override public final int getPropertyCount() { return propertyCount;