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

* insns.def (opt_send_simple): move the location of

`opt_send_simple' to the place near `send' definition.
  (to take care about icache locality).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2012-10-18 09:44:19 +00:00
parent d0ead20888
commit 7e8f558aea
2 changed files with 21 additions and 15 deletions

View file

@ -1,3 +1,9 @@
Thu Oct 18 18:42:35 2012 Koichi Sasada <ko1@atdot.net>
* insns.def (opt_send_simple): move the location of
`opt_send_simple' to the place near `send' definition.
(to take care about icache locality).
Thu Oct 18 18:29:25 2012 Koichi Sasada <ko1@atdot.net>
* insns.def (send): remove unused condition.

View file

@ -968,6 +968,21 @@ send
CALL_METHOD(ci);
}
/**
@c optimize
@e Invoke method without block, splat
@j Invoke method without block, splat
*/
DEFINE_INSN
opt_send_simple
(CALL_INFO ci)
(...)
(VALUE val) // inc += -ci->orig_argc;
{
vm_search_method(ci, ci->recv = TOPN(ci->argc));
CALL_METHOD(ci);
}
/**
@c method/iterator
@e super(args) # args.size => num
@ -2045,21 +2060,6 @@ opt_regexpmatch2
}
}
/**
@c optimize
@e Invoke method without block, splat
@j Invoke method without block, splat
*/
DEFINE_INSN
opt_send_simple
(CALL_INFO ci)
(...)
(VALUE val) // inc += -ci->orig_argc;
{
vm_search_method(ci, ci->recv = TOPN(ci->argc));
CALL_METHOD(ci);
}
/**
@c optimize
@e call native compiled method