mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Fixed non-specialized executor
This commit is contained in:
parent
b04f2202fe
commit
5bda51a5c0
1 changed files with 4 additions and 0 deletions
|
@ -342,6 +342,8 @@ function gen_code($f, $spec, $kind, $code, $op1, $op2) {
|
||||||
"/defined\(ZEND_VM_SPEC\)/m",
|
"/defined\(ZEND_VM_SPEC\)/m",
|
||||||
"/ZEND_VM_C_LABEL\(\s*([A-Za-z_]*)\s*\)/m",
|
"/ZEND_VM_C_LABEL\(\s*([A-Za-z_]*)\s*\)/m",
|
||||||
"/ZEND_VM_C_GOTO\(\s*([A-Za-z_]*)\s*\)/m",
|
"/ZEND_VM_C_GOTO\(\s*([A-Za-z_]*)\s*\)/m",
|
||||||
|
"/^#if\s+1\s*\\|\\|.*[^\\\\]$/m",
|
||||||
|
"/^#if\s+0\s*&&.*[^\\\\]$/m"
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
$op1_type[$op1],
|
$op1_type[$op1],
|
||||||
|
@ -370,6 +372,8 @@ function gen_code($f, $spec, $kind, $code, $op1, $op2) {
|
||||||
($op1!="ANY"||$op2!="ANY")?"1":"0",
|
($op1!="ANY"||$op2!="ANY")?"1":"0",
|
||||||
"\\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2]):""),
|
"\\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2]):""),
|
||||||
"goto \\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2]):""),
|
"goto \\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2]):""),
|
||||||
|
"#if 1",
|
||||||
|
"#if 0",
|
||||||
),
|
),
|
||||||
$code);
|
$code);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue