aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 08:48:41 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 08:48:41 +0000
commit8a203c8d44d79df4a394012bf71afd6b3ef40577 (patch)
tree4cfcfa161f4e7d11fb293dce52ff59c985934237 /vm_insnhelper.c
parentd480f6889ac7d2a04bf65cbc066a8dc82c603e03 (diff)
downloadruby-8a203c8d44d79df4a394012bf71afd6b3ef40577.tar.gz
rename th->state to th->tag_state.
* vm_core.h (rb_thread_t): rename rb_thread_t::state to tag_state to make it clear. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 9aaf881a2e..b0e565c83e 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1029,17 +1029,16 @@ vm_throw_continue(rb_thread_t *th, VALUE err)
/* continue throw */
if (FIXNUM_P(err)) {
- th->state = FIX2INT(err);
+ th->tag_state = FIX2INT(err);
}
else if (SYMBOL_P(err)) {
- th->state = TAG_THROW;
+ th->tag_state = TAG_THROW;
}
else if (THROW_DATA_P(err)) {
- th->state = THROW_DATA_STATE((struct vm_throw_data *)err);
+ th->tag_state = THROW_DATA_STATE((struct vm_throw_data *)err);
}
else {
- th->state = TAG_RAISE;
- /*th->state = FIX2INT(rb_ivar_get(err, idThrowState));*/
+ th->tag_state = TAG_RAISE;
}
return err;
}
@@ -1178,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->state = state;
+ th->tag_state = state;
return (VALUE)THROW_DATA_NEW(throwobj, escape_cfp, state);
}