diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-28 19:13:26 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-28 19:13:26 +0000 |
commit | e06698d257cf03e3c42f87029821c077f5f6f0e6 (patch) | |
tree | 62f7990169aa2b7f2b5e54a909eb0aec0ee7e2f8 /vm_dump.c | |
parent | c3ceb1bff26a0dc59d7b93647e3a58c57e7c0440 (diff) | |
download | bundler-e06698d257cf03e3c42f87029821c077f5f6f0e6.tar.gz |
* 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_dump.c')
-rw-r--r-- | vm_dump.c | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -182,14 +182,12 @@ rb_vmdebug_stack_dump_raw_current(void) } void -rb_vmdebug_env_dump_raw(rb_env_t *env, const VALUE *ep) +rb_vmdebug_env_dump_raw(const rb_env_t *env, const VALUE *ep) { - int i; + unsigned int i; fprintf(stderr, "-- env --------------------\n"); while (env) { - VALUE prev_envval; - fprintf(stderr, "--\n"); for (i = 0; i < env->env_size; i++) { fprintf(stderr, "%04d: %08"PRIxVALUE" (%p)", i, env->env[i], (void *)&env->env[i]); @@ -197,12 +195,7 @@ rb_vmdebug_env_dump_raw(rb_env_t *env, const VALUE *ep) fprintf(stderr, "\n"); } - if ((prev_envval = rb_vm_env_prev_envval(env)) != Qfalse) { - GetEnvPtr(prev_envval, env); - } - else { - env = NULL; - } + env = rb_vm_env_prev_env(env); } fprintf(stderr, "---------------------------\n"); } @@ -210,14 +203,14 @@ rb_vmdebug_env_dump_raw(rb_env_t *env, const VALUE *ep) void rb_vmdebug_proc_dump_raw(rb_proc_t *proc) { - rb_env_t *env; + const rb_env_t *env; char *selfstr; VALUE val = rb_inspect(vm_block_self(&proc->block)); selfstr = StringValueCStr(val); fprintf(stderr, "-- proc -------------------\n"); fprintf(stderr, "self: %s\n", selfstr); - GetEnvPtr(VM_ENV_ENVVAL(vm_block_ep(&proc->block)), env); + env = VM_ENV_ENVVAL_PTR(vm_block_ep(&proc->block)); rb_vmdebug_env_dump_raw(env, vm_block_ep(&proc->block)); } |