Lines Matching refs:ast
346 static void zend_file_cache_serialize_ast(zend_ast *ast, argument
354 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) {
355 zend_file_cache_serialize_zval(&((zend_ast_zval*)ast)->val, script, info, buf);
356 } else if (zend_ast_is_list(ast)) {
357 zend_ast_list *list = zend_ast_get_list(ast);
366 } else if (ast->kind == ZEND_AST_OP_ARRAY) {
368 SERIALIZE_PTR(Z_PTR(((zend_ast_zval*)ast)->val));
370 uint32_t children = zend_ast_get_num_children(ast);
372 if (ast->child[i] && !IS_SERIALIZED(ast->child[i])) {
373 SERIALIZE_PTR(ast->child[i]);
374 tmp = ast->child[i];
405 zend_ast_ref *ast; local
408 ast = Z_AST_P(zv);
409 UNSERIALIZE_PTR(ast);
410 zend_file_cache_serialize_ast(GC_AST(ast), script, info, buf);
1232 static void zend_file_cache_unserialize_ast(zend_ast *ast, argument
1238 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) {
1239 zend_file_cache_unserialize_zval(&((zend_ast_zval*)ast)->val, script, buf);
1240 } else if (zend_ast_is_list(ast)) {
1241 zend_ast_list *list = zend_ast_get_list(ast);
1248 } else if (ast->kind == ZEND_AST_OP_ARRAY) {
1250 UNSERIALIZE_PTR(Z_PTR(((zend_ast_zval*)ast)->val));
1252 uint32_t children = zend_ast_get_num_children(ast);
1254 if (ast->child[i] && !IS_UNSERIALIZED(ast->child[i])) {
1255 UNSERIALIZE_PTR(ast->child[i]);
1256 zend_file_cache_unserialize_ast(ast->child[i], script, buf);