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

public abstract Class MachineDescriptionTwosComplement

extends Object
Class Inheritance
Known Direct Subclasses
sun.jvm.hotspot.debugger.MachineDescriptionAArch64, sun.jvm.hotspot.debugger.MachineDescriptionAMD64, sun.jvm.hotspot.debugger.MachineDescriptionPPC64, sun.jvm.hotspot.debugger.MachineDescriptionRISCV64

Base class for all twos-complement machine descriptions, which handles the cIntegerType{Min,Max}Value methods.

Field Summary

Modifier and TypeField and Description
private static final long[]
signedMaxValues

Handles 1, 2, 4, and 8-byte signed integers

private static final long[]
signedMinValues

Handles 1, 2, 4, and 8-byte signed integers

private static final long[]
unsignedMaxValues

Handles 1, 2, and 4-byte unsigned integers properly, with a bug in the 8-byte unsigned integer's constant

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public long
cIntegerTypeMaxValue(long sizeInBytes, boolean isUnsigned)

public long
cIntegerTypeMinValue(long sizeInBytes, boolean isUnsigned)

public boolean
private long
tableLookup(long sizeInBytes, long[] table)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

signedMaxValuesback to summary
private static final long[] signedMaxValues

Handles 1, 2, 4, and 8-byte signed integers

signedMinValuesback to summary
private static final long[] signedMinValues

Handles 1, 2, 4, and 8-byte signed integers

unsignedMaxValuesback to summary
private static final long[] unsignedMaxValues

Handles 1, 2, and 4-byte unsigned integers properly, with a bug in the 8-byte unsigned integer's constant

Constructor Detail

MachineDescriptionTwosComplementback to summary
public MachineDescriptionTwosComplement()

Method Detail

cIntegerTypeMaxValueback to summary
public long cIntegerTypeMaxValue(long sizeInBytes, boolean isUnsigned)
cIntegerTypeMinValueback to summary
public long cIntegerTypeMinValue(long sizeInBytes, boolean isUnsigned)
isLP64back to summary
public boolean isLP64()
tableLookupback to summary
private long tableLookup(long sizeInBytes, long[] table)