cs132.vapor.ast
Class VMemRef.Global

java.lang.Object
  extended by cs132.vapor.ast.Node
      extended by cs132.vapor.ast.VMemRef
          extended by cs132.vapor.ast.VMemRef.Global
Enclosing class:
VMemRef

public static final class VMemRef.Global
extends VMemRef

A reference to some global memory location (either a segment or the heap). Ex: "[a+12]"


Nested Class Summary
 
Nested classes/interfaces inherited from class cs132.vapor.ast.VMemRef
VMemRef.Global, VMemRef.Stack
 
Field Summary
 VAddr<VDataSegment> base
          The base address of the memory location.
 int byteOffset
          The offset part of the memory location.
 
Fields inherited from class cs132.vapor.ast.Node
sourcePos
 
Constructor Summary
VMemRef.Global(SourcePos sourcePos, VAddr<VDataSegment> base, int byteOffset)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

base

public final VAddr<VDataSegment> base
The base address of the memory location.


byteOffset

public final int byteOffset
The offset part of the memory location.

Constructor Detail

VMemRef.Global

public VMemRef.Global(SourcePos sourcePos,
                      VAddr<VDataSegment> base,
                      int byteOffset)