aload_3.java

来自「Java源码」· Java 代码 · 共 45 行

JAVA
45
字号
package AM.vm_impl.instruction;

import AM.am_data_structure.*;
import AM.vm_impl.util.*;
import AM.vm_impl.vm_data_structure.*;

/**
 * Created by IntelliJ IDEA. User: yellowicq Date: 2004-4-27 Time: 23:27:08
 * To change this template use File | Settings | File Templates.
 */
public class ALOAD_3
    implements Instruction {
  public ALOAD_3() {}

  public String Name() {
    return "aload_3";
  }

  public int NumArguments() {
    return 0;
  }

  public String ToString() {
    return Name();
  }

  public void SI(AbstractMachineState state) {
    Tracer.debug("SI aload_3");
    VM_DataArea VM_da = (VM_DataArea) state.getDataArea();
    VM_Program VM_prog = (VM_Program) state.getProgram();
    // Implementation of allocate semantics
    Object tmp1 = (Object) VM_da.stackFrame.getLocalEntry(3);
    VM_da.stackFrame.push(tmp1);
    //move the cp pointer to next
    synchronized (VM_prog.lock) {
      VM_prog.Next();
      VM_da.regs.setCP_GLOBAL(VM_prog.Consult_CP());
    }
  }

  public void Process(String args[]) {
    // Proces the text representation of the instruction
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?