Package org.teavm.model.instructions

Examples of org.teavm.model.instructions.NullCheckInstruction


            if (insn instanceof InvokeInstruction) {
                InvokeInstruction invoke = (InvokeInstruction)insn;
                if (invoke.getType() != InvocationType.VIRTUAL) {
                    continue;
                }
                NullCheckInstruction nullCheck = new NullCheckInstruction();
                nullCheck.setValue(invoke.getInstance());
                Variable var = block.getProgram().createVariable();
                nullCheck.setReceiver(var);
                invoke.setInstance(var);
                block.getInstructions().add(i++, nullCheck);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.teavm.model.instructions.NullCheckInstruction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.