• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

Revisione4f32ad9ad96fddb5613178a848fafe5c869f7c9 (tree)
Time2015-08-10 15:19:32
AuthorYukihiro "Matz" Matsumoto <matz@ruby...>
CommiterYukihiro "Matz" Matsumoto

Log Message

codegen: don't need to genop(); just update s->iseq directly

Change Summary

Incremental Difference

--- a/mrbgems/mruby-compiler/core/codegen.c
+++ b/mrbgems/mruby-compiler/core/codegen.c
@@ -191,7 +191,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val)
191191 if (GETARG_A(i) == GETARG_A(i0)) {
192192 /* skip overriden OP_MOVE */
193193 s->pc--;
194- return genop_peep(s, i, val);
194+ s->iseq[s->pc] = i;
195195 }
196196 if (GETARG_B(i) == GETARG_A(i0) && GETARG_A(i) == GETARG_B(i0)) {
197197 /* skip swapping OP_MOVE */