diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 06:29:48 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 06:29:48 +0000 |
commit | cd8995d213fa4c459829e7d5fd412fb6834e4149 (patch) | |
tree | a674d5c63e71b3e1d0544c31786f1f0c52272d30 /vm_insnhelper.c | |
parent | d6fbfcf490b5465691f940e7fa5a9931c456ad47 (diff) | |
download | ruby-cd8995d213fa4c459829e7d5fd412fb6834e4149.tar.gz ruby-cd8995d213fa4c459829e7d5fd412fb6834e4149.tar.xz ruby-cd8995d213fa4c459829e7d5fd412fb6834e4149.zip |
* compile.c (iseq_set_exception_table, NODE_WHILE, NODE_NEXT): remove
special handling that decrements sp in CATCH_TYPE_NEXT for NODE_WHILE.
* vm.c (vm_eval_body), vm_insnhelper.c (vm_throw): remove unused code.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index bf9ded131..6fb867a9b 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1204,12 +1204,7 @@ vm_throw(rb_thread_t *th, rb_control_frame_t *reg_cfp, VALUE *pt = 0; int i; if (flag != 0) { - if (throw_state & 0x4000) { - pt = (void *)1; - } - else { - pt = 0; - } + pt = (void *) 1; } else { if (state == TAG_BREAK) { |