Package jnr.a64asm
Enum ERROR_CODE
- All Implemented Interfaces:
Serializable
,Comparable<ERROR_CODE>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCount of error codes by AsmJit.Illegal addressing used (unencodable).Illegal instruction.Short jump instruction used, but displacement is out of bounds.Memory allocation error (@c ASMJIT_MALLOC returned @c NULL).Virtual memory allocation error (@c VirtualMemory returned @c NULL).No error (success).Unknown instruction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
intValue()
static ERROR_CODE
Returns the enum constant of this type with the specified name.static ERROR_CODE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR_NONE
No error (success). -
ERROR_NO_HEAP_MEMORY
Memory allocation error (@c ASMJIT_MALLOC returned @c NULL). -
ERROR_NO_VIRTUAL_MEMORY
Virtual memory allocation error (@c VirtualMemory returned @c NULL). -
ERROR_UNKNOWN_INSTRUCTION
Unknown instruction. This happens only if instruction code is out of bounds. Shouldn't happen. -
ERROR_ILLEGAL_INSTRUCTION
Illegal instruction. Usually generated by AsmJit::AssemblerCore class when emitting instruction opcode. If this error is generated the target buffer is not affected by this invalid instruction. In debug mode you get assertion failure instead. -
ERROR_ILLEGAL_ADDRESING
Illegal addressing used (unencodable). -
ERROR_ILLEGAL_SHORT_JUMP
Short jump instruction used, but displacement is out of bounds. -
_ERROR_COUNT
Count of error codes by AsmJit. Can grow in future.
-
-
Constructor Details
-
ERROR_CODE
private ERROR_CODE()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
intValue
public final int intValue()
-