diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-24 17:19:22 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-24 17:19:22 +0000 |
commit | 7980e653e57ae5b539533dee1d0b1a00fc16ea5d (patch) | |
tree | 68ad623b23e418ebf9757d9d0c4cbf6e6d4d5d92 /vm.h | |
parent | 61fa3576222f7bee1ecc8486075baee62936c840 (diff) | |
download | ruby-7980e653e57ae5b539533dee1d0b1a00fc16ea5d.tar.gz |
* call_cfunc.ci: removed.
* insnhelper.ci: added. this function includes all functions that
vm insns need.
* common.mk: ditto.
* insnhelper.h, vm.h, vm.c: move some declaration.
* gc.h: remove GC_CHECK() macro because GC.stress is more useful.
* compile.c, iseq.c, vm_dump: ditto.
* gc.h, thread.c: move a prototype decalaration.
* debug.c, debug.h: rename some functions.
* compile.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.h')
-rw-r--r-- | vm.h | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -13,13 +13,21 @@ #ifndef _VM_H_INCLUDED_ #define _VM_H_INCLUDED_ - #if YARVDEBUG > VMDEBUG #undef VMDEBUG #define VMDEBUG YARVDEBUG #endif typedef long OFFSET; +typedef unsigned long rb_num_t; +typedef unsigned long lindex_t; +typedef unsigned long dindex_t; +typedef rb_num_t GENTRY; + +extern VALUE rb_cEnv; +extern VALUE ruby_vm_global_state_version; +extern VALUE ruby_vm_redefined_flag; + /** * VM Debug Level @@ -167,7 +175,6 @@ typedef rb_control_frame_t * #endif /* DISPATCH_DIRECT_THREADED_CODE */ #define END_INSN(insn) \ - GC_CHECK(); \ DEBUG_END_INSN(); \ TC_DISPATCH(insn); \ @@ -189,7 +196,6 @@ typedef rb_control_frame_t * case BIN(insn): #define END_INSN(insn) \ - GC_CHECK(); \ DEBUG_END_INSN(); \ break; @@ -266,9 +272,9 @@ default: \ /* VM state version */ -#define GET_VM_STATE_VERSION() (vm_global_state_version) +#define GET_VM_STATE_VERSION() (ruby_vm_global_state_version) #define INC_VM_STATE_VERSION() \ - (vm_global_state_version = (vm_global_state_version+1) & 0x8fffffff) + (ruby_vm_global_state_version = (ruby_vm_global_state_version+1) & 0x8fffffff) #define BOP_PLUS 0x01 #define BOP_MINUS 0x02 |