aboutsummaryrefslogtreecommitdiffstats
path: root/vm_dump.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-14 16:23:17 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-14 16:23:17 +0000
commitdadae7eeaaa428879aef70c8057dfda74183b8a4 (patch)
treeff3adfddbfac7be95ed9e90d0cc029d13f4eb175 /vm_dump.c
parentfd1f26990bf952457f6d23c1a3f541bc8a125d67 (diff)
downloadruby-dadae7eeaaa428879aef70c8057dfda74183b8a4.tar.gz
* vm.c: refactoring Proc/Env related code.
* vm_core.h: remove blockprocval field from rb_proc_t and rb_binding_t. Instead of this field, mark given block in Proc at rb_env_t::env. * vm.c (vm_make_env_each): make an Env object with this layout. And also simplify parameters. * proc.c: catch up this fix. * vm_core.h: remove rb_env_t::local_size because it is not used. * vm_dump.c (rb_vmdebug_env_dump_raw): catch up this fix. * vm_core.h (rb_vm_make_env_object): remove rb_vm_make_env_object() because it is only refered from vm.c. * vm_eval.c (eval_string_with_cref): catch up this fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/vm_dump.c b/vm_dump.c
index edd8176f96..0408992f6d 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -187,10 +187,8 @@ rb_vmdebug_env_dump_raw(rb_env_t *env, VALUE *ep)
while (env) {
fprintf(stderr, "--\n");
for (i = 0; i < env->env_size; i++) {
- fprintf(stderr, "%04d: %08"PRIxVALUE" (%p)", -env->local_size + i, env->env[i],
- (void *)&env->env[i]);
- if (&env->env[i] == ep)
- fprintf(stderr, " <- ep");
+ fprintf(stderr, "%04d: %08"PRIxVALUE" (%p)", i, env->env[i], (void *)&env->env[i]);
+ if (&env->env[i] == ep) fprintf(stderr, " <- ep");
fprintf(stderr, "\n");
}