ruby-changes:12950
From: nobu <ko1@a...>
Date: Fri, 28 Aug 2009 10:22:37 +0900 (JST)
Subject: [ruby-changes:12950] Ruby:r24690 (trunk): * vm_core.h ({GET,INC}_VM_STATE_VERSION): moved from vm_insnhelper.h.
nobu 2009-08-28 10:21:45 +0900 (Fri, 28 Aug 2009) New Revision: 24690 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24690 Log: * vm_core.h ({GET,INC}_VM_STATE_VERSION): moved from vm_insnhelper.h. Modified files: trunk/ChangeLog trunk/vm_core.h trunk/vm_insnhelper.h Index: ChangeLog =================================================================== --- ChangeLog (revision 24689) +++ ChangeLog (revision 24690) @@ -1,7 +1,10 @@ -Fri Aug 28 09:34:04 2009 Nobuyoshi Nakada <nobu@r...> +Fri Aug 28 10:21:30 2009 Nobuyoshi Nakada <nobu@r...> * iseq.c (iseq_mark): skip outdated cache entries. + * vm_core.h ({GET,INC}_VM_STATE_VERSION): moved from + vm_insnhelper.h. + Fri Aug 28 07:25:25 2009 Yukihiro Matsumoto <matz@r...> * enumerator.c (next_i): typo fixed (reached at end -> reached an Index: vm_core.h =================================================================== --- vm_core.h (revision 24689) +++ vm_core.h (revision 24690) @@ -529,6 +529,11 @@ /* inline cache */ typedef struct iseq_inline_cache_entry *IC; +extern VALUE ruby_vm_global_state_version; + +#define GET_VM_STATE_VERSION() (ruby_vm_global_state_version) +#define INC_VM_STATE_VERSION() \ + (ruby_vm_global_state_version = (ruby_vm_global_state_version+1) & 0x8fffffff) void rb_vm_change_state(void); typedef VALUE CDHASH; Index: vm_insnhelper.h =================================================================== --- vm_insnhelper.h (revision 24689) +++ vm_insnhelper.h (revision 24690) @@ -58,14 +58,9 @@ }; extern char ruby_vm_redefined_flag[BOP_LAST_]; -extern VALUE ruby_vm_global_state_version; extern VALUE ruby_vm_const_missing_count; -#define GET_VM_STATE_VERSION() (ruby_vm_global_state_version) -#define INC_VM_STATE_VERSION() \ - (ruby_vm_global_state_version = (ruby_vm_global_state_version+1) & 0x8fffffff) - /**********************************************************/ /* deal with stack */ /**********************************************************/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/