src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/StructuredGraph.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
676 public void removeFixed(FixedWithNextNode node) { |
676 public void removeFixed(FixedWithNextNode node) { |
677 assert node != null; |
677 assert node != null; |
678 if (node instanceof AbstractBeginNode) { |
678 if (node instanceof AbstractBeginNode) { |
679 ((AbstractBeginNode) node).prepareDelete(); |
679 ((AbstractBeginNode) node).prepareDelete(); |
680 } |
680 } |
681 assert node.hasNoUsages() : node + " " + node.usages().count() + ", " + node.usages().first(); |
681 assert node.hasNoUsages() : node + " " + node.getUsageCount() + ", " + node.usages().first(); |
682 GraphUtil.unlinkFixedNode(node); |
682 GraphUtil.unlinkFixedNode(node); |
683 node.safeDelete(); |
683 node.safeDelete(); |
684 } |
684 } |
685 |
685 |
686 public void replaceFixed(FixedWithNextNode node, Node replacement) { |
686 public void replaceFixed(FixedWithNextNode node, Node replacement) { |