refactor: remove single-use forwarding helpers

This commit is contained in:
morluto
2026-10-10 00:49:14 +08:00
parent 070339af50
commit 4144e454f3
4 changed files with 5 additions and 35 deletions
@@ -4,11 +4,6 @@ import type {
ParsedInstruction,
} from "./ManagedMemberInspectorCore.js";
const opcode = (
code: number,
): { readonly name: string; readonly operand: string } | undefined =>
OPCODES.get(code);
const PREFIX_OPCODES = new Set([
"unaligned.",
"volatile.",
@@ -403,7 +398,7 @@ export const decodeInstructions = (
const first = il.readUInt8(offset);
offset += 1;
const code = first === 0xfe ? 0xfe00 + il.readUInt8(offset++) : first;
const descriptor = opcode(code);
const descriptor = OPCODES.get(code);
if (descriptor === undefined) {
issue = `Unsupported CIL opcode 0x${code.toString(16)} at IL offset ${String(start)}`;
break;