mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c, compile.h : add ADD_CALL_RECEIVER() macro.
* insns.def (send) : use GET_SELF() direct if FCALL. * eval.c (rb_f_send) : check method dispatch type to permit nvoking private method when dispatch type is FCALL/VCALL * insns.def (opt_ltlt) : remove useless statement. * vm.h : remove unused macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
21e39197e6
commit
ed9d4087f6
6 changed files with 49 additions and 17 deletions
|
@ -144,9 +144,15 @@ r_value(VALUE value)
|
|||
#define ADD_SEND(seq, line, id, argc) \
|
||||
ADD_SEND_R(seq, line, id, argc, (VALUE)Qfalse, (VALUE)INT2FIX(0))
|
||||
|
||||
#define ADD_CALL_RECEIVER(seq, line) \
|
||||
ADD_INSN(seq, line, putnil)
|
||||
|
||||
#define ADD_CALL(seq, line, id, argc) \
|
||||
ADD_SEND_R(seq, line, id, argc, (VALUE)Qfalse, (VALUE)INT2FIX(VM_CALL_FCALL_BIT))
|
||||
|
||||
#define ADD_CALL_WITH_BLOCK(seq, line, id, argc, block) \
|
||||
ADD_SEND_R(seq, line, id, argc, block, (VALUE)INT2FIX(VM_CALL_FCALL_BIT))
|
||||
|
||||
#define ADD_SEND_R(seq, line, id, argc, block, flag) \
|
||||
ADD_ELEM(seq, (LINK_ELEMENT *) \
|
||||
new_insn_send(iseq, line, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue