src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/GraphDecoder.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 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. |
1746 */ |
1746 */ |
1747 GraalError.guarantee(value instanceof ProxyPlaceholder && ((ProxyPlaceholder) value).proxyPoint == loopExplosionMerge, |
1747 GraalError.guarantee(value instanceof ProxyPlaceholder && ((ProxyPlaceholder) value).proxyPoint == loopExplosionMerge, |
1748 "Value flowing out of loop, but we are not prepared to insert a ProxyNode"); |
1748 "Value flowing out of loop, but we are not prepared to insert a ProxyNode"); |
1749 |
1749 |
1750 ProxyPlaceholder proxyPlaceholder = (ProxyPlaceholder) value; |
1750 ProxyPlaceholder proxyPlaceholder = (ProxyPlaceholder) value; |
1751 ValueProxyNode proxy = ProxyNode.forValue(proxyPlaceholder.value, loopExit, graph); |
1751 ValueProxyNode proxy = ProxyNode.forValue(proxyPlaceholder.value, loopExit); |
1752 proxyPlaceholder.setValue(proxy); |
1752 proxyPlaceholder.setValue(proxy); |
1753 newValues.add(proxy); |
1753 newValues.add(proxy); |
1754 } |
1754 } |
1755 } |
1755 } |
1756 |
1756 |