[php-src] jit-arm64: Temporary diable JIT for SWITCH and MATCH instructions (SWITCH should
| From: | Dmitry Stogov | Date: | Thu, 22 Apr 2021 23:54:31 +0000 |
| Subject: | [php-src] jit-arm64: Temporary diable JIT for SWITCH and MATCH instructions (SWITCH should | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-115774@lists.php.net to get a copy of this message | ||
Author: Dmitry Stogov (dstogov)
Date: 2021-04-23T02:53:24+03:00
Commit: https://github.com/php/php-src/commit/6df716b5d9ee08bf986142f89ded1f646c7e3565
Raw diff: https://github.com/php/php-src/commit/6df716b5d9ee08bf986142f89ded1f646c7e3565.diff
Temporary diable JIT for SWITCH and MATCH instructions (SWITCH should
work, MATCH is going to fail)
Changed paths:
M ext/opcache/jit/zend_jit.c
Diff:
diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c
index 6417b426f41e..52d9c686bd62 100644
--- a/ext/opcache/jit/zend_jit.c
+++ b/ext/opcache/jit/zend_jit.c
@@ -3288,13 +3288,14 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const
zend_op
goto jit_failure;
}
goto done;
- case ZEND_SWITCH_LONG:
- case ZEND_SWITCH_STRING:
- case ZEND_MATCH:
- if (!zend_jit_switch(&dasm_state, opline, op_array, ssa, NULL, NULL)) {
- goto jit_failure;
- }
- goto done;
+// TODO: Temorary disable JIT for switch and match. Restore it whem implemented!
+// case ZEND_SWITCH_LONG:
+// case ZEND_SWITCH_STRING:
+// case ZEND_MATCH:
+// if (!zend_jit_switch(&dasm_state, opline, op_array, ssa, NULL, NULL)) {
+// goto jit_failure;
+// }
+// goto done;
case ZEND_VERIFY_RETURN_TYPE:
if (opline->op1_type == IS_UNUSED) {
/* Always throws */