@@ -378,7 +378,7 @@ void zend_init_compiler_data_structures(void) /* {{{ */
378
378
379
379
CG (encoding_declared ) = 0 ;
380
380
CG (memoized_exprs ) = NULL ;
381
- CG (memoize_mode ) = 0 ;
381
+ CG (memoize_mode ) = ZEND_MEMOIZE_NONE ;
382
382
}
383
383
/* }}} */
384
384
@@ -2377,13 +2377,9 @@ static void zend_emit_jmp_null(znode *obj_node, uint32_t bp_type)
2377
2377
zend_stack_push (& CG (short_circuiting_opnums ), & jmp_null_opnum );
2378
2378
}
2379
2379
2380
- #define ZEND_MEMOIZE_NONE 0
2381
- #define ZEND_MEMOIZE_COMPILE 1
2382
- #define ZEND_MEMOIZE_FETCH 2
2383
-
2384
2380
static void zend_compile_memoized_expr (znode * result , zend_ast * expr ) /* {{{ */
2385
2381
{
2386
- int memoize_mode = CG (memoize_mode );
2382
+ const zend_memoize_mode memoize_mode = CG (memoize_mode );
2387
2383
if (memoize_mode == ZEND_MEMOIZE_COMPILE ) {
2388
2384
znode memoized_result ;
2389
2385
@@ -9184,7 +9180,7 @@ static void zend_compile_assign_coalesce(znode *result, zend_ast *ast) /* {{{ */
9184
9180
/* Remember expressions compiled during the initial BP_VAR_IS lookup,
9185
9181
* to avoid double-evaluation when we compile again with BP_VAR_W. */
9186
9182
HashTable * orig_memoized_exprs = CG (memoized_exprs );
9187
- int orig_memoize_mode = CG (memoize_mode );
9183
+ const zend_memoize_mode orig_memoize_mode = CG (memoize_mode );
9188
9184
9189
9185
zend_ensure_writable_variable (var_ast );
9190
9186
if (is_this_fetch (var_ast )) {
0 commit comments