summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-07-09 11:31:53 +0300
committerDmitry Stogov <dmitry@zend.com>2020-07-09 11:31:53 +0300
commit67828abca7a93f5db7366f39fd8ce9aa5c34e79c (patch)
tree0ddaf325390151a52d75ce35657b1e3aeee47c13
parent15c6b673a20379747ec9c83f8a21c75dd538afc9 (diff)
downloadphp-git-67828abca7a93f5db7366f39fd8ce9aa5c34e79c.tar.gz
Align jumptables
-rw-r--r--ext/opcache/jit/zend_jit_x86.dasc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc
index f6e648ae1f..25678e206a 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -11446,6 +11446,7 @@ static int zend_jit_switch(dasm_State **Dst, const zend_op *opline, const zend_o
|.endif
|3:
|.cold_code
+ |.align aword
|4:
p = jumptable->arData;
do {
@@ -11476,6 +11477,7 @@ static int zend_jit_switch(dasm_State **Dst, const zend_op *opline, const zend_o
| jmp aword [r0 + >4]
|3:
|.cold_code
+ |.align aword
|4:
ZEND_HASH_FOREACH_VAL(jumptable, val) {
b = ssa->cfg.map[ZEND_OFFSET_TO_OPLINE(opline, Z_LVAL_P(val)) - op_array->opcodes];
@@ -11521,6 +11523,7 @@ static int zend_jit_switch(dasm_State **Dst, const zend_op *opline, const zend_o
| jmp aword [r0 + >4]
|3:
|.cold_code
+ |.align aword
|4:
ZEND_HASH_FOREACH_VAL(jumptable, val) {
b = ssa->cfg.map[ZEND_OFFSET_TO_OPLINE(opline, Z_LVAL_P(val)) - op_array->opcodes];