summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_opcodes.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-02-05 19:40:06 +0300
committerDmitry Stogov <dmitry@zend.com>2018-02-05 19:40:06 +0300
commit3a794d39f081f73b2204aed8b80163a197ab41c3 (patch)
tree90af4978f502d85b1a1ac1e1e72ebeaf9e65d6bc /Zend/zend_vm_opcodes.c
parent7416562ab0c1062722c43c6b55d38e1a79f217cb (diff)
downloadphp-git-3a794d39f081f73b2204aed8b80163a197ab41c3.tar.gz
Avoid repeatable ARG_SHOULD_BE_SENT_BY_REF() checks in FETCH_*FUNC_ARG and following SEND_VAR_EX. Perform the check once in a new CHECK_FUNC_ARG opcode and reuse in the following FETCH_*FUNC_ARG and SEND_FUNC_ARG (SEND_VAR_EX replacement).
Diffstat (limited to 'Zend/zend_vm_opcodes.c')
-rw-r--r--Zend/zend_vm_opcodes.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Zend/zend_vm_opcodes.c b/Zend/zend_vm_opcodes.c
index b01d7395d3..7be1db0052 100644
--- a/Zend/zend_vm_opcodes.c
+++ b/Zend/zend_vm_opcodes.c
@@ -122,7 +122,7 @@ static const char *zend_vm_opcodes_names[199] = {
"ZEND_FETCH_OBJ_UNSET",
"ZEND_FETCH_LIST_R",
"ZEND_FETCH_CONSTANT",
- NULL,
+ "ZEND_CHECK_FUNC_ARG",
"ZEND_EXT_STMT",
"ZEND_EXT_FCALL_BEGIN",
"ZEND_EXT_FCALL_END",
@@ -207,7 +207,7 @@ static const char *zend_vm_opcodes_names[199] = {
"ZEND_BIND_LEXICAL",
"ZEND_BIND_STATIC",
"ZEND_FETCH_THIS",
- NULL,
+ "ZEND_SEND_FUNC_ARG",
"ZEND_ISSET_ISEMPTY_THIS",
"ZEND_SWITCH_LONG",
"ZEND_SWITCH_STRING",
@@ -316,15 +316,15 @@ static uint32_t zend_vm_opcodes_flags[199] = {
0x00010107,
0x00000707,
0x00000757,
- 0x00050107,
- 0x01006703,
- 0x01000753,
+ 0x00010107,
+ 0x00006703,
+ 0x00000753,
0x00010107,
0x00000701,
0x00000751,
0x0000070b,
0x00000391,
- 0x00000000,
+ 0x00001001,
0x00000000,
0x00000000,
0x00000000,
@@ -401,7 +401,7 @@ static uint32_t zend_vm_opcodes_flags[199] = {
0x00007307,
0x00007307,
0x00007307,
- 0x01007307,
+ 0x00007307,
0x00007307,
0x00007307,
0x00027307,
@@ -409,7 +409,7 @@ static uint32_t zend_vm_opcodes_flags[199] = {
0x00100101,
0x00100301,
0x00000101,
- 0x00000000,
+ 0x00001001,
0x00000101,
0x0300030b,
0x0300030b,