Branch: Tag:

2013-10-09

2013-10-09 15:56:24 by Arne Goedeke <el@laramies.com>

compiler: use new block allocator for node_s

2771:       c->compilation_depth++;    -  if (!Pike_compiler->compiler_frame) { -  new_node_s_context(); -  } -  +     SET_SVAL_TYPE(tmp, T_PROGRAM);    if(!p)    {
2826:   #define PUSH   #include "compilation.h"    +  ba_init(&Pike_compiler->node_allocator, sizeof(struct node_s), 512); +     Pike_compiler->parent_identifier=id;    Pike_compiler->compiler_pass = pass;   
3315:    }       unuse_modules(Pike_compiler->num_used_modules); +  +  free_all_nodes(); +  +  ba_destroy(&Pike_compiler->node_allocator);   }      int sizeof_variable(int run_time_type)
4025:       exit_type_stack();    -  free_all_nodes(); +        CDFPRINTF((stderr,    "th(%ld) %p end_first_pass(%d): "