diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @ 13915:d6b340b757a2

Truffle: refactorings
author Andreas Woess <andreas.woess@jku.at>
date Sat, 08 Feb 2014 06:33:29 +0100
parents 641f22b1c6b8
children f46cab39a9a2
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java	Fri Feb 07 17:46:38 2014 +0100
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java	Sat Feb 08 06:33:29 2014 +0100
@@ -172,7 +172,7 @@
      * @return the new node
      */
     public final <T extends Node> T replace(T newNode, String reason) {
-        CompilerDirectives.transferToInterpreter();
+        CompilerDirectives.transferToInterpreterAndInvalidate();
         if (this.getParent() == null) {
             throw new IllegalStateException("This node cannot be replaced, because it does not yet have a parent.");
         }