From: Dmitry Stogov Date: Mon, 14 Dec 2020 12:29:21 +0000 (+0300) Subject: Remove unused flag X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3377028dcd418ea7dfbd772e25c67727df28609;p=php Remove unused flag --- diff --git a/ext/opcache/Optimizer/zend_dump.c b/ext/opcache/Optimizer/zend_dump.c index 73ddd77a98..cb835574d8 100644 --- a/ext/opcache/Optimizer/zend_dump.c +++ b/ext/opcache/Optimizer/zend_dump.c @@ -319,11 +319,6 @@ static void zend_dump_type_info(uint32_t info, zend_class_entry *ce, int is_inst fprintf(stderr, "resource"); } } -//TODO: this is useful only for JIT??? - if (info & MAY_BE_IN_REG) { - if (first) first = 0; else fprintf(stderr, ", "); - fprintf(stderr, "reg"); - } fprintf(stderr, "]"); } diff --git a/ext/opcache/Optimizer/zend_inference.h b/ext/opcache/Optimizer/zend_inference.h index 6b1021a4cc..212679df5e 100644 --- a/ext/opcache/Optimizer/zend_inference.h +++ b/ext/opcache/Optimizer/zend_inference.h @@ -29,7 +29,7 @@ #define MAY_BE_PACKED_GUARD (1<<27) /* needs packed array guard */ #define MAY_BE_CLASS_GUARD (1<<27) /* needs class guard */ #define MAY_BE_GUARD (1<<28) /* needs type guard */ -#define MAY_BE_IN_REG (1<<29) /* value allocated in CPU register */ +//#define MAY_BE_IN_REG (1<<29) /* deprecated and not used */ //TODO: remome MAY_BE_RC1, MAY_BE_RCN??? #define MAY_BE_RC1 (1<<30) /* may be non-reference with refcount == 1 */