# HG changeset patch # User Andreas Woess # Date 1399039184 -7200 # Node ID dd624471bd304d29fdfc52fc1b95e97f00a309f2 # Parent 9fa849f665cc0bfafe70c1f2210af7f2b3f39526 Truffle: remove deprecated Node#adoptChild, Node#adoptChildren. diff -r 9fa849f665cc -r dd624471bd30 CHANGELOG.md --- a/CHANGELOG.md Fri May 02 14:48:25 2014 +0200 +++ b/CHANGELOG.md Fri May 02 15:59:44 2014 +0200 @@ -12,13 +12,14 @@ * ... ### Truffle -* The method CallTarget#call takes now a variable number of Object arguments. +* The method `CallTarget#call` takes now a variable number of Object arguments. * Support for collecting stack traces and for accessing the current frame in slow paths. -* Renamed CallNode to DirectCallNode. -* Renamed TruffleRuntime#createCallNode to TruffleRuntime#createDirectCallNode. -* Added IndirectCallNode for calls with a changing CallTarget. -* Added TruffleRuntime#createIndirectCallNode to create an IndirectCallNode. -* DirectCallNode#inline was renamed to DirectCallNode#forceInlining(). +* Renamed `CallNode` to `DirectCallNode`. +* Renamed `TruffleRuntime#createCallNode` to `TruffleRuntime#createDirectCallNode`. +* Added `IndirectCallNode` for calls with a changing `CallTarget`. +* Added `TruffleRuntime#createIndirectCallNode` to create an `IndirectCallNode`. +* `DirectCallNode#inline` was renamed to `DirectCallNode#forceInlining()`. +* Removed deprecated `Node#adoptChild`. * ... ## Version 0.2 @@ -45,7 +46,7 @@ * New API to declare the cost of a Node for use in runtime environment specific heuristics. See `NodeCost`, `Node#getCost` and `NodeInfo#cost`. * Removed old API for `NodeInfo#Kind` and `NodeInfo#kind`. As a replacement the new `NodeCost` API can be used. * Changed `Node#replace` reason parameter type to `CharSequence` (to enable lazy string building) -* Deprecated `Node#adoptChild` and `Node#adoptChild`, no longer needed in node constructor +* Deprecated `Node#adoptChild` and `Node#adoptChildren`, no longer needed in node constructor * New `Node#insert` method for inserting new nodes into the tree (formerly `adoptChild`) * New `Node#adoptChildren` helper method that adopts all (direct and indirect) children of a node * New API `Node#atomic` for atomic tree operations diff -r 9fa849f665cc -r dd624471bd30 graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java --- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java Fri May 02 14:48:25 2014 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java Fri May 02 15:59:44 2014 +0200 @@ -134,31 +134,6 @@ * @param newChildren the array of new children whose parent should be updated * @return the array of new children */ - @SuppressWarnings("static-method") - @Deprecated - protected final T[] adoptChildren(final T[] newChildren) { - return newChildren; - } - - /** - * Method that updates the link to the parent in the specified new child node to this node. - * - * @param newChild the new child whose parent should be updated - * @return the new child - */ - @SuppressWarnings("static-method") - @Deprecated - protected final T adoptChild(final T newChild) { - return newChild; - } - - /** - * Method that updates the link to the parent in the array of specified new child nodes to this - * node. - * - * @param newChildren the array of new children whose parent should be updated - * @return the array of new children - */ protected final T[] insert(final T[] newChildren) { CompilerDirectives.transferToInterpreterAndInvalidate(); assert newChildren != null;