summaryrefslogtreecommitdiff
path: root/ext/opcache/Optimizer/zend_dump.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-07-05 12:03:25 +0300
committerDmitry Stogov <dmitry@zend.com>2019-07-05 12:03:25 +0300
commit48ca5a1e176c5301fedd1bc4f661969d6f9a49eb (patch)
treed9a6303bc1a0a054c1acd0d9612256e0ea887c74 /ext/opcache/Optimizer/zend_dump.c
parent24ecfcc8339d0158d5cd209b8737d8d764703ded (diff)
downloadphp-git-48ca5a1e176c5301fedd1bc4f661969d6f9a49eb.tar.gz
Replace ZEND_ASSIGN_ADD (and others) by ZEND_ASSIGN_OP, ZEND_ASSIGN_DIM_OP, ZEND_ASSGIN_OBJ_OP and ZEND_ASSIGN_STATIC_PROP_OP
Diffstat (limited to 'ext/opcache/Optimizer/zend_dump.c')
-rw-r--r--ext/opcache/Optimizer/zend_dump.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/opcache/Optimizer/zend_dump.c b/ext/opcache/Optimizer/zend_dump.c
index 2ed208b779..d6ef63415a 100644
--- a/ext/opcache/Optimizer/zend_dump.c
+++ b/ext/opcache/Optimizer/zend_dump.c
@@ -446,14 +446,8 @@ static void zend_dump_op(const zend_op_array *op_array, const zend_basic_block *
if (ZEND_VM_EXT_NUM == (flags & ZEND_VM_EXT_MASK)) {
fprintf(stderr, " %u", opline->extended_value);
- } else if (ZEND_VM_EXT_DIM_OBJ == (flags & ZEND_VM_EXT_MASK)) {
- if (opline->extended_value == ZEND_ASSIGN_DIM) {
- fprintf(stderr, " (dim)");
- } else if (opline->extended_value == ZEND_ASSIGN_OBJ) {
- fprintf(stderr, " (obj)");
- } else if (opline->extended_value == ZEND_ASSIGN_STATIC_PROP) {
- fprintf(stderr, " (static prop)");
- }
+ } else if (ZEND_VM_EXT_OP == (flags & ZEND_VM_EXT_MASK)) {
+ fprintf(stderr, " (%s)", zend_get_opcode_name(opline->extended_value) + 5);
} else if (ZEND_VM_EXT_TYPE == (flags & ZEND_VM_EXT_MASK)) {
switch (opline->extended_value) {
case IS_NULL: