From 67828abca7a93f5db7366f39fd8ce9aa5c34e79c Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 9 Jul 2020 11:31:53 +0300 Subject: [PATCH] Align jumptables --- ext/opcache/jit/zend_jit_x86.dasc | 3 +++ 1 file changed, 3 insertions(+) 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]; -- 2.40.0