From e06698d257cf03e3c42f87029821c077f5f6f0e6 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 28 Jul 2016 19:13:26 +0000 Subject: * 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 --- internal.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index b9fa536140..d92c0fc374 100644 --- a/internal.h +++ b/internal.h @@ -685,15 +685,15 @@ struct RIMemo { }; enum imemo_type { - imemo_none = 0, - imemo_cref = 1, - imemo_svar = 2, + imemo_env = 0, + imemo_cref = 1, + imemo_svar = 2, imemo_throw_data = 3, - imemo_ifunc = 4, - imemo_memo = 5, - imemo_ment = 6, - imemo_iseq = 7, - imemo_mask = 0x07 + imemo_ifunc = 4, + imemo_memo = 5, + imemo_ment = 6, + imemo_iseq = 7, + imemo_mask = 0x07 }; static inline enum imemo_type -- cgit v1.2.3