mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (iseq_specialized_instruction): check argc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
69c1181a9f
commit
65cb92fca3
2 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Nov 13 15:21:52 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c (iseq_specialized_instruction): check argc.
|
||||
|
||||
Tue Nov 13 14:44:32 2007 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* test/yaml/test_yaml.rb: fixed the failing YAML Struct test
|
||||
|
|
16
compile.c
16
compile.c
|
@ -1482,13 +1482,15 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
|
|||
}
|
||||
}
|
||||
|
||||
if (mid == idSend || mid == id__send ||
|
||||
mid == idSendBang ||
|
||||
mid == id__send__ ) {
|
||||
OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BIT);
|
||||
}
|
||||
if (mid == idSendBang) {
|
||||
OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BANG_BIT);
|
||||
if (argc > 0) {
|
||||
if (mid == idSend || mid == id__send ||
|
||||
mid == idSendBang ||
|
||||
mid == id__send__ ) {
|
||||
OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BIT);
|
||||
}
|
||||
if (mid == idSendBang) {
|
||||
OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BANG_BIT);
|
||||
}
|
||||
}
|
||||
}
|
||||
return COMPILE_OK;
|
||||
|
|
Loading…
Reference in a new issue