diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-26 07:56:44 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-26 07:56:44 +0000 |
commit | 1939d097e650a60557eafbd89a6684f4626e0ad5 (patch) | |
tree | 62a3065ee36528808c6dd58a23011df911fc3820 /vm_insnhelper.c | |
parent | 043523adc5275b640f5bb33bd05513194dabf61d (diff) | |
download | ruby-1939d097e650a60557eafbd89a6684f4626e0ad5.tar.gz |
move several fields from rb_thread_t to rb_execution_context_t.
* vm_core.h (rb_thread_t): move several fields which are copied at cont.c
to rb_execution_context_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 2370545acb..35684e6ed1 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -35,7 +35,7 @@ static void threadptr_stack_overflow(rb_thread_t *th, int setup) { VALUE mesg = th->vm->special_exceptions[ruby_error_sysstack]; - th->raised_flag = 0; + th->ec.raised_flag = 0; if (setup) { VALUE at = rb_threadptr_backtrace_object(th); mesg = ruby_vm_special_exception_copy(mesg); @@ -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->ec.tag->state = FIX2INT(err); } else if (SYMBOL_P(err)) { - th->tag->state = TAG_THROW; + th->ec.tag->state = TAG_THROW; } else if (THROW_DATA_P(err)) { - th->tag->state = THROW_DATA_STATE((struct vm_throw_data *)err); + th->ec.tag->state = THROW_DATA_STATE((struct vm_throw_data *)err); } else { - th->tag->state = TAG_RAISE; + th->ec.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->ec.tag->state = state; return (VALUE)THROW_DATA_NEW(throwobj, escape_cfp, state); } |