summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-15 17:22:57 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-15 17:22:57 +0000
commita91e91c537bf77afc49c2aef4b65d91237cbd786 (patch)
tree47dd3ca2f41807c32ddc59aaf4ccc0bea2444a4a /vm_core.h
parentb188d42b2d05f1746f1a9c7de46feb0529f3dc42 (diff)
* vm_core.h (VM_CALL_*): rename VM_CALL_*_BIT
to VM_CALL_* (remove `_BIT' suffix). Add comments on each macros. Remove unused macro VM_CALL_TAILRECURSION_BIT. * compile.c, iseq.c, insns.def, vm_insnhelper.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/vm_core.h b/vm_core.h
index 0524616e38..c53d68601c 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -650,15 +650,14 @@ enum vm_check_match_type {
#define VM_CHECKMATCH_TYPE_MASK 0x03
#define VM_CHECKMATCH_ARRAY 0x04
-#define VM_CALL_ARGS_SPLAT_BIT (0x01 << 1)
-#define VM_CALL_ARGS_BLOCKARG_BIT (0x01 << 2)
-#define VM_CALL_FCALL_BIT (0x01 << 3)
-#define VM_CALL_VCALL_BIT (0x01 << 4)
-#define VM_CALL_TAILCALL_BIT (0x01 << 5)
-#define VM_CALL_TAILRECURSION_BIT (0x01 << 6)
-#define VM_CALL_SUPER_BIT (0x01 << 7)
-#define VM_CALL_OPT_SEND_BIT (0x01 << 8)
-#define VM_CALL_ARGS_SKIP_SETUP (0x01 << 9)
+#define VM_CALL_ARGS_SPLAT (0x01 << 1) /* m(*args) */
+#define VM_CALL_ARGS_BLOCKARG (0x01 << 2) /* m(&block) */
+#define VM_CALL_FCALL (0x01 << 3) /* m(...) */
+#define VM_CALL_VCALL (0x01 << 4) /* m */
+#define VM_CALL_TAILCALL (0x01 << 5) /* located at tail position */
+#define VM_CALL_SUPER (0x01 << 6) /* super */
+#define VM_CALL_OPT_SEND (0x01 << 7) /* internal flag */
+#define VM_CALL_ARGS_SKIP_SETUP (0x01 << 8) /* (flag & (SPLAT|BLOCKARG)) && blockiseq == 0 */
enum vm_special_object_type {
VM_SPECIAL_OBJECT_VMCORE = 1,