diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 17:50:17 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 17:50:17 +0000 |
| commit | bbe04d374ae361408c469882a8f1e6ba41ebb9a2 (patch) | |
| tree | a476f70e698a68b2cc583e8aa5925feecabbd196 /vm_dump.c | |
| parent | fb56786f5ab62316b65c9af96aac50604d5397bf (diff) | |
| download | ruby-bbe04d374ae361408c469882a8f1e6ba41ebb9a2.tar.gz ruby-bbe04d374ae361408c469882a8f1e6ba41ebb9a2.tar.xz ruby-bbe04d374ae361408c469882a8f1e6ba41ebb9a2.zip | |
* eval_method.c: renamed from vm_method.c. "vm_method.c" is included
by "vm.c".
* vm_eval.c: added. Some codes are moved from "eval.c"
* common.mk: fix for above changes.
* compile.c: make a vm_eval(0)
* eval.c, eval_error.c, eval_intern.h, eval_jump.c, proc.c, vm.c,
id.c, id.h, vm_core.h, vm_dump.c, vm_evalbody.c, vm_insnhelper.c,
blockinlining.c: fix for above changes. and do some refactoring.
this changes improve rb_yield() performance.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
| -rw-r--r-- | vm_dump.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -97,6 +97,8 @@ control_frame_dump(rb_thread_t *th, rb_control_frame_t *cfp) iseq_name = "<ifunc>"; } else { + int vm_get_sourceline(rb_control_frame_t *); + pc = cfp->pc - cfp->iseq->iseq_encoded; iseq_name = RSTRING_PTR(cfp->iseq->name); line = vm_get_sourceline(cfp); @@ -579,7 +581,7 @@ rb_vm_bugreport(void) int i; SDR(); - bt = vm_backtrace(th, 0); + bt = rb_make_backtrace(th, 0); if (TYPE(bt) == T_ARRAY) for (i = 0; i < RARRAY_LEN(bt); i++) { dp(RARRAY_PTR(bt)[i]); |
