]> granicus.if.org Git - php/commitdiff
Use different scratch register in read_obj
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 18 Mar 2020 08:56:23 +0000 (09:56 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 18 Mar 2020 10:44:34 +0000 (11:44 +0100)
We already use r0 to hold the zval.

ext/opcache/jit/zend_jit_x86.dasc

index 7cf542636c2b11ad87b74ca4d1ceac84f3cab8e4..de5f036059cf917fb3bb7a656c3a9a96bfa2abc6 100644 (file)
@@ -10340,7 +10340,7 @@ static int zend_jit_fetch_obj_read(dasm_State **Dst, const zend_op *opline, cons
        if ((op1_info & ((MAY_BE_UNDEF|MAY_BE_ANY|MAY_BE_REF)- MAY_BE_OBJECT))  && zend_jit_trigger != ZEND_JIT_ON_HOT_TRACE) {
                |7:
                if (opline->opcode == ZEND_FETCH_OBJ_R) {
-                       |       SAVE_VALID_OPLINE opline, r0
+                       |       SAVE_VALID_OPLINE opline, r1
                        if (op1_info & MAY_BE_UNDEF) {
                                if (op1_info & MAY_BE_ANY) {
                                        |       IF_NOT_ZVAL_TYPE op1_addr, IS_UNDEF, >1