diff options
author | iximeow <me@iximeow.net> | 2022-04-21 02:35:38 -0700 |
---|---|---|
committer | iximeow <git@iximeow.net> | 2022-12-03 15:11:09 -0800 |
commit | e1b3633e9595abdd4714a18bae9d5b0aeaed8a80 (patch) | |
tree | 7b8f99118156fa9a4ba35e27bc8d51da50be1a7b /Cargo.toml | |
parent | c15999d4a5afa1e2e3e6d6c227135dfd5cf28780 (diff) |
support a fast path through the decoder for [rex-prefixed]opcode insts
the overwhelming majority of x86 instructions are either a single-byte
opcode or a single-byte opcode with a rex prefix. supporting these
specially means that we don't have to length-check on every byte or
go through the full decode loop while reading the most likely
instructions. this is a significant improvement on typical x86 streams,
but comes at a moderate penalty for crafted x86 instructions.
the penalty is still not very bad, as the fast path is exited in favor
of the full decode loop as soon as we see a non-rex prefix byte; this
adds maybe a dozen instructions to the slow path.
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions