summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-28 06:09:06 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-28 06:09:06 +0000
commit957d1ccdf91941e57a62eeb695cf79e1af87876a (patch)
treeca82878bbdd5d4bedb58bf7102b3513eb2d53f8d /vm_insnhelper.c
parent7c7d74365deaa41f3df5d7bb1969b477a3d937f4 (diff)
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.c8
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);
}
}