mrubyを超漢字で動作させる
リビジョン | e4f32ad9ad96fddb5613178a848fafe5c869f7c9 (tree) |
---|---|
日時 | 2015-08-10 15:19:32 |
作者 | Yukihiro "Matz" Matsumoto <matz@ruby...> |
コミッター | Yukihiro "Matz" Matsumoto |
codegen: don't need to genop(); just update s->iseq directly
@@ -191,7 +191,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val) | ||
191 | 191 | if (GETARG_A(i) == GETARG_A(i0)) { |
192 | 192 | /* skip overriden OP_MOVE */ |
193 | 193 | s->pc--; |
194 | - return genop_peep(s, i, val); | |
194 | + s->iseq[s->pc] = i; | |
195 | 195 | } |
196 | 196 | if (GETARG_B(i) == GETARG_A(i0) && GETARG_A(i) == GETARG_B(i0)) { |
197 | 197 | /* skip swapping OP_MOVE */ |