mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
a3861dcb53
Inline L_DEF_METHOD body into OP_TDEF and OP_SDEF, making `tc` (target class) a block-local variable in each case. This eliminates the cross-case goto and frees one register at function scope. `ch` (catch handler) cannot be scoped down because UNWIND_ENSURE sets it before goto L_CATCH_TAGGED_BREAK where ch->target is consumed (cross-goto flow requires function-scope visibility). Co-authored-by: Claude <noreply@anthropic.com>