Skip to content

Commit 81df7c5

Browse files
committed
Reduce changes
1 parent 3ad91c8 commit 81df7c5

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,9 +1729,9 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
17291729
on_this = 0;
17301730
if (opline->op1_type == IS_UNUSED) {
17311731
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
1732+
ce = op_array->scope;
17321733
/* scope is NULL for closures. */
1733-
if (op_array->scope) {
1734-
ce = op_array->scope;
1734+
if (ce) {
17351735
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
17361736
}
17371737
op1_addr = 0;
@@ -1780,9 +1780,9 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
17801780
on_this = 0;
17811781
if (opline->op1_type == IS_UNUSED) {
17821782
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
1783+
ce = op_array->scope;
17831784
/* scope is NULL for closures. */
1784-
if (op_array->scope) {
1785-
ce = op_array->scope;
1785+
if (ce) {
17861786
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
17871787
}
17881788
op1_addr = 0;
@@ -1824,9 +1824,9 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
18241824
on_this = 0;
18251825
if (opline->op1_type == IS_UNUSED) {
18261826
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
1827+
ce = op_array->scope;
18271828
/* scope is NULL for closures. */
1828-
if (op_array->scope) {
1829-
ce = op_array->scope;
1829+
if (ce) {
18301830
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
18311831
}
18321832
op1_addr = 0;
@@ -2300,9 +2300,9 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
23002300
if (opline->op1_type == IS_UNUSED) {
23012301
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
23022302
op1_addr = 0;
2303+
ce = op_array->scope;
23032304
/* scope is NULL for closures. */
2304-
if (op_array->scope) {
2305-
ce = op_array->scope;
2305+
if (ce) {
23062306
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
23072307
}
23082308
on_this = 1;
@@ -2454,9 +2454,9 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
24542454
if (opline->op1_type == IS_UNUSED) {
24552455
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
24562456
op1_addr = 0;
2457+
ce = op_array->scope;
24572458
/* scope is NULL for closures. */
2458-
if (op_array->scope) {
2459-
ce = op_array->scope;
2459+
if (ce) {
24602460
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
24612461
}
24622462
on_this = 1;

ext/opcache/jit/zend_jit_trace.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4650,9 +4650,9 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
46504650
op1_indirect = 0;
46514651
if (opline->op1_type == IS_UNUSED) {
46524652
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
4653+
ce = op_array->scope;
46534654
/* scope is NULL for closures. */
4654-
if (op_array->scope) {
4655-
ce = op_array->scope;
4655+
if (ce) {
46564656
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
46574657
}
46584658
op1_addr = 0;
@@ -4744,9 +4744,9 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
47444744
op1_indirect = 0;
47454745
if (opline->op1_type == IS_UNUSED) {
47464746
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
4747+
ce = op_array->scope;
47474748
/* scope is NULL for closures. */
4748-
if (op_array->scope) {
4749-
ce = op_array->scope;
4749+
if (ce) {
47504750
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
47514751
}
47524752
op1_addr = 0;
@@ -4827,9 +4827,9 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
48274827
op1_indirect = 0;
48284828
if (opline->op1_type == IS_UNUSED) {
48294829
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
4830+
ce = op_array->scope;
48304831
/* scope is NULL for closures. */
4831-
if (op_array->scope) {
4832-
ce = op_array->scope;
4832+
if (ce) {
48334833
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
48344834
}
48354835
op1_addr = 0;
@@ -5888,9 +5888,9 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
58885888
op1_indirect = 0;
58895889
if (opline->op1_type == IS_UNUSED) {
58905890
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
5891+
ce = op_array->scope;
58915892
/* scope is NULL for closures. */
5892-
if (op_array->scope) {
5893-
ce = op_array->scope;
5893+
if (ce) {
58945894
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
58955895
}
58965896
op1_addr = 0;
@@ -6170,9 +6170,9 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
61706170
ce_is_instanceof = 0;
61716171
if (opline->op1_type == IS_UNUSED) {
61726172
op1_info = MAY_BE_OBJECT|MAY_BE_RC1|MAY_BE_RCN;
6173+
ce = op_array->scope;
61736174
/* scope is NULL for closures. */
6174-
if (op_array->scope) {
6175-
ce = op_array->scope;
6175+
if (ce) {
61766176
ce_is_instanceof = (ce->ce_flags & ZEND_ACC_FINAL) != 0;
61776177
}
61786178
op1_addr = 0;

0 commit comments

Comments
 (0)