@@ -213,37 +213,6 @@ typedef struct _zend_ast_decl {
213
213
zend_ast * child [5 ];
214
214
} zend_ast_decl ;
215
215
216
- typedef union _znode_op {
217
- uint32_t constant ;
218
- uint32_t var ;
219
- uint32_t num ;
220
- uint32_t opline_num ; /* Needs to be signed */
221
- #if ZEND_USE_ABS_JMP_ADDR
222
- zend_op * jmp_addr ;
223
- #else
224
- uint32_t jmp_offset ;
225
- #endif
226
- #if ZEND_USE_ABS_CONST_ADDR
227
- zval * zv ;
228
- #endif
229
- } znode_op ;
230
-
231
- typedef struct _znode { /* used only during compilation */
232
- uint8_t op_type ;
233
- uint8_t flag ;
234
- union {
235
- znode_op op ;
236
- zval constant ; /* replaced by literal/zv */
237
- } u ;
238
- } znode ;
239
-
240
- typedef struct _zend_ast_znode {
241
- zend_ast_kind kind ;
242
- zend_ast_attr attr ;
243
- uint32_t lineno ;
244
- znode node ;
245
- } zend_ast_znode ;
246
-
247
216
typedef void (* zend_ast_process_t )(zend_ast * ast );
248
217
extern ZEND_API zend_ast_process_t zend_ast_process ;
249
218
@@ -255,7 +224,6 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_zval_from_long(zend_long lval)
255
224
256
225
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_constant (zend_string * name , zend_ast_attr attr );
257
226
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_class_const_or_name (zend_ast * class_name , zend_ast * name );
258
- ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_znode (znode * node );
259
227
260
228
#if ZEND_AST_SPEC
261
229
# define ZEND_AST_SPEC_CALL (name , ...) \
@@ -392,10 +360,6 @@ static zend_always_inline uint32_t zend_ast_get_lineno(zend_ast *ast) {
392
360
}
393
361
}
394
362
395
- static zend_always_inline znode * zend_ast_get_znode (zend_ast * ast ) {
396
- return & ((zend_ast_znode * ) ast )-> node ;
397
- }
398
-
399
363
static zend_always_inline zend_ast * zend_ast_create_binary_op (uint32_t opcode , zend_ast * op0 , zend_ast * op1 ) {
400
364
return zend_ast_create_ex (ZEND_AST_BINARY_OP , opcode , op0 , op1 );
401
365
}
0 commit comments