diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-28 06:09:06 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-28 06:09:06 +0000 |
commit | 42b9397bd3fb92299c92fa8e9d491867de6f0c56 (patch) | |
tree | ca82878bbdd5d4bedb58bf7102b3513eb2d53f8d /vm_insnhelper.c | |
parent | e4741116c27a0a9edf7370860510514ddd9eb572 (diff) | |
download | ruby-42b9397bd3fb92299c92fa8e9d491867de6f0c56.tar.gz |
move fields to ec.
* vm_core.h (rb_thread_t): move root_lep, root_svar and ensure_list
to rb_execution_context_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index b678b02884..3a8abb345a 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -369,11 +369,11 @@ lep_svar(rb_thread_t *th, const VALUE *lep) { VALUE svar; - if (lep && (th == NULL || th->root_lep != lep)) { + if (lep && (th == NULL || th->ec.root_lep != lep)) { svar = lep[VM_ENV_DATA_INDEX_ME_CREF]; } else { - svar = th->root_svar; + svar = th->ec.root_svar; } VM_ASSERT(svar == Qfalse || vm_svar_valid_p(svar)); @@ -386,11 +386,11 @@ lep_svar_write(rb_thread_t *th, const VALUE *lep, const struct vm_svar *svar) { VM_ASSERT(vm_svar_valid_p((VALUE)svar)); - if (lep && (th == NULL || th->root_lep != lep)) { + if (lep && (th == NULL || th->ec.root_lep != lep)) { vm_env_write(lep, VM_ENV_DATA_INDEX_ME_CREF, (VALUE)svar); } else { - RB_OBJ_WRITE(th->self, &th->root_svar, svar); + RB_OBJ_WRITE(th->self, &th->ec.root_svar, svar); } } |