diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 03:08:50 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 03:08:50 +0000 |
commit | 385f0e8af657b1334e477e6837b0846cc14fa00d (patch) | |
tree | c0b84dcfa47e0a9b3811ec64bcfad453b03b723b /vm_core.h | |
parent | 2e5e857a0bea7f0d784448550e9182c4cc477ee2 (diff) | |
download | ruby-385f0e8af657b1334e477e6837b0846cc14fa00d.tar.gz |
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -497,8 +497,6 @@ typedef struct { int safe_level; int is_from_method; int is_lambda; - - NODE *special_cref_stack; } rb_proc_t; #define GetEnvPtr(obj, ptr) \ @@ -517,7 +515,6 @@ typedef struct { typedef struct { VALUE env; - NODE *cref_stack; } rb_binding_t; @@ -614,6 +611,7 @@ VALUE vm_make_env_object(rb_thread_t *th, rb_control_frame_t *cfp); VALUE vm_backtrace(rb_thread_t *, int); VALUE vm_yield(rb_thread_t *th, int argc, VALUE *argv); +VALUE vm_yield_with_cref(rb_thread_t *th, int argc, VALUE *argv, NODE *cref); VALUE vm_call0(rb_thread_t *th, VALUE klass, VALUE recv, VALUE id, ID oid, int argc, const VALUE *argv, NODE *body, int nosuper); |