Search in sources :

Example 1 with IfACmpNe

use of net.runelite.asm.attributes.code.instructions.IfACmpNe in project runelite by runelite.

the class ExprArgOrder method visit.

private void visit(InstructionContext ctx) {
    Instruction ins = ctx.getInstruction();
    if (ins instanceof IAdd || ins instanceof IMul || ins instanceof IfICmpEq || ins instanceof IfICmpNe || ins instanceof IfACmpEq || ins instanceof IfACmpNe) {
        Expression expression = new Expression(ctx);
        parseExpr(expression, ctx);
        if (!exprs.containsKey(ins)) {
            exprIns.add(ins);
            exprs.put(ins, expression);
        }
    }
}
Also used : IfICmpEq(net.runelite.asm.attributes.code.instructions.IfICmpEq) IfACmpEq(net.runelite.asm.attributes.code.instructions.IfACmpEq) IfACmpNe(net.runelite.asm.attributes.code.instructions.IfACmpNe) IfICmpNe(net.runelite.asm.attributes.code.instructions.IfICmpNe) IMul(net.runelite.asm.attributes.code.instructions.IMul) IAdd(net.runelite.asm.attributes.code.instructions.IAdd) PushConstantInstruction(net.runelite.asm.attributes.code.instruction.types.PushConstantInstruction) InvokeInstruction(net.runelite.asm.attributes.code.instruction.types.InvokeInstruction) LVTInstruction(net.runelite.asm.attributes.code.instruction.types.LVTInstruction) Instruction(net.runelite.asm.attributes.code.Instruction)

Aggregations

Instruction (net.runelite.asm.attributes.code.Instruction)1 InvokeInstruction (net.runelite.asm.attributes.code.instruction.types.InvokeInstruction)1 LVTInstruction (net.runelite.asm.attributes.code.instruction.types.LVTInstruction)1 PushConstantInstruction (net.runelite.asm.attributes.code.instruction.types.PushConstantInstruction)1 IAdd (net.runelite.asm.attributes.code.instructions.IAdd)1 IMul (net.runelite.asm.attributes.code.instructions.IMul)1 IfACmpEq (net.runelite.asm.attributes.code.instructions.IfACmpEq)1 IfACmpNe (net.runelite.asm.attributes.code.instructions.IfACmpNe)1 IfICmpEq (net.runelite.asm.attributes.code.instructions.IfICmpEq)1 IfICmpNe (net.runelite.asm.attributes.code.instructions.IfICmpNe)1