diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-07 05:01:51 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-07 05:01:51 +0000 |
commit | 7bb3e9c4b716766350792ed01035c5c63321a859 (patch) | |
tree | 36fa1aabc7aab6f75975572a25f04dfba52bddd4 /vm_insnhelper.c | |
parent | 39a9b012938966870caa61bcc493fd9084c85915 (diff) | |
download | ruby-7bb3e9c4b716766350792ed01035c5c63321a859.tar.gz |
move `rb_thread_t::method_missing_reason` to ec.
* vm_core.h (rb_thread_t): move method_missing_reason to
rb_execution_context_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 1cb1e5664f..0cc43af303 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2037,7 +2037,7 @@ vm_call_opt_send(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, struct } TOPN(i) = rb_str_intern(sym); ci->mid = idMethodMissing; - rb_ec_thread_ptr(ec)->method_missing_reason = cc->aux.method_missing_reason = ci_missing_reason(ci); + ec->method_missing_reason = cc->aux.method_missing_reason = ci_missing_reason(ci); } else { /* shift arguments */ @@ -2104,7 +2104,7 @@ vm_call_method_missing(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, argv[0] = ID2SYM(orig_ci->mid); INC_SP(1); - rb_ec_thread_ptr(ec)->method_missing_reason = orig_cc->aux.method_missing_reason; + ec->method_missing_reason = orig_cc->aux.method_missing_reason; return vm_call_method(ec, reg_cfp, calling, ci, cc); } |