comp
Class PointerType

java.lang.Object
  |
  +--comp.Type
        |
        +--comp.PointerType
Direct Known Subclasses:
ArrayType

class PointerType
extends Type


Field Summary
(package private)  Type base
           
 
Fields inherited from class comp.Type
name, size
 
Constructor Summary
PointerType(Type base)
           
 
Method Summary
 java.lang.String emitArrayOffset(Assembler asm, java.lang.String indexReg)
           
 java.lang.String rValue(Assembler asm, java.lang.String dest, int off, java.lang.String base)
           
 java.lang.String rValueGlobal(Assembler asm, java.lang.String dest, java.lang.String label)
           
 
Methods inherited from class comp.Type
getLayoutSize, lValue, lValueGlobal, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

base

Type base
Constructor Detail

PointerType

public PointerType(Type base)
Method Detail

emitArrayOffset

public java.lang.String emitArrayOffset(Assembler asm,
                                        java.lang.String indexReg)
Overrides:
emitArrayOffset in class Type

rValue

public java.lang.String rValue(Assembler asm,
                               java.lang.String dest,
                               int off,
                               java.lang.String base)
Overrides:
rValue in class Type

rValueGlobal

public java.lang.String rValueGlobal(Assembler asm,
                                     java.lang.String dest,
                                     java.lang.String label)
Overrides:
rValueGlobal in class Type