vm_dataarea.java

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

JAVA
39
字号
package AM.vm_impl.vm_data_structure;

import AM.am_data_structure.*;

/**
 * Created by IntelliJ IDEA. User: yellowicq Date: 2004-4-27 Time: 12:48:22
 * To change this template use File | Settings | File Templates.
 */

public class VM_DataArea
    implements DataArea {
  //constant pool not implemented
  public VM_StackFrame stackFrame;
  public Heap heap;
  public Registers regs;
  public MethodArea methodArea;

  public VM_DataArea() {
    stackFrame = new VM_StackFrame();
    heap = new Heap();
    regs = new Registers();
    methodArea = new MethodArea();
  }

  public void Init() {
    stackFrame.Init();
    heap.Init();
    regs.Init();
    regs.setStackFramePointer(stackFrame);
    methodArea.Init();
  }

  public boolean Stop() {
    //here data area could stop anytime
    return true;
  }

}

⌨️ 快捷键说明

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