Skip to content

Commit 8b31603

Browse files
committed
Rename to ZEND_AST_OP_ARRAY
1 parent c3d17c7 commit 8b31603

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Zend/zend_ast.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ ZEND_API zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
991991
}
992992
return SUCCESS;
993993
}
994-
case ZEND_AST_CLOSURE_CONSTEXPR:
994+
case ZEND_AST_OP_ARRAY:
995995
{
996996
zend_function *func = Z_PTR_P(&((zend_ast_zval*)(ast))->val);
997997

@@ -1077,7 +1077,7 @@ static size_t ZEND_FASTCALL zend_ast_tree_size(zend_ast *ast)
10771077
{
10781078
size_t size;
10791079

1080-
if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT || ast->kind == ZEND_AST_CLOSURE_CONSTEXPR) {
1080+
if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT || ast->kind == ZEND_AST_OP_ARRAY) {
10811081
size = sizeof(zend_ast_zval);
10821082
} else if (zend_ast_is_list(ast)) {
10831083
uint32_t i;
@@ -1104,9 +1104,9 @@ static size_t ZEND_FASTCALL zend_ast_tree_size(zend_ast *ast)
11041104

11051105
static void* ZEND_FASTCALL zend_ast_tree_copy(zend_ast *ast, void *buf)
11061106
{
1107-
if (ast->kind == ZEND_AST_CLOSURE_CONSTEXPR) {
1107+
if (ast->kind == ZEND_AST_OP_ARRAY) {
11081108
zend_ast_zval *new = (zend_ast_zval*)buf;
1109-
new->kind = ZEND_AST_CLOSURE_CONSTEXPR;
1109+
new->kind = ZEND_AST_OP_ARRAY;
11101110
new->attr = ast->attr;
11111111
ZVAL_COPY(&new->val, &((zend_ast_zval *) ast)->val);
11121112
Z_LINENO(new->val) = zend_ast_get_lineno(ast);
@@ -1192,7 +1192,7 @@ ZEND_API void ZEND_FASTCALL zend_ast_destroy(zend_ast *ast)
11921192
goto tail_call;
11931193
} else if (EXPECTED(ast->kind == ZEND_AST_ZVAL)) {
11941194
zval_ptr_dtor_nogc(zend_ast_get_zval(ast));
1195-
} else if (EXPECTED(ast->kind == ZEND_AST_CLOSURE_CONSTEXPR)) {
1195+
} else if (EXPECTED(ast->kind == ZEND_AST_OP_ARRAY)) {
11961196
zval_ptr_dtor_nogc(&((zend_ast_zval*)(ast))->val);
11971197
} else if (EXPECTED(zend_ast_is_list(ast))) {
11981198
zend_ast_list *list = zend_ast_get_list(ast);

Zend/zend_ast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
enum _zend_ast_kind {
3535
/* special nodes */
3636
ZEND_AST_ZVAL = 1 << ZEND_AST_SPECIAL_SHIFT,
37-
ZEND_AST_CLOSURE_CONSTEXPR,
37+
ZEND_AST_OP_ARRAY,
3838
ZEND_AST_CONSTANT,
3939
ZEND_AST_ZNODE,
4040

ext/opcache/zend_persist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static zend_ast *zend_persist_ast(zend_ast *ast)
176176
uint32_t i;
177177
zend_ast *node;
178178

179-
if (ast->kind == ZEND_AST_CLOSURE_CONSTEXPR) {
179+
if (ast->kind == ZEND_AST_OP_ARRAY) {
180180
zend_ast_zval *copy = zend_shared_memdup(ast, sizeof(zend_ast_zval));
181181
zend_persist_op_array(&copy->val);
182182
node = (zend_ast *) copy;

ext/opcache/zend_persist_calc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static void zend_persist_ast_calc(zend_ast *ast)
7777
{
7878
uint32_t i;
7979

80-
if (ast->kind == ZEND_AST_CLOSURE_CONSTEXPR) {
80+
if (ast->kind == ZEND_AST_OP_ARRAY) {
8181
ADD_SIZE(sizeof(zend_ast_zval));
8282
zend_persist_op_array_calc(&((zend_ast_zval*)(ast))->val);
8383
} else if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) {

0 commit comments

Comments
 (0)