mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling.
VM value stack frame of block contains cref information. (dfp[-1] points CREF) * compile.c, eval_intern.h, eval_method.c, load.c, proc.c, vm_dump.h, vm_core.h: ditto. * include/ruby/ruby.h, gc.c: remove T_VALUES because of above changes. * bootstraptest/test_eval.rb, test_knownbug.rb: move solved test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2e5e857a0b
commit
385f0e8af6
18 changed files with 234 additions and 344 deletions
|
@ -140,7 +140,7 @@ control_frame_dump(rb_thread_t *th, rb_control_frame_t *cfp)
|
|||
void
|
||||
vm_stack_dump_raw(rb_thread_t *th, rb_control_frame_t *cfp)
|
||||
{
|
||||
#if 0
|
||||
#if 1
|
||||
VALUE *sp = cfp->sp, *bp = cfp->bp;
|
||||
VALUE *lfp = cfp->lfp;
|
||||
VALUE *dfp = cfp->dfp;
|
||||
|
@ -174,6 +174,13 @@ vm_stack_dump_raw(rb_thread_t *th, rb_control_frame_t *cfp)
|
|||
fprintf(stderr, "---------------------------\n");
|
||||
}
|
||||
|
||||
void
|
||||
vm_stack_dump_raw_current(void)
|
||||
{
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
vm_stack_dump_raw(th, th->cfp);
|
||||
}
|
||||
|
||||
void
|
||||
env_dump_raw(rb_env_t *env, VALUE *lfp, VALUE *dfp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue