aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-27 08:10:04 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-27 08:10:04 +0000
commitca6b174078fa15f33655be704d9409fdbc4f9929 (patch)
tree56a96b5dd1c09b83efa621abfb8ed3a4a7581ec4 /vm_core.h
parent689df4ae2a8ee6606c13ac9173ffce85aa1b06b7 (diff)
downloadruby-ca6b174078fa15f33655be704d9409fdbc4f9929.tar.gz
* vm_core.h: define vm_svar_index.
* vm_insnhelper.c, vm.c, compile.c: use vm_svar_index names. * iseq.h: remove DEFAULT_SPECIAL_VAR_COUNT. use VM_SVAR_FLIPFLOP_START instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 6ab17e0dfc..1f17dfd56a 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -838,6 +838,14 @@ enum vm_special_object_type {
VM_SPECIAL_OBJECT_CONST_BASE
};
+enum vm_svar_index {
+ VM_SVAR_LASTLINE = 0, /* $_ */
+ VM_SVAR_BACKREF = 1, /* $~ */
+
+ VM_SVAR_EXTRA_START = 2,
+ VM_SVAR_FLIPFLOP_START = 2 /* flipflop */
+};
+
#define VM_FRAME_MAGIC_METHOD 0x11
#define VM_FRAME_MAGIC_BLOCK 0x21
#define VM_FRAME_MAGIC_CLASS 0x31