mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
codegen: don't need to genop(); just update s->iseq directly
This commit is contained in:
@@ -191,7 +191,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val)
|
||||
if (GETARG_A(i) == GETARG_A(i0)) {
|
||||
/* skip overriden OP_MOVE */
|
||||
s->pc--;
|
||||
return genop_peep(s, i, val);
|
||||
s->iseq[s->pc] = i;
|
||||
}
|
||||
if (GETARG_B(i) == GETARG_A(i0) && GETARG_A(i) == GETARG_B(i0)) {
|
||||
/* skip swapping OP_MOVE */
|
||||
|
||||
Reference in New Issue
Block a user