⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 astore_3.java

📁 Java源码
💻 JAVA
字号:
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: 14:48:37
 * To change this template use File | Settings | File Templates.
 */

public class ASTORE_3
    implements Instruction {
  public ASTORE_3() {}

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

  public int NumArguments() {
    return 0;
  }

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

  public void SI(AbstractMachineState state) {
    Tracer.debug("SI astore_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.pop();
    VM_da.stackFrame.setLocalEntry(3, 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -