1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2014-10-23 01:50:45 +00:00
parent a8ed25ea12
commit e1062b23b4
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Thu Oct 23 10:47:16 2014 Eric Wong <e@80x24.org>
* insns.def (getlocal,setlocal): add comment to def/opt_operand.def
Thu Oct 23 10:22:41 2014 Eric Wong <e@80x24.org> Thu Oct 23 10:22:41 2014 Eric Wong <e@80x24.org>
* test/ruby/test_process.rb (test_deadlock_by_signal_at_forking): * test/ruby/test_process.rb (test_deadlock_by_signal_at_forking):

View file

@ -60,6 +60,7 @@ getlocal
int i, lev = (int)level; int i, lev = (int)level;
VALUE *ep = GET_EP(); VALUE *ep = GET_EP();
/* optimized insns generated for level == (0|1) in defs/opt_operand.def */
for (i = 0; i < lev; i++) { for (i = 0; i < lev; i++) {
ep = GET_PREV_EP(ep); ep = GET_PREV_EP(ep);
} }
@ -82,6 +83,7 @@ setlocal
int i, lev = (int)level; int i, lev = (int)level;
VALUE *ep = GET_EP(); VALUE *ep = GET_EP();
/* optimized insns generated for level == (0|1) in defs/opt_operand.def */
for (i = 0; i < lev; i++) { for (i = 0; i < lev; i++) {
ep = GET_PREV_EP(ep); ep = GET_PREV_EP(ep);
} }