com.github.anilople.javajvm.instructions.stores.ISTORE_3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javajvm Show documentation
Show all versions of javajvm Show documentation
Use Java to Implement JVM
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;
}
}