|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--scale.backend.Displacement
|
+--scale.backend.StackDisplacement
This class represents a displacement field in an instruction when the displacement refers to an offset on the stack.
$Id: StackDisplacement.java,v 1.5 2002/01/03 21:41:34 burrill Exp $
Copyright 2002 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
A separate class is used for this so that instanceof may be used to distinguish between a normal displacement and a stack displacement. Also, stack displacements must often be changed after the code for a routine is generated to reflect additional stack entries for spills, etc.
| Constructor Summary | |
StackDisplacement(int offset)
|
|
| Method Summary | |
java.lang.String |
assembler(Assembler asm)
Generate a String representation that can be used by the assembly code generater. |
protected void |
finalize()
Keep the count of instances up-to-date. |
static int |
number()
Return the current number of instances of this class. |
OffsetDisplacement |
offset(int offset)
Obtain a Displacement with an offset from this Displacement. |
java.lang.String |
toString()
|
Displacement |
unique()
Return a unique displacement. |
| Methods inherited from class scale.backend.Displacement |
adjust, getDisplacement, isNumeric, isZero, remap |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StackDisplacement(int offset)
| Method Detail |
protected void finalize()
throws java.lang.Throwable
finalize in class Displacementjava.lang.Throwable - [needs description]public static int number()
public Displacement unique()
unique in class DisplacementSymbolDisplacementpublic OffsetDisplacement offset(int offset)
offset in class Displacementpublic java.lang.String assembler(Assembler asm)
assembler in class Displacementpublic java.lang.String toString()
toString in class Displacement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||