APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.code

public Class Stub

extends VMObject
Class Inheritance
Known Direct Subclasses
sun.jvm.hotspot.interpreter.InterpreterCodelet
Imports
java.io.*, sun.jvm.hotspot.code.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.runtime.*, sun.jvm.hotspot.utilities.*

A port of the VM's Stub mechanism. Note that the separation of Stub and StubInterface (done in the VM to save space) is not currently necessary in these APIs and has been flattened so that class Stub has virtual functions overridden by concrete subclasses.

Field Summary

Inherited from sun.jvm.hotspot.runtime.VMObject:
addr

Constructor Summary

AccessConstructor and Description
public
Stub(Address addr)

Method Summary

Modifier and TypeMethod and Description
public Address
codeBegin()

Points to the first byte of the code

public Address
codeEnd()

Points to the first byte after the code

public Address
getAddress()

Overrides sun.jvm.hotspot.runtime.VMObject.getAddress.

Needed to add this for iteration

public long
getSize()

Must return the size provided by initialize

public void
printOn(PrintStream tty)

Prints some information about the stub

public void
verify()

Verifies the Stub

Inherited from sun.jvm.hotspot.runtime.VMObject:
equalshashCodetoString

Constructor Detail

Stubback to summary
public Stub(Address addr)

Method Detail

codeBeginback to summary
public Address codeBegin()

Points to the first byte of the code

codeEndback to summary
public Address codeEnd()

Points to the first byte after the code

getAddressback to summary
public Address getAddress()

Overrides sun.jvm.hotspot.runtime.VMObject.getAddress.

Needed to add this for iteration

getSizeback to summary
public long getSize()

Must return the size provided by initialize

printOnback to summary
public void printOn(PrintStream tty)

Prints some information about the stub

verifyback to summary
public void verify()

Verifies the Stub