ruby-changes:36025
From: normal <ko1@a...>
Date: Thu, 23 Oct 2014 10:50:51 +0900 (JST)
Subject: [ruby-changes:36025] normal:r48106 (trunk): insns.def: add comments to def/opt_operand.def
normal 2014-10-23 10:50:45 +0900 (Thu, 23 Oct 2014) New Revision: 48106 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48106 Log: insns.def: add comments to def/opt_operand.def * insns.def (getlocal,setlocal): add comment to def/opt_operand.def I spent some time thinking about the same optimization before realizing it was already done. Modified files: trunk/ChangeLog trunk/insns.def Index: insns.def =================================================================== --- insns.def (revision 48105) +++ insns.def (revision 48106) @@ -60,6 +60,7 @@ getlocal https://github.com/ruby/ruby/blob/trunk/insns.def#L60 int i, lev = (int)level; VALUE *ep = GET_EP(); + /* optimized insns generated for level == (0|1) in defs/opt_operand.def */ for (i = 0; i < lev; i++) { ep = GET_PREV_EP(ep); } @@ -82,6 +83,7 @@ setlocal https://github.com/ruby/ruby/blob/trunk/insns.def#L83 int i, lev = (int)level; VALUE *ep = GET_EP(); + /* optimized insns generated for level == (0|1) in defs/opt_operand.def */ for (i = 0; i < lev; i++) { ep = GET_PREV_EP(ep); } Index: ChangeLog =================================================================== --- ChangeLog (revision 48105) +++ ChangeLog (revision 48106) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Oct 23 10:47:16 2014 Eric Wong <e@8...> + + * insns.def (getlocal,setlocal): add comment to def/opt_operand.def + Thu Oct 23 10:22:41 2014 Eric Wong <e@8...> * test/ruby/test_process.rb (test_deadlock_by_signal_at_forking): -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/