joeq.Memory
Class HeapAddress

java.lang.Object
  extended by joeq.Memory.Address
      extended by joeq.Memory.HeapAddress
Direct Known Subclasses:
HostedVM.BogusHeapAddress

public class HeapAddress
extends Address

Version:
$Id: HeapAddress.java 1538 2004-03-23 11:48:23Z joewhaley $
Author:
John Whaley

Nested Class Summary
static class HeapAddress.HeapAddressFactory
           
 
Field Summary
static jq_Class _class
           
static jq_StaticField _FACTORY
           
static HeapAddress.HeapAddressFactory FACTORY
           
 
Constructor Summary
HeapAddress()
           
 
Method Summary
static HeapAddress address32(int val)
           
static HeapAddress addressOf(Object o)
           
 Address align(int shift)
           
 Object asObject()
           
 jq_Reference asReferenceType()
           
 void atomicAdd(int v)
           
 void atomicAnd(int v)
           
 int atomicCas4(int before, int after)
           
 long atomicCas8(long before, long after)
           
 void atomicSub(int v)
           
 int difference(Address v)
           
static HeapAddress getNull()
           
 boolean isNull()
           
static int logSize()
           
 Address offset(int offset)
           
static int pageAlign()
           
 Address peek()
           
 byte peek1()
           
 short peek2()
           
 int peek4()
           
 long peek8()
           
 void poke(Address v)
           
 void poke1(byte v)
           
 void poke2(short v)
           
 void poke4(int v)
           
 void poke8(long v)
           
static int size()
           
 String stringRep()
           
 int to32BitValue()
           
 
Methods inherited from class joeq.Memory.Address
alignInt, clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FACTORY

public static HeapAddress.HeapAddressFactory FACTORY

_class

public static final jq_Class _class

_FACTORY

public static final jq_StaticField _FACTORY
Constructor Detail

HeapAddress

public HeapAddress()
Method Detail

size

public static final int size()

logSize

public static final int logSize()

pageAlign

public static final int pageAlign()

getNull

public static final HeapAddress getNull()

addressOf

public static final HeapAddress addressOf(Object o)

address32

public static final HeapAddress address32(int val)

asObject

public Object asObject()

asReferenceType

public jq_Reference asReferenceType()

atomicAdd

public void atomicAdd(int v)

atomicSub

public void atomicSub(int v)

atomicAnd

public void atomicAnd(int v)

atomicCas4

public int atomicCas4(int before,
                      int after)

atomicCas8

public long atomicCas8(long before,
                       long after)

peek

public Address peek()
Specified by:
peek in class Address

peek1

public byte peek1()
Specified by:
peek1 in class Address

peek2

public short peek2()
Specified by:
peek2 in class Address

peek4

public int peek4()
Specified by:
peek4 in class Address

peek8

public long peek8()
Specified by:
peek8 in class Address

poke

public void poke(Address v)
Specified by:
poke in class Address

poke1

public void poke1(byte v)
Specified by:
poke1 in class Address

poke2

public void poke2(short v)
Specified by:
poke2 in class Address

poke4

public void poke4(int v)
Specified by:
poke4 in class Address

poke8

public void poke8(long v)
Specified by:
poke8 in class Address

offset

public Address offset(int offset)
Specified by:
offset in class Address

align

public Address align(int shift)
Specified by:
align in class Address

difference

public int difference(Address v)
Specified by:
difference in class Address

isNull

public boolean isNull()
Specified by:
isNull in class Address

to32BitValue

public int to32BitValue()
Specified by:
to32BitValue in class Address

stringRep

public String stringRep()
Specified by:
stringRep in class Address


Copyright © 2001-2008 John Whaley. All Rights Reserved.