mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.c, proc.c: avoid unnecessary `rb_vm_rewrite_ep_in_errinfo'
calls. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c1dbeada5b
commit
049ace5888
3 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Nov 3 18:15:24 2012 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||
|
||||
* vm.c, proc.c: avoid unnecessary `rb_vm_rewrite_ep_in_errinfo'
|
||||
calls.
|
||||
|
||||
Sat Nov 3 17:53:43 2012 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* bin/testrb: Use only Test::Unit::AutoRunner in test-unit gem
|
||||
|
|
1
proc.c
1
proc.c
|
@ -421,7 +421,6 @@ proc_new(VALUE klass, int is_lambda)
|
|||
}
|
||||
|
||||
procval = rb_vm_make_proc(th, block, klass);
|
||||
rb_vm_rewrite_ep_in_errinfo(th, cfp);
|
||||
|
||||
if (is_lambda) {
|
||||
rb_proc_t *proc;
|
||||
|
|
4
vm.c
4
vm.c
|
@ -435,9 +435,6 @@ vm_make_env_each(rb_thread_t * const th, rb_control_frame_t * const cfp,
|
|||
/* TODO */
|
||||
env->block.iseq = 0;
|
||||
}
|
||||
else {
|
||||
rb_vm_rewrite_ep_in_errinfo(th, cfp);
|
||||
}
|
||||
return envval;
|
||||
}
|
||||
|
||||
|
@ -486,6 +483,7 @@ rb_vm_make_env_object(rb_thread_t * th, rb_control_frame_t *cfp)
|
|||
VALUE envval;
|
||||
|
||||
envval = vm_make_env_each(th, cfp, cfp->ep, VM_CF_LEP(cfp));
|
||||
rb_vm_rewrite_ep_in_errinfo(th, th->cfp);
|
||||
|
||||
if (PROCDEBUG) {
|
||||
check_env_value(envval);
|
||||
|
|
Loading…
Reference in a new issue