org.teavm.model.lowlevel.SpilledPhisFinder Maven / Gradle / Ivy
/*
* Copyright 2019 konsoletyper.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.teavm.model.lowlevel;
import com.carrotsearch.hppc.IntHashSet;
import com.carrotsearch.hppc.IntSet;
import java.util.Arrays;
import java.util.BitSet;
import java.util.List;
import java.util.Map;
import org.teavm.common.DominatorTree;
import org.teavm.model.BasicBlock;
import org.teavm.model.Incoming;
import org.teavm.model.Instruction;
import org.teavm.model.Phi;
import org.teavm.model.Program;
class SpilledPhisFinder {
private static final byte VISITING = 1;
private static final byte VISITED = 2;
private DominatorTree dom;
boolean[] autoSpilled;
byte[] status;
int[][] variableSpilledBlocks;
Phi[] definingPhis;
int variableCount;
private int[] variableClasses;
private int[] colors;
SpilledPhisFinder(List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy