pub enum ValidationErrorKind {
Show 14 variants
UnsupportedVersion,
InvalidProtoReference,
InvalidStringReference,
InvalidConstantReference,
InconsistentInstruction,
InvalidAuxArity,
InvalidAuxPayload,
InvalidJumpTarget,
InvalidRegister,
InvalidLineInfo,
InvalidDebugInfo,
InvalidFeedbackSlot,
InvalidClosureCapture,
InvalidProtoMetadata,
}Expand description
Structural bytecode validation error categories.
Variants§
UnsupportedVersion
The chunk uses a bytecode version outside the active policy.
InvalidProtoReference
A proto id does not refer to an existing proto.
InvalidStringReference
A string id does not refer to the string table or the empty string.
InvalidConstantReference
A constant id does not refer to the proto constant table.
InconsistentInstruction
An instruction’s pre-decoded operand fields do not match its header word.
InvalidAuxArity
An instruction has the wrong static AUX arity for its opcode.
InvalidAuxPayload
An AUX payload references impossible data.
InvalidJumpTarget
A jump target is outside the proto or lands inside an AUX word.
InvalidRegister
A register operand exceeds the proto stack size.
InvalidLineInfo
Line info is malformed for the proto instruction words.
InvalidDebugInfo
Debug info is malformed for the proto.
InvalidFeedbackSlot
Feedback metadata is malformed for the proto.
InvalidClosureCapture
Closure capture instructions do not match the referenced child proto.
InvalidProtoMetadata
Proto metadata is malformed.