]> granicus.if.org Git - php/commitdiff
Slightly deduplicate code
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 16 Mar 2020 14:39:02 +0000 (15:39 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 16 Mar 2020 16:07:27 +0000 (17:07 +0100)
This code is the same in both branches, extract it.

ext/opcache/jit/zend_jit_x86.dasc

index b44b59038524257e80e2351cec8056402c59a359..fc200b309288232cce5a3b3a8a065321fdc0dc87 100644 (file)
@@ -1379,11 +1379,8 @@ static void* dasm_labels[zend_lb_MAX];
 |                      IF_GC_MAY_NOT_LEAK FCARG1a, eax, >4
 |                      // gc_possible_root(Z_COUNTED_P(z))
 |                      EXT_CALL gc_possible_root, r0
-||                     if (cold && ((op_info) & ((MAY_BE_ANY|MAY_BE_UNDEF)-(MAY_BE_OBJECT|MAY_BE_RESOURCE))) != 0) {
-|                              jmp >4
-|.code
-||                     }
-||             } else if (cold && ((op_info) & ((MAY_BE_ANY|MAY_BE_UNDEF)-(MAY_BE_OBJECT|MAY_BE_RESOURCE))) != 0) {
+||             }
+||             if (cold && ((op_info) & ((MAY_BE_ANY|MAY_BE_UNDEF)-(MAY_BE_OBJECT|MAY_BE_RESOURCE))) != 0) {
 |                      jmp >4
 |.code
 ||             }