Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java @ 22515:d51cc0af8612
deprecate NodeFieldAccessor#putObject
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Fri, 18 Dec 2015 14:47:13 +0100 |
parents | 07c98b5a9496 |
children |
comparison
equal
deleted
inserted
replaced
22514:6fe6d2cb7cc1 | 22515:d51cc0af8612 |
---|---|
127 @SuppressWarnings("unchecked") | 127 @SuppressWarnings("unchecked") |
128 public static <T extends Node> T cloneNode(T orig) { | 128 public static <T extends Node> T cloneNode(T orig) { |
129 return (T) orig.deepCopy(); | 129 return (T) orig.deepCopy(); |
130 } | 130 } |
131 | 131 |
132 @SuppressWarnings("deprecation") | |
132 static Node deepCopyImpl(Node orig) { | 133 static Node deepCopyImpl(Node orig) { |
133 CompilerAsserts.neverPartOfCompilation(); | 134 CompilerAsserts.neverPartOfCompilation(); |
134 final Node clone = orig.copy(); | 135 final Node clone = orig.copy(); |
135 NodeClass nodeClass = clone.getNodeClass(); | 136 NodeClass nodeClass = clone.getNodeClass(); |
136 | 137 |
199 | 200 |
200 public static boolean replaceChild(Node parent, Node oldChild, Node newChild) { | 201 public static boolean replaceChild(Node parent, Node oldChild, Node newChild) { |
201 return replaceChild(parent, oldChild, newChild, false); | 202 return replaceChild(parent, oldChild, newChild, false); |
202 } | 203 } |
203 | 204 |
205 @SuppressWarnings("deprecation") | |
204 static boolean replaceChild(Node parent, Node oldChild, Node newChild, boolean adopt) { | 206 static boolean replaceChild(Node parent, Node oldChild, Node newChild, boolean adopt) { |
205 CompilerAsserts.neverPartOfCompilation(); | 207 CompilerAsserts.neverPartOfCompilation(); |
206 NodeClass nodeClass = parent.getNodeClass(); | 208 NodeClass nodeClass = parent.getNodeClass(); |
207 | 209 |
208 for (NodeFieldAccessor nodeField : nodeClass.getChildFields()) { | 210 for (NodeFieldAccessor nodeField : nodeClass.getChildFields()) { |