2006-12-31 18:02:22 +03:00
|
|
|
|
2008-01-18 11:56:11 +03:00
|
|
|
#ifndef RUBY_EVAL_INTERN_H
|
|
|
|
#define RUBY_EVAL_INTERN_H
|
2006-12-31 18:02:22 +03:00
|
|
|
|
|
|
|
#define PASS_PASSED_BLOCK() \
|
|
|
|
(GET_THREAD()->passed_block = \
|
* blockinlining.c, compile.c, compile.h, error.c, eval.c,
eval_intern.h, eval_jump.h, eval_load.c, eval_method.h,
eval_safe.h, gc.c, insnhelper.h, insns.def, iseq.c, proc.c,
process.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci,
vm.c, vm.h, vm_dump.c, vm_evalbody.ci, vm_macro.def,
yarv.h, yarvcore.h, yarvcore.c: change type and macro names:
* yarv_*_t -> rb_*_t
* yarv_*_struct -> rb_*_struct
* yarv_tag -> rb_vm_tag
* YARV_* -> RUBY_VM_*
* proc.c, vm.c: move functions about env object creation
from proc.c to vm.c.
* proc.c, yarvcore.c: fix rb_cVM initialization place.
* inits.c: change Init_ISeq() order (after Init_VM).
* ruby.h, proc.c: change declaration place of rb_cEnv
from proc.c to ruby.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06 22:00:03 +03:00
|
|
|
GC_GUARDED_PTR_REF((rb_block_t *)GET_THREAD()->cfp->lfp[0]))
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2007-06-10 07:06:15 +04:00
|
|
|
#include "ruby/ruby.h"
|
|
|
|
#include "ruby/node.h"
|
|
|
|
#include "ruby/util.h"
|
|
|
|
#include "ruby/signal.h"
|
* blockinlining.c: remove "yarv" prefix.
* array.c, numeric.c: ditto.
* insnhelper.ci, insns.def, vm_evalbody.ci: ditto.
* yarvcore.c: removed.
* yarvcore.h: renamed to core.h.
* cont.c, debug.c, error.c, process.c, signal.c : ditto.
* ext/probeprofiler/probeprofiler.c: ditto.
* id.c, id.h: added.
* inits.c: ditto.
* compile.c: rename internal functions.
* compile.h: fix debug flag.
* eval.c, object.c, vm.c: remove ruby_top_self.
use rb_vm_top_self() instead.
* eval_intern.h, eval_load: ditto.
* gc.c: rename yarv_machine_stack_mark() to
rb_gc_mark_machine_stack().
* insnhelper.h: remove unused macros.
* iseq.c: add iseq_compile() to create iseq object
from source string.
* proc.c: rename a internal function.
* template/insns.inc.tmpl: remove YARV prefix.
* thread.c:
* vm.c (rb_iseq_eval): added.
* vm.c: move some functions from yarvcore.c.
* vm_dump.c: fix to remove compiler warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 08:25:46 +04:00
|
|
|
#include "vm_core.h"
|
2006-12-31 18:02:22 +03:00
|
|
|
|
|
|
|
#ifdef HAVE_STDLIB_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
#endif
|
|
|
|
#ifndef EXIT_SUCCESS
|
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#endif
|
|
|
|
#ifndef EXIT_FAILURE
|
|
|
|
#define EXIT_FAILURE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
|
2007-06-10 07:06:15 +04:00
|
|
|
#include "ruby/st.h"
|
2006-12-31 18:02:22 +03:00
|
|
|
#include "dln.h"
|
|
|
|
|
|
|
|
#ifdef __APPLE__
|
|
|
|
#include <crt_externs.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Make alloca work the best possible way. */
|
|
|
|
#ifdef __GNUC__
|
|
|
|
# ifndef atarist
|
|
|
|
# ifndef alloca
|
|
|
|
# define alloca __builtin_alloca
|
|
|
|
# endif
|
|
|
|
# endif /* atarist */
|
|
|
|
#else
|
|
|
|
# ifdef HAVE_ALLOCA_H
|
|
|
|
# include <alloca.h>
|
|
|
|
# else
|
|
|
|
# ifdef _AIX
|
|
|
|
#pragma alloca
|
|
|
|
# else
|
|
|
|
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
|
|
void *alloca();
|
|
|
|
# endif
|
|
|
|
# endif /* AIX */
|
|
|
|
# endif /* HAVE_ALLOCA_H */
|
|
|
|
#endif /* __GNUC__ */
|
|
|
|
|
|
|
|
#ifdef HAVE_STDARG_PROTOTYPES
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define va_init_list(a,b) va_start(a,b)
|
|
|
|
#else
|
|
|
|
#include <varargs.h>
|
|
|
|
#define va_init_list(a,b) va_start(a)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRING_H
|
2007-12-25 07:17:06 +03:00
|
|
|
char *strrchr(const char *, const char);
|
2006-12-31 18:02:22 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __BEOS__
|
|
|
|
#include <net/socket.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __MACOS__
|
|
|
|
#include "macruby_private.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __VMS
|
|
|
|
#include "vmsruby_private.h"
|
|
|
|
#endif
|
|
|
|
|
2008-03-31 21:58:41 +04:00
|
|
|
#define ruby_setjmp(env) RUBY_SETJMP(env)
|
|
|
|
#define ruby_longjmp(env,val) RUBY_LONGJMP(env,val)
|
|
|
|
#ifdef __CYGWIN__
|
|
|
|
int _setjmp(), _longjmp();
|
2006-12-31 18:02:22 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#if defined(__VMS)
|
|
|
|
#pragma nostandard
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_SYS_SELECT_H
|
|
|
|
#include <sys/select.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
Solaris sys/select.h switches select to select_large_fdset to support larger
|
|
|
|
file descriptors if FD_SETSIZE is larger than 1024 on 32bit environment.
|
|
|
|
But Ruby doesn't change FD_SETSIZE because fd_set is allocated dynamically.
|
|
|
|
So following definition is required to use select_large_fdset.
|
|
|
|
*/
|
|
|
|
#ifdef HAVE_SELECT_LARGE_FDSET
|
|
|
|
#define select(n, r, w, e, t) select_large_fdset(n, r, w, e, t)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_SYS_PARAM_H
|
|
|
|
#include <sys/param.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
* cont.c: support Fiber. Check test/ruby/test_fiber.rb for detail.
Fiber is known as "Micro Thread", "Coroutine", and other terms.
At this time, only Fiber#pass is supported to change context.
I want to know more suitable method name/API for Fiber (... do you
know more suitable class name instead of Fiber?) as "suspend/resume",
"call", "yield", "start/kick/stop/restart", ....
* eval.c, eval_intern.h, thread.c, yarvcore.c, yarvcore.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-27 23:12:43 +04:00
|
|
|
#define SAVE_ROOT_JMPBUF(th, stmt) do \
|
|
|
|
if (ruby_setjmp((th)->root_jmpbuf) == 0) { \
|
|
|
|
stmt; \
|
|
|
|
} \
|
|
|
|
else { \
|
2007-06-05 21:55:07 +04:00
|
|
|
rb_fiber_start(); \
|
* cont.c: support Fiber. Check test/ruby/test_fiber.rb for detail.
Fiber is known as "Micro Thread", "Coroutine", and other terms.
At this time, only Fiber#pass is supported to change context.
I want to know more suitable method name/API for Fiber (... do you
know more suitable class name instead of Fiber?) as "suspend/resume",
"call", "yield", "start/kick/stop/restart", ....
* eval.c, eval_intern.h, thread.c, yarvcore.c, yarvcore.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-27 23:12:43 +04:00
|
|
|
} while (0)
|
|
|
|
|
2006-12-31 18:02:22 +03:00
|
|
|
#define TH_PUSH_TAG(th) do { \
|
* blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c,
thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h,
vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
fix typo (rb_thead_t -> rb_thread_t).
* eval_intern.h: remove unused definitions.
* common.mk: fix around vm_opts.h path
and remove harmful argument passed to insns2vm.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 09:37:46 +03:00
|
|
|
rb_thread_t * const _th = th; \
|
* blockinlining.c, compile.c, compile.h, error.c, eval.c,
eval_intern.h, eval_jump.h, eval_load.c, eval_method.h,
eval_safe.h, gc.c, insnhelper.h, insns.def, iseq.c, proc.c,
process.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci,
vm.c, vm.h, vm_dump.c, vm_evalbody.ci, vm_macro.def,
yarv.h, yarvcore.h, yarvcore.c: change type and macro names:
* yarv_*_t -> rb_*_t
* yarv_*_struct -> rb_*_struct
* yarv_tag -> rb_vm_tag
* YARV_* -> RUBY_VM_*
* proc.c, vm.c: move functions about env object creation
from proc.c to vm.c.
* proc.c, yarvcore.c: fix rb_cVM initialization place.
* inits.c: change Init_ISeq() order (after Init_VM).
* ruby.h, proc.c: change declaration place of rb_cEnv
from proc.c to ruby.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06 22:00:03 +03:00
|
|
|
struct rb_vm_tag _tag; \
|
2006-12-31 18:02:22 +03:00
|
|
|
_tag.tag = 0; \
|
|
|
|
_tag.prev = _th->tag; \
|
|
|
|
_th->tag = &_tag;
|
|
|
|
|
|
|
|
#define TH_POP_TAG() \
|
|
|
|
_th->tag = _tag.prev; \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
#define TH_POP_TAG2() \
|
|
|
|
_th->tag = _tag.prev
|
|
|
|
|
2007-04-25 05:35:13 +04:00
|
|
|
#define PUSH_TAG() TH_PUSH_TAG(GET_THREAD())
|
2006-12-31 18:02:22 +03:00
|
|
|
#define POP_TAG() TH_POP_TAG()
|
|
|
|
|
2008-03-19 11:32:30 +03:00
|
|
|
#define TH_EXEC_TAG() ruby_setjmp(_th->tag->buf)
|
2006-12-31 18:02:22 +03:00
|
|
|
|
|
|
|
#define EXEC_TAG() \
|
|
|
|
TH_EXEC_TAG()
|
|
|
|
|
|
|
|
#define TH_JUMP_TAG(th, st) do { \
|
|
|
|
ruby_longjmp(th->tag->buf,(st)); \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
#define JUMP_TAG(st) TH_JUMP_TAG(GET_THREAD(), st)
|
|
|
|
|
2008-05-08 10:56:59 +04:00
|
|
|
enum ruby_tag_type {
|
|
|
|
RUBY_TAG_RETURN = 0x1,
|
|
|
|
RUBY_TAG_BREAK = 0x2,
|
|
|
|
RUBY_TAG_NEXT = 0x3,
|
|
|
|
RUBY_TAG_RETRY = 0x4,
|
|
|
|
RUBY_TAG_REDO = 0x5,
|
|
|
|
RUBY_TAG_RAISE = 0x6,
|
|
|
|
RUBY_TAG_THROW = 0x7,
|
|
|
|
RUBY_TAG_FATAL = 0x8,
|
|
|
|
RUBY_TAG_MASK = 0xf
|
|
|
|
};
|
|
|
|
#define TAG_RETURN RUBY_TAG_RETURN
|
|
|
|
#define TAG_BREAK RUBY_TAG_BREAK
|
|
|
|
#define TAG_NEXT RUBY_TAG_NEXT
|
|
|
|
#define TAG_RETRY RUBY_TAG_RETRY
|
|
|
|
#define TAG_REDO RUBY_TAG_REDO
|
|
|
|
#define TAG_RAISE RUBY_TAG_RAISE
|
|
|
|
#define TAG_THROW RUBY_TAG_THROW
|
|
|
|
#define TAG_FATAL RUBY_TAG_FATAL
|
|
|
|
#define TAG_MASK RUBY_TAG_MASK
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2007-09-14 11:17:17 +04:00
|
|
|
#define NEW_THROW_OBJECT(val, pt, st) \
|
|
|
|
((VALUE)NEW_NODE(NODE_LIT, (val), (pt), (st)))
|
|
|
|
#define SET_THROWOBJ_CATCH_POINT(obj, val) \
|
|
|
|
(RNODE((obj))->u2.value = (val))
|
|
|
|
#define SET_THROWOBJ_STATE(obj, val) \
|
|
|
|
(RNODE((obj))->u3.value = (val))
|
|
|
|
|
|
|
|
#define GET_THROWOBJ_VAL(obj) ((VALUE)RNODE((obj))->u1.value)
|
|
|
|
#define GET_THROWOBJ_CATCH_POINT(obj) ((VALUE*)RNODE((obj))->u2.value)
|
|
|
|
#define GET_THROWOBJ_STATE(obj) ((int)RNODE((obj))->u3.value)
|
|
|
|
|
2006-12-31 18:02:22 +03:00
|
|
|
#define SCOPE_TEST(f) \
|
|
|
|
(ruby_cref()->nd_visi & (f))
|
|
|
|
|
|
|
|
#define SCOPE_CHECK(f) \
|
|
|
|
(ruby_cref()->nd_visi == (f))
|
|
|
|
|
|
|
|
#define SCOPE_SET(f) \
|
|
|
|
{ \
|
|
|
|
ruby_cref()->nd_visi = (f); \
|
|
|
|
}
|
2007-02-08 09:48:34 +03:00
|
|
|
|
2007-09-26 14:39:49 +04:00
|
|
|
#define CHECK_STACK_OVERFLOW(cfp, margin) do \
|
2007-12-09 09:00:56 +03:00
|
|
|
if (((VALUE *)(cfp)->sp) + (margin) + sizeof(rb_control_frame_t) >= ((VALUE *)cfp)) { \
|
2007-09-26 14:39:49 +04:00
|
|
|
rb_exc_raise(sysstack_error); \
|
|
|
|
} \
|
|
|
|
while (0)
|
|
|
|
|
2007-12-25 07:17:06 +03:00
|
|
|
void rb_thread_cleanup(void);
|
|
|
|
void rb_thread_wait_other_threads(void);
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2008-03-12 08:47:10 +03:00
|
|
|
enum {
|
|
|
|
RAISED_EXCEPTION = 1,
|
2008-04-30 11:12:37 +04:00
|
|
|
RAISED_STACKOVERFLOW = 2,
|
|
|
|
RAISED_NOMEMORY = 4,
|
2008-03-12 08:47:10 +03:00
|
|
|
};
|
2008-02-28 07:52:01 +03:00
|
|
|
int rb_thread_set_raised(rb_thread_t *th);
|
|
|
|
int rb_thread_reset_raised(rb_thread_t *th);
|
2008-03-12 08:47:10 +03:00
|
|
|
#define rb_thread_raised_set(th, f) ((th)->raised_flag |= (f))
|
|
|
|
#define rb_thread_raised_reset(th, f) ((th)->raised_flag &= ~(f))
|
|
|
|
#define rb_thread_raised_p(th, f) (((th)->raised_flag & (f)) != 0)
|
|
|
|
#define rb_thread_raised_clear(th) ((th)->raised_flag = 0)
|
2006-12-31 18:02:22 +03:00
|
|
|
|
|
|
|
VALUE rb_f_eval(int argc, VALUE *argv, VALUE self);
|
2007-12-25 07:17:06 +03:00
|
|
|
VALUE rb_make_exception(int argc, VALUE *argv);
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2007-06-05 21:55:07 +04:00
|
|
|
NORETURN(void rb_fiber_start(void));
|
|
|
|
|
2007-12-25 07:17:06 +03:00
|
|
|
NORETURN(void rb_raise_jump(VALUE));
|
|
|
|
NORETURN(void rb_print_undef(VALUE, ID, int));
|
2008-05-22 10:22:41 +04:00
|
|
|
NORETURN(void vm_localjump_error(const char * const, const VALUE, const int));
|
|
|
|
NORETURN(void vm_jump_tag_but_local_jump(const int, const VALUE));
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2008-05-22 10:22:41 +04:00
|
|
|
NODE *vm_cref_push(rb_thread_t * const th, const VALUE, const int);
|
* vm.c: some refactoring.
* rename th_* to vm_*.
* remove unused variables functions.
* add prototypes.
* blockinlining.c, compile.c, cont.c, eval.c, eval_intern.h,
eval_jump.h, eval_load.c, inits.c, insns.def, iseq.c, parse.y,
proc.c, process.c, signal.c, thread.c, vm.c, vm_dump.c,
vm_evalbody.ci, yarvcore.c, yarvcore.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 19:42:41 +04:00
|
|
|
NODE *vm_set_special_cref(rb_thread_t *th, VALUE *lfp, NODE * cref_stack);
|
2008-05-22 10:22:41 +04:00
|
|
|
VALUE vm_make_jump_tag_but_local_jump(const int state, VALUE val);
|
* 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
2008-05-19 07:08:50 +04:00
|
|
|
NODE *ruby_cref(void);
|
2008-05-22 13:55:36 +04:00
|
|
|
rb_control_frame_t *vm_get_ruby_level_cfp(rb_thread_t *th, rb_control_frame_t *cfp);
|
* blockinlining.c, compile.c, compile.h, error.c, eval.c,
eval_intern.h, eval_jump.h, eval_load.c, eval_method.h,
eval_safe.h, gc.c, insnhelper.h, insns.def, iseq.c, proc.c,
process.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci,
vm.c, vm.h, vm_dump.c, vm_evalbody.ci, vm_macro.def,
yarv.h, yarvcore.h, yarvcore.c: change type and macro names:
* yarv_*_t -> rb_*_t
* yarv_*_struct -> rb_*_struct
* yarv_tag -> rb_vm_tag
* YARV_* -> RUBY_VM_*
* proc.c, vm.c: move functions about env object creation
from proc.c to vm.c.
* proc.c, yarvcore.c: fix rb_cVM initialization place.
* inits.c: change Init_ISeq() order (after Init_VM).
* ruby.h, proc.c: change declaration place of rb_cEnv
from proc.c to ruby.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06 22:00:03 +03:00
|
|
|
VALUE rb_obj_is_proc(VALUE);
|
2008-05-22 10:22:41 +04:00
|
|
|
void rb_vm_check_redefinition_opt_method(NODE * const node);
|
|
|
|
VALUE rb_vm_call_cfunc(const VALUE recv, VALUE (* const func)(VALUE),
|
|
|
|
const VALUE arg, rb_block_t * const blockptr,
|
|
|
|
const VALUE filename);
|
* this commit is a result of refactoring. only renaming functions,
moving definitions place, add/remove prototypes, deleting
unused variables and removing yarv.h.
This commit doesn't change any behavior of ruby/vm.
* yarv.h, common.mk: remove yarv.h (contents are moved to yarvcore.h).
* error.c, eval_intern.h: include yarvcore.h instead yarv.h
* rename some functions:
* debug.[ch]: debug_*() -> ruby_debug_*()
* iseq.c: iseq_*() -> rb_iseq_*(), ruby_iseq_disasm()
* iseq.c: node_name() -> ruby_node_name()
* vm.c: yarv_check_redefinition_opt_method() ->
rb_vm_check_redefinition_opt_method()
* some refactoring with checking -Wall.
* array.c: remove rb_ary_ptr() (unused) and remove unused
local variables.
* object.c: add a prototype of rb_mod_module_exec().
* eval_intern.h (ruby_cref): set it inline.
* eval_load.c (rb_load), yarvcore.c: yarv_load() -> rb_load_internal().
* parse.y: add a prototype of rb_parse_in_eval() (in eval.c).
* process.c: add a prototype of rb_thread_stop_timer_thread() (in thread.c).
* thread.c: remove raw_gets() function (unused) and fix some format
mismatch (format mismatchs have remained yet. this is todo).
* thread.c (rb_thread_wait_fd_rw): fix typo on label name.
* thread_pthread.ci: comment out codes with USE_THREAD_CACHE.
* vm.c (rb_svar, rb_backref_get, rb_backref_get,
rb_lastline_get, rb_lastline_set) : moved from yarvcore.c.
* vm.c (yarv_init_redefined_flag): add a prototype and rename
yarv_opt_method_table to vm_opt_method_table.
* vm.c (rb_thread_eval): moved from yarvcore.c.
* yarvcore.c: remove unused global variables and fix to use nsdr().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-07 04:25:05 +03:00
|
|
|
void rb_thread_terminate_all(void);
|
2008-05-22 10:22:41 +04:00
|
|
|
void rb_vm_set_eval_stack(rb_thread_t * const, const VALUE iseq, NODE * const cref);
|
* blockinlining.c: remove "yarv" prefix.
* array.c, numeric.c: ditto.
* insnhelper.ci, insns.def, vm_evalbody.ci: ditto.
* yarvcore.c: removed.
* yarvcore.h: renamed to core.h.
* cont.c, debug.c, error.c, process.c, signal.c : ditto.
* ext/probeprofiler/probeprofiler.c: ditto.
* id.c, id.h: added.
* inits.c: ditto.
* compile.c: rename internal functions.
* compile.h: fix debug flag.
* eval.c, object.c, vm.c: remove ruby_top_self.
use rb_vm_top_self() instead.
* eval_intern.h, eval_load: ditto.
* gc.c: rename yarv_machine_stack_mark() to
rb_gc_mark_machine_stack().
* insnhelper.h: remove unused macros.
* iseq.c: add iseq_compile() to create iseq object
from source string.
* proc.c: rename a internal function.
* template/insns.inc.tmpl: remove YARV prefix.
* thread.c:
* vm.c (rb_iseq_eval): added.
* vm.c: move some functions from yarvcore.c.
* vm_dump.c: fix to remove compiler warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 08:25:46 +04:00
|
|
|
VALUE rb_vm_top_self();
|
* 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
2008-05-19 07:08:50 +04:00
|
|
|
VALUE rb_vm_cbase(void);
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2008-01-18 11:56:11 +03:00
|
|
|
#endif /* RUBY_EVAL_INTERN_H */
|