|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--scale.backend.Displacement
|
+--scale.backend.SymbolDisplacement
This class represents a displacement field in an instruction when the displacement refers to an offset that must be relocated by the loader.
$Id: SymbolDisplacement.java,v 1.6 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.
| Constructor Summary | |
SymbolDisplacement(java.lang.String name,
int handle)
Create a displacement that the loader can relocate. |
|
| 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. |
int |
getDisplacement()
Return the displacement. |
java.lang.String |
getName()
Return the symbolic name. |
int |
getSequence()
Return the relocation sequence number. |
boolean |
isNumeric()
Return true if the displacement is zero. |
boolean |
isZero()
Return true if the displacement is zero. |
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. |
static void |
reset()
Reset the relocation information for each generated assembly language file. |
java.lang.String |
toString()
|
Displacement |
unique()
Return a unique displacement. |
static int |
used()
Return the relocation sequence number. |
| Methods inherited from class scale.backend.Displacement |
adjust, remap |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SymbolDisplacement(java.lang.String name,
int handle)
handle - is information associated with the displacement for use
by the code generator.| Method Detail |
protected void finalize()
throws java.lang.Throwable
finalize in class Displacementjava.lang.Throwable - [needs description]public static int number()
public static int used()
public Displacement unique()
unique in class DisplacementSymbolDisplacementpublic boolean isZero()
isZero in class Displacementpublic static void reset()
public OffsetDisplacement offset(int offset)
offset in class Displacementpublic int getSequence()
public java.lang.String getName()
public boolean isNumeric()
isNumeric in class Displacementpublic int getDisplacement()
getDisplacement 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 | ||||||||