Record Class JitPassage.ErrBranch
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.JitPassage.ErrBranch
- Record Components:
from- seefrom()message- the error message for the exception
- All Implemented Interfaces:
JitPassage.Branch, JitPassage.PBranch, JitPassage.SBranch
- Enclosing class:
JitPassage
public static record JitPassage.ErrBranch(PcodeOp from, String message)
extends Record
implements JitPassage.SBranch, JitPassage.PBranch
A "branch" representing an error
When execution encounters this branch, the run method
throws an exception. This branch is used to encode error conditions that may not actually be
encountered at run time. Some cases are:
- An instruction decode error — synthesized as a
JitPassage.DecodeErrorPcodeOp - An
unimplementedinstruction - A
callto an undefined userop
The decoder and translator may encounter such an error, but unless execution actually reaches the error, the emulator need not crash. Thus, we note the error and generate code that will actually throw it in the translation, only if it's actually encountered.
Note that the OpGen for the specific p-code op generating the error will decide what
exception type to throw.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JitPassage.Branch
describeTo, isFall
-
Constructor Details
-
ErrBranch
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
from
Returns the value of thefromrecord component.- Specified by:
fromin interfaceJitPassage.Branch- Returns:
- the value of the
fromrecord component
-
message
-