Enum Class UniqueLayout
- All Implemented Interfaces:
Serializable
,Comparable<UniqueLayout>
,Constable
Offsets for various ranges in the p-code unique space. Offsets are either:
1) Relative to the last temporary allocated statically by the SLEIGH compiler
or a particular language (.sla), OR
2) Absolute within the unique address space.
So the layout of the unique address space looks like:
1) SLEIGH static temporaries
2) Runtime temporaries used by the SLEIGH p-code generator
3) Temporaries used by the PcodeInjectLibrary for p-code snippets
4) Temporaries generated during (decompiler) analysis
The "unique" space is set to 32 bits across all architectures.
The maximum offset is 0xFFFFFFFF.
The offsets and names should match with the parallel decompiler enum in translate.hh
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionlong
getOffset
(SleighLanguage language) Get the starting offset of a named range in the unique address space.static UniqueLayout
Returns the enum constant of this class with the specified name.static UniqueLayout[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SLEIGH_BASE
-
RUNTIME_BOOLEAN_INVERT
-
RUNTIME_RETURN_LOCATION
-
RUNTIME_BITRANGE_EA
-
INJECT
-
ANALYSIS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getOffset
Get the starting offset of a named range in the unique address space. The returned offset is absolute and specific to the given SLEIGH language.- Parameters:
language
- is the given SLEIGH language- Returns:
- the absolute offset
-