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

com.github.anilople.javajvm.instructions.stores.ISTORE_3 Maven / Gradle / Ivy

The newest version!
package com.github.anilople.javajvm.instructions.stores;

import com.github.anilople.javajvm.instructions.BytecodeReader;
import com.github.anilople.javajvm.instructions.Instruction;
import com.github.anilople.javajvm.runtimedataarea.Frame;

/**
 * Operation:
 * Store int into local variable
 * Description:
 * The  must be an index into the local variable array of the
 * current frame (§2.6). The value on the top of the operand stack
 * must be of type int . It is popped from the operand stack, and the
 * value of the local variable at  is set to value.
 * Notes:
 * Each of the istore_ instructions is the same as istore with an
 * index of , except that the operand  is implicit.
 */
public class ISTORE_3 implements Instruction {

    @Override
    public void fetchOperands(BytecodeReader bytecodeReader) {

    }

    @Override
    public void execute(Frame frame) {
        ISTORE.execute(this, frame, 3);
    }

    @Override
    public int size() {
        return 1;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy