All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opalj.br.instructions.SWAP.scala Maven / Gradle / Ivy

The newest version!
/* BSD 2-Clause License - see OPAL/LICENSE for details. */
package org.opalj
package br
package instructions

/**
 * Swap the top two operand stack values.
 *
 * @author Michael Eichberg
 */
case object SWAP extends StackManagementInstruction {

    final val opcode = 95

    final val mnemonic = "swap"

    final def numberOfPoppedOperands(ctg: Int => ComputationalTypeCategory): Int = 2

    final def numberOfPushedOperands(ctg: Int => ComputationalTypeCategory): Int = 2

    final def stackSlotsChange: Int = 0
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy