summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-28 19:13:26 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-28 19:13:26 +0000
commite06698d257cf03e3c42f87029821c077f5f6f0e6 (patch)
tree62f7990169aa2b7f2b5e54a909eb0aec0ee7e2f8 /vm_insnhelper.c
parentc3ceb1bff26a0dc59d7b93647e3a58c57e7c0440 (diff)
* vm.c, internal.h: remove RubyVM::Env class and all of env objects
are imemo objects (imemo_env). * NEWS: describe this change. I believe nobody touch these objects because there are no method defined. * vm_core.h: remove the following definitions. * rb_cEnv decl. * GetEnvPtr() because Env is no longer T_DATA object. * vm_core.h (rb_env_t): fix layout for imemo values. * vm_core.h (vm_assert_env): added. * vm_core.h (vm_env_new): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index b425a2a5cc..9b29124709 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -73,7 +73,7 @@ static void
vm_check_frame_detail(VALUE type, int req_block, int req_me, int req_cref, VALUE specval, VALUE cref_or_me)
{
unsigned int magic = (unsigned int)(type & VM_FRAME_MAGIC_MASK);
- enum imemo_type cref_or_me_type = imemo_none;
+ enum imemo_type cref_or_me_type = imemo_env; /* impossible value */
if (RB_TYPE_P(cref_or_me, T_IMEMO)) {
cref_or_me_type = imemo_type(cref_or_me);