summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_opcodes.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-12-29 11:16:08 +0100
committerNikita Popov <nikic@php.net>2015-12-29 23:14:53 +0100
commit65e456f3649c649d8450325fc677442380911598 (patch)
tree5328e908895f890e22eba0f3c6b05bd4624d161b /Zend/zend_vm_opcodes.c
parent4440436821404ff3c76682726e63d1aaf381f73a (diff)
downloadphp-git-65e456f3649c649d8450325fc677442380911598.tar.gz
Introduce BIND_LEXICAL
This opcodes inserts a local CV into the closure static variable table. This replaces the previous mechanism of having static variables marked as LEXICAL, which perform a symtable lookup during copying. This means a) functions which contain closures no longer have to rebuild their symtable (better performance) and b) we can now track used variables in SSA.
Diffstat (limited to 'Zend/zend_vm_opcodes.c')
-rw-r--r--Zend/zend_vm_opcodes.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zend/zend_vm_opcodes.c b/Zend/zend_vm_opcodes.c
index 2776a80e6f..1bf19d01e3 100644
--- a/Zend/zend_vm_opcodes.c
+++ b/Zend/zend_vm_opcodes.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <zend.h>
-static const char *zend_vm_opcodes_names[182] = {
+static const char *zend_vm_opcodes_names[183] = {
"ZEND_NOP",
"ZEND_ADD",
"ZEND_SUB",
@@ -204,9 +204,10 @@ static const char *zend_vm_opcodes_names[182] = {
"ZEND_UNSET_STATIC_PROP",
"ZEND_ISSET_ISEMPTY_STATIC_PROP",
"ZEND_FETCH_CLASS_CONSTANT",
+ "ZEND_BIND_LEXICAL",
};
-static uint32_t zend_vm_opcodes_flags[182] = {
+static uint32_t zend_vm_opcodes_flags[183] = {
0x00000000,
0x00000707,
0x00000707,
@@ -389,6 +390,7 @@ static uint32_t zend_vm_opcodes_flags[182] = {
0x00007307,
0x00027307,
0x00000373,
+ 0x00100101,
};
ZEND_API const char* zend_get_opcode_name(zend_uchar opcode) {