diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-23 09:43:52 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-23 09:43:52 +0000 |
commit | 4a4627fb0d770269f876c711b642b7f7275b22d2 (patch) | |
tree | bf6fc088df929e6f1fadf9b6ee6eb16a81ae2632 /vm_insnhelper.c | |
parent | a64801c1e95e127ad47de1d6d8fdb3f3390a9687 (diff) |
move "state" to rb_vm_tag.
* vm_core.h (rb_thread_t::tag_state): move to "rb_vm_tag::state".
Lifetime of "state" should be same as current tag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index b0e565c83e..2370545acb 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1029,16 +1029,16 @@ vm_throw_continue(rb_thread_t *th, VALUE err) /* continue throw */ if (FIXNUM_P(err)) { - th->tag_state = FIX2INT(err); + th->tag->state = FIX2INT(err); } else if (SYMBOL_P(err)) { - th->tag_state = TAG_THROW; + th->tag->state = TAG_THROW; } else if (THROW_DATA_P(err)) { - th->tag_state = THROW_DATA_STATE((struct vm_throw_data *)err); + th->tag->state = THROW_DATA_STATE((struct vm_throw_data *)err); } else { - th->tag_state = TAG_RAISE; + th->tag->state = TAG_RAISE; } return err; } @@ -1177,7 +1177,7 @@ vm_throw_start(rb_thread_t *const th, rb_control_frame_t *const reg_cfp, enum ru rb_bug("isns(throw): unsupport throw type"); } - th->tag_state = state; + th->tag->state = state; return (VALUE)THROW_DATA_NEW(throwobj, escape_cfp, state); } |