src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.phases.common/src/org/graalvm/compiler/phases/common/inlining/InliningUtil.java
changeset 58299 6df94ce3ab2f
parent 55509 d58442b8abc1
child 58679 9c3209ff7550
child 58877 aec7bf35d6f5
equal deleted inserted replaced
58298:0152ad7b38b8 58299:6df94ce3ab2f
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 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.
   726     protected static void processFrameStates(Invoke invoke, StructuredGraph inlineGraph, EconomicMap<Node, Node> duplicates, FrameState stateAtExceptionEdge,
   726     protected static void processFrameStates(Invoke invoke, StructuredGraph inlineGraph, EconomicMap<Node, Node> duplicates, FrameState stateAtExceptionEdge,
   727                     boolean alwaysDuplicateStateAfter) {
   727                     boolean alwaysDuplicateStateAfter) {
   728         FrameState stateAtReturn = invoke.stateAfter();
   728         FrameState stateAtReturn = invoke.stateAfter();
   729         FrameState outerFrameState = null;
   729         FrameState outerFrameState = null;
   730         JavaKind invokeReturnKind = invoke.asNode().getStackKind();
   730         JavaKind invokeReturnKind = invoke.asNode().getStackKind();
   731         EconomicMap<Node, Node> replacements = EconomicMap.create();
   731         EconomicMap<Node, Node> replacements = EconomicMap.create(Equivalence.IDENTITY);
   732         for (FrameState original : inlineGraph.getNodes(FrameState.TYPE)) {
   732         for (FrameState original : inlineGraph.getNodes(FrameState.TYPE)) {
   733             FrameState frameState = (FrameState) duplicates.get(original);
   733             FrameState frameState = (FrameState) duplicates.get(original);
   734             if (frameState != null && frameState.isAlive()) {
   734             if (frameState != null && frameState.isAlive()) {
   735                 if (outerFrameState == null) {
   735                 if (outerFrameState == null) {
   736                     outerFrameState = stateAtReturn.duplicateModifiedDuringCall(invoke.bci(), invokeReturnKind);
   736                     outerFrameState = stateAtReturn.duplicateModifiedDuringCall(invoke.bci(), invokeReturnKind);