Lines Matching refs:zend_ast
26 ZEND_API zend_ast *zend_ast_create_constant(zval *zv) in zend_ast_create_constant()
28 zend_ast *ast = emalloc(sizeof(zend_ast) + sizeof(zval)); in zend_ast_create_constant()
36 ZEND_API zend_ast* zend_ast_create_unary(uint kind, zend_ast *op0) in zend_ast_create_unary()
38 zend_ast *ast = emalloc(sizeof(zend_ast)); in zend_ast_create_unary()
45 ZEND_API zend_ast* zend_ast_create_binary(uint kind, zend_ast *op0, zend_ast *op1) in zend_ast_create_binary()
47 zend_ast *ast = emalloc(sizeof(zend_ast) + sizeof(zend_ast*)); in zend_ast_create_binary()
55 ZEND_API zend_ast* zend_ast_create_ternary(uint kind, zend_ast *op0, zend_ast *op1, zend_ast *op2) in zend_ast_create_ternary()
57 zend_ast *ast = emalloc(sizeof(zend_ast) + sizeof(zend_ast*) * 2); in zend_ast_create_ternary()
66 ZEND_API zend_ast* zend_ast_create_dynamic(uint kind) in zend_ast_create_dynamic()
68 zend_ast *ast = emalloc(sizeof(zend_ast) + sizeof(zend_ast*) * 3); /* use 4 children as deafult */ in zend_ast_create_dynamic()
74 ZEND_API void zend_ast_dynamic_add(zend_ast **ast, zend_ast *op) in zend_ast_dynamic_add()
77 *ast = erealloc(*ast, sizeof(zend_ast) + sizeof(zend_ast*) * ((*ast)->children * 2 + 1)); in zend_ast_dynamic_add()
82 ZEND_API void zend_ast_dynamic_shrink(zend_ast **ast) in zend_ast_dynamic_shrink()
84 *ast = erealloc(*ast, sizeof(zend_ast) + sizeof(zend_ast*) * ((*ast)->children - 1)); in zend_ast_dynamic_shrink()
87 ZEND_API int zend_ast_is_ct_constant(zend_ast *ast) in zend_ast_is_ct_constant()
105 ZEND_API void zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope TSRMLS_DC) in zend_ast_evaluate()
350 ZEND_API zend_ast *zend_ast_copy(zend_ast *ast) in zend_ast_copy()
355 zend_ast *copy = zend_ast_create_constant(ast->u.val); in zend_ast_copy()
359 zend_ast *new = emalloc(sizeof(zend_ast) + sizeof(zend_ast*) * (ast->children - 1)); in zend_ast_copy()
371 ZEND_API void zend_ast_destroy(zend_ast *ast) in zend_ast_destroy()