* vm_insnhelper.c (vm_call_iseq_setup_normal): setup sp first
for performance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cb223b7533
commit
ad45aea456
@ -1,3 +1,8 @@
|
|||||||
|
Sun Oct 11 06:19:49 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* vm_insnhelper.c (vm_call_iseq_setup_normal): setup sp first
|
||||||
|
for performance.
|
||||||
|
|
||||||
Sun Oct 11 05:29:51 2015 Koichi Sasada <ko1@atdot.net>
|
Sun Oct 11 05:29:51 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm.c (invoke_block_from_c): split this function into several
|
* vm.c (invoke_block_from_c): split this function into several
|
||||||
|
@ -1387,14 +1387,13 @@ vm_call_iseq_setup_normal(rb_thread_t *th, rb_control_frame_t *cfp, struct rb_ca
|
|||||||
const rb_iseq_t *iseq = def_iseq_ptr(me->def);
|
const rb_iseq_t *iseq = def_iseq_ptr(me->def);
|
||||||
VALUE *argv = cfp->sp - calling->argc;
|
VALUE *argv = cfp->sp - calling->argc;
|
||||||
VALUE *sp = argv + iseq->body->param.size;
|
VALUE *sp = argv + iseq->body->param.size;
|
||||||
|
cfp->sp = argv - 1 /* recv */;
|
||||||
|
|
||||||
vm_push_frame(th, iseq, VM_FRAME_MAGIC_METHOD, calling->recv,
|
vm_push_frame(th, iseq, VM_FRAME_MAGIC_METHOD, calling->recv,
|
||||||
VM_ENVVAL_BLOCK_PTR(calling->blockptr), (VALUE)me,
|
VM_ENVVAL_BLOCK_PTR(calling->blockptr), (VALUE)me,
|
||||||
iseq->body->iseq_encoded + opt_pc, sp,
|
iseq->body->iseq_encoded + opt_pc, sp,
|
||||||
iseq->body->local_size - iseq->body->param.size,
|
iseq->body->local_size - iseq->body->param.size,
|
||||||
iseq->body->stack_max);
|
iseq->body->stack_max);
|
||||||
|
|
||||||
cfp->sp = argv - 1 /* recv */;
|
|
||||||
return Qundef;
|
return Qundef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user