diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-01-31 11:18:41 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-01-31 11:18:41 +0300 |
commit | 17a3b48454547c659dbd5fad66313006371b080e (patch) | |
tree | 9b72c8e0eb102759498e398c2500555ea2a7d1fa /Zend/zend_vm_gen.php | |
parent | 67e8445334dc6d2ea8aca450a01637bfe696404f (diff) | |
download | php-git-17a3b48454547c659dbd5fad66313006371b080e.tar.gz |
Make IS_UNUSED to be zero.
Diffstat (limited to 'Zend/zend_vm_gen.php')
-rw-r--r-- | Zend/zend_vm_gen.php | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php index 5d5f734a23..413d4de2e2 100644 --- a/Zend/zend_vm_gen.php +++ b/Zend/zend_vm_gen.php @@ -2451,7 +2451,7 @@ function gen_vm($def, $skel) { out($f, "\treturn zend_opcode_handlers[spec];\n"); } else { out($f, "\tstatic const int zend_vm_decode[] = {\n"); - out($f, "\t\t_UNUSED_CODE, /* 0 */\n"); + out($f, "\t\t_UNUSED_CODE, /* 0 = IS_UNUSED */\n"); out($f, "\t\t_CONST_CODE, /* 1 = IS_CONST */\n"); out($f, "\t\t_TMP_CODE, /* 2 = IS_TMP_VAR */\n"); out($f, "\t\t_UNUSED_CODE, /* 3 */\n"); @@ -2459,15 +2459,7 @@ function gen_vm($def, $skel) { out($f, "\t\t_UNUSED_CODE, /* 5 */\n"); out($f, "\t\t_UNUSED_CODE, /* 6 */\n"); out($f, "\t\t_UNUSED_CODE, /* 7 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 8 = IS_UNUSED */\n"); - out($f, "\t\t_UNUSED_CODE, /* 9 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 10 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 11 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 12 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 13 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 14 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 15 */\n"); - out($f, "\t\t_CV_CODE /* 16 = IS_CV */\n"); + out($f, "\t\t_CV_CODE /* 8 = IS_CV */\n"); out($f, "\t};\n"); out($f, "\tuint32_t offset = 0;\n"); out($f, "\tif (spec & SPEC_RULE_OP1) offset = offset * 5 + zend_vm_decode[op->op1_type];\n"); @@ -2525,7 +2517,7 @@ function gen_vm($def, $skel) { out($f, "\treturn zend_opcode_handler_funcs[spec];\n"); } else { out($f, "\tstatic const int zend_vm_decode[] = {\n"); - out($f, "\t\t_UNUSED_CODE, /* 0 */\n"); + out($f, "\t\t_UNUSED_CODE, /* 0 = IS_UNUSED */\n"); out($f, "\t\t_CONST_CODE, /* 1 = IS_CONST */\n"); out($f, "\t\t_TMP_CODE, /* 2 = IS_TMP_VAR */\n"); out($f, "\t\t_UNUSED_CODE, /* 3 */\n"); @@ -2533,15 +2525,7 @@ function gen_vm($def, $skel) { out($f, "\t\t_UNUSED_CODE, /* 5 */\n"); out($f, "\t\t_UNUSED_CODE, /* 6 */\n"); out($f, "\t\t_UNUSED_CODE, /* 7 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 8 = IS_UNUSED */\n"); - out($f, "\t\t_UNUSED_CODE, /* 9 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 10 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 11 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 12 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 13 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 14 */\n"); - out($f, "\t\t_UNUSED_CODE, /* 15 */\n"); - out($f, "\t\t_CV_CODE /* 16 = IS_CV */\n"); + out($f, "\t\t_CV_CODE /* 8 = IS_CV */\n"); out($f, "\t};\n"); out($f, "\tuint32_t offset = 0;\n"); out($f, "\tif (spec & SPEC_RULE_OP1) offset = offset * 5 + zend_vm_decode[op->op1_type];\n"); |