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

public Class Location

extends Object
Class Inheritance
Imports
java.io.*, java.util.*, sun.jvm.hotspot.runtime.*, sun.jvm.hotspot.types.*, sun.jvm.hotspot.utilities.*, .Observable, .Observer

A Location describes a concrete machine variable location (such as integer or floating point register or a stack-held variable). Used when generating debug-information for nmethods.

Encoding:

bits:
Type:   [3..0]
Where:  [4]
Offset: [31..5]

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private int
private static int
private static int
private static int
private static int

Constructor Summary

AccessConstructor and Description
pack-priv
Location(Location.Where where, Location.Type type, int offset)

Create a bit-packed Location

public
Location(DebugInfoReadStream stream)

Serialization of debugging information

Method Summary

Modifier and TypeMethod and Description
public short
public int
public int
public Location.Type
public Location.Where
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
private static void
public boolean
public boolean
public boolean
public void
private void
setOffset(int offset)

private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

OFFSET_MASKback to summary
private static int OFFSET_MASK
OFFSET_SHIFTback to summary
private static int OFFSET_SHIFT
TYPE_ADDRback to summary
private static int TYPE_ADDR
TYPE_DBLback to summary
private static int TYPE_DBL
TYPE_FLOAT_IN_DBLback to summary
private static int TYPE_FLOAT_IN_DBL
TYPE_INT_IN_LONGback to summary
private static int TYPE_INT_IN_LONG
TYPE_INVALIDback to summary
private static int TYPE_INVALID
TYPE_LNGback to summary
private static int TYPE_LNG
TYPE_MASKback to summary
private static int TYPE_MASK
TYPE_NARROWOOPback to summary
private static int TYPE_NARROWOOP
TYPE_NORMALback to summary
private static int TYPE_NORMAL
TYPE_OOPback to summary
private static int TYPE_OOP
TYPE_SHIFTback to summary
private static int TYPE_SHIFT
valueback to summary
private int value
WHERE_IN_REGISTERback to summary
private static int WHERE_IN_REGISTER
WHERE_MASKback to summary
private static int WHERE_MASK
WHERE_ON_STACKback to summary
private static int WHERE_ON_STACK
WHERE_SHIFTback to summary
private static int WHERE_SHIFT

Constructor Detail

Locationback to summary
pack-priv Location(Location.Where where, Location.Type type, int offset)

Create a bit-packed Location

Locationback to summary
public Location(DebugInfoReadStream stream)

Serialization of debugging information

Method Detail

getOffsetback to summary
public short getOffset()
getRegisterNumberback to summary
public int getRegisterNumber()
getStackOffsetback to summary
public int getStackOffset()
getTypeback to summary
public Location.Type getType()
getWhereback to summary
public Location.Where getWhere()
holdsAddrback to summary
public boolean holdsAddr()
holdsDoubleback to summary
public boolean holdsDouble()
holdsFloatback to summary
public boolean holdsFloat()
holdsIntback to summary
public boolean holdsInt()
holdsLongback to summary
public boolean holdsLong()
holdsNarrowOopback to summary
public boolean holdsNarrowOop()
holdsOopback to summary
public boolean holdsOop()
initializeback to summary
private static void initialize(TypeDataBase db)
isIllegalback to summary
public boolean isIllegal()
isRegisterback to summary
public boolean isRegister()
isStackback to summary
public boolean isStack()
printOnback to summary
public void printOn(PrintStream tty)
setOffsetback to summary
private void setOffset(int offset)
setTypeback to summary
private void setType(Location.Type type)
setWhereback to summary
private void setWhere(Location.Where where)
sun.jvm.hotspot.code back to summary

public Class Location.Type

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Location.Type
ADDR

JSR return address

public static final Location.Type
DBL

Double held in one register

public static final Location.Type
FLOAT_IN_DBL

Float held in double register

public static final Location.Type
INT_IN_LONG

Long held in one register

public static final Location.Type
INVALID

Invalid location

public static final Location.Type
LNG

Long held in one register

public static final Location.Type
NARROWOOP

NarrowOop (please GC me!)

public static final Location.Type
NORMAL

Ints, floats, double halves

public static final Location.Type
OOP

Oop (please GC me!)

private String

Constructor Summary

AccessConstructor and Description
private
Type(String value)

Method Summary

Modifier and TypeMethod and Description
public int
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ADDRback to summary
public static final Location.Type ADDR

JSR return address

DBLback to summary
public static final Location.Type DBL

Double held in one register

FLOAT_IN_DBLback to summary
public static final Location.Type FLOAT_IN_DBL

Float held in double register

INT_IN_LONGback to summary
public static final Location.Type INT_IN_LONG

Long held in one register

INVALIDback to summary
public static final Location.Type INVALID

Invalid location

LNGback to summary
public static final Location.Type LNG

Long held in one register

NARROWOOPback to summary
public static final Location.Type NARROWOOP

NarrowOop (please GC me!)

NORMALback to summary
public static final Location.Type NORMAL

Ints, floats, double halves

OOPback to summary
public static final Location.Type OOP

Oop (please GC me!)

valueback to summary
private String value

Constructor Detail

Typeback to summary
private Type(String value)

Method Detail

getValueback to summary
public int getValue()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

sun.jvm.hotspot.code back to summary

public Class Location.Where

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Location.Where
public static final Location.Where
private String

Constructor Summary

AccessConstructor and Description
private
Where(String value)

Method Summary

Modifier and TypeMethod and Description
public int
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

IN_REGISTERback to summary
public static final Location.Where IN_REGISTER
ON_STACKback to summary
public static final Location.Where ON_STACK
valueback to summary
private String value

Constructor Detail

Whereback to summary
private Where(String value)

Method Detail

getValueback to summary
public int getValue()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.