summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_opcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_vm_opcodes.h')
-rw-r--r--Zend/zend_vm_opcodes.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Zend/zend_vm_opcodes.h b/Zend/zend_vm_opcodes.h
index c6fa3a1dc5..72a04699e0 100644
--- a/Zend/zend_vm_opcodes.h
+++ b/Zend/zend_vm_opcodes.h
@@ -28,9 +28,37 @@
#define ZEND_VM_KIND_GOTO 3
#define ZEND_VM_KIND ZEND_VM_KIND_CALL
+#define ZEND_VM_OP1_SPEC 0x00000001
+#define ZEND_VM_OP1_CONST 0x00000002
+#define ZEND_VM_OP1_TMPVAR 0x00000004
+#define ZEND_VM_OP1_NUM 0x00000008
+#define ZEND_VM_OP1_ADDR 0x00000010
+#define ZEND_VM_OP1_LINE 0x00000020
+#define ZEND_VM_OP2_SPEC 0x00000100
+#define ZEND_VM_OP2_CONST 0x00000200
+#define ZEND_VM_OP2_TMPVAR 0x00000400
+#define ZEND_VM_OP2_NUM 0x00000800
+#define ZEND_VM_OP2_ADDR 0x00001000
+#define ZEND_VM_OP2_LINE 0x00002000
+#define ZEND_VM_EXT_NUM 0x00010000
+#define ZEND_VM_EXT_VAR 0x00020000
+#define ZEND_VM_EXT_LINE 0x00040000
+#define ZEND_VM_EXT_REL_LINE 0x00080000
+#define ZEND_VM_EXT_DIM_OBJ 0x00100000
+#define ZEND_VM_EXT_CLASS_FETCH 0x00200000
+#define ZEND_VM_EXT_CONST_FETCH 0x00400000
+#define ZEND_VM_EXT_VAR_FETCH 0x00800000
+#define ZEND_VM_EXT_ARRAY_INIT 0x01000000
+#define ZEND_VM_EXT_TYPE 0x02000000
+#define ZEND_VM_EXT_EVAL 0x04000000
+#define ZEND_VM_EXT_FCALL 0x08000000
+#define ZEND_VM_EXT_FRET 0x10000000
+#define ZEND_VM_EXT_ISSET 0x20000000
+
BEGIN_EXTERN_C()
ZEND_API const char *zend_get_opcode_name(zend_uchar opcode);
+ZEND_API uint32_t zend_get_opcode_flags(zend_uchar opcode);
END_EXTERN_C()