Skip to content

Commit 04c76a3

Browse files
kaja47MaxKellermann
authored andcommitted
[skip ci] Add explanatory comments to _zend_op structure
Closes phpGH-7522 Signed-off-by: George Peter Banyard <[email protected]>
1 parent c1170f0 commit 04c76a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Zend/zend_compile.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ struct _zend_op {
140140
znode_op result;
141141
uint32_t extended_value;
142142
uint32_t lineno;
143-
zend_uchar opcode;
144-
zend_uchar op1_type;
145-
zend_uchar op2_type;
146-
zend_uchar result_type;
143+
zend_uchar opcode; /* Opcodes defined in Zend/zend_vm_opcodes.h */
144+
zend_uchar op1_type; /* IS_UNUSED, IS_CONST, IS_TMP_VAR, IS_VAR, IS_CV */
145+
zend_uchar op2_type; /* IS_UNUSED, IS_CONST, IS_TMP_VAR, IS_VAR, IS_CV */
146+
zend_uchar result_type; /* IS_UNUSED, IS_CONST, IS_TMP_VAR, IS_VAR, IS_CV */
147147
};
148148

149149

0 commit comments

Comments
 (0)