aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 09:43:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 09:43:52 +0000
commit5659d418d91d9757e0c2dc4b95b1f850575cfb5e (patch)
treebf6fc088df929e6f1fadf9b6ee6eb16a81ae2632 /vm_insnhelper.c
parent8a203c8d44d79df4a394012bf71afd6b3ef40577 (diff)
downloadruby-5659d418d91d9757e0c2dc4b95b1f850575cfb5e.tar.gz
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.c10
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);
}