From 59c061235f7bb39d6a33b7e2b7fb4e3db57305db Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 24 May 2008 17:50:17 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@16576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 566c096636..8f39c68995 100644 --- a/vm_core.h +++ b/vm_core.h @@ -297,6 +297,7 @@ typedef struct rb_vm_struct { VALUE thgroup_default; VALUE last_status; /* $? */ + int running; int thread_abort_on_exception; unsigned long trace_flag; @@ -605,19 +606,10 @@ void rb_enable_interrupt(void); void rb_disable_interrupt(void); int rb_thread_method_id_and_class(rb_thread_t *th, ID *idp, VALUE *klassp); -VALUE vm_eval_body(rb_thread_t *th); VALUE vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self, int argc, const VALUE *argv, rb_block_t *blockptr); VALUE vm_make_proc(rb_thread_t *th, rb_control_frame_t *cfp, const rb_block_t *block); 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, const VALUE *argv); -VALUE vm_yield_with_cref(rb_thread_t *th, int argc, const VALUE *argv, const NODE *cref); -VALUE vm_call0(rb_thread_t *th, VALUE klass, VALUE recv, VALUE id, ID oid, - int argc, const VALUE *argv, const NODE *body, int nosuper); - -int vm_get_sourceline(rb_control_frame_t *); NOINLINE(void rb_gc_save_machine_context(rb_thread_t *)); -- cgit v1.2.3