src/hotspot/share/c1/c1_GraphBuilder.cpp
changeset 51333 f6641fcf7b7e
parent 50113 caf115bb98ad
child 51444 3e5d28e6de32
equal deleted inserted replaced
51332:c25572739e7c 51333:f6641fcf7b7e
   100 BlockListBuilder::BlockListBuilder(Compilation* compilation, IRScope* scope, int osr_bci)
   100 BlockListBuilder::BlockListBuilder(Compilation* compilation, IRScope* scope, int osr_bci)
   101  : _compilation(compilation)
   101  : _compilation(compilation)
   102  , _scope(scope)
   102  , _scope(scope)
   103  , _blocks(16)
   103  , _blocks(16)
   104  , _bci2block(new BlockList(scope->method()->code_size(), NULL))
   104  , _bci2block(new BlockList(scope->method()->code_size(), NULL))
   105  , _next_block_number(0)
       
   106  , _active()         // size not known yet
   105  , _active()         // size not known yet
   107  , _visited()        // size not known yet
   106  , _visited()        // size not known yet
       
   107  , _loop_map() // size not known yet
   108  , _next_loop_index(0)
   108  , _next_loop_index(0)
   109  , _loop_map() // size not known yet
   109  , _next_block_number(0)
   110 {
   110 {
   111   set_entries(osr_bci);
   111   set_entries(osr_bci);
   112   set_leaders();
   112   set_leaders();
   113   CHECK_BAILOUT();
   113   CHECK_BAILOUT();
   114 
   114 
   678   , _bci2block(NULL)
   678   , _bci2block(NULL)
   679   , _scope(NULL)
   679   , _scope(NULL)
   680   , _has_handler(false)
   680   , _has_handler(false)
   681   , _stream(NULL)
   681   , _stream(NULL)
   682   , _work_list(NULL)
   682   , _work_list(NULL)
       
   683   , _caller_stack_size(-1)
       
   684   , _continuation(NULL)
   683   , _parsing_jsr(false)
   685   , _parsing_jsr(false)
   684   , _jsr_xhandlers(NULL)
   686   , _jsr_xhandlers(NULL)
   685   , _caller_stack_size(-1)
       
   686   , _continuation(NULL)
       
   687   , _num_returns(0)
   687   , _num_returns(0)
   688   , _cleanup_block(NULL)
   688   , _cleanup_block(NULL)
   689   , _cleanup_return_prev(NULL)
   689   , _cleanup_return_prev(NULL)
   690   , _cleanup_state(NULL)
   690   , _cleanup_state(NULL)
   691   , _ignore_return(false)
   691   , _ignore_return(false)
  3193 }
  3193 }
  3194 
  3194 
  3195 
  3195 
  3196 GraphBuilder::GraphBuilder(Compilation* compilation, IRScope* scope)
  3196 GraphBuilder::GraphBuilder(Compilation* compilation, IRScope* scope)
  3197   : _scope_data(NULL)
  3197   : _scope_data(NULL)
       
  3198   , _compilation(compilation)
       
  3199   , _memory(new MemoryBuffer())
       
  3200   , _inline_bailout_msg(NULL)
  3198   , _instruction_count(0)
  3201   , _instruction_count(0)
  3199   , _osr_entry(NULL)
  3202   , _osr_entry(NULL)
  3200   , _memory(new MemoryBuffer())
       
  3201   , _compilation(compilation)
       
  3202   , _inline_bailout_msg(NULL)
       
  3203 {
  3203 {
  3204   int osr_bci = compilation->osr_bci();
  3204   int osr_bci = compilation->osr_bci();
  3205 
  3205 
  3206   // determine entry points and bci2block mapping
  3206   // determine entry points and bci2block mapping
  3207   BlockListBuilder blm(compilation, scope, osr_bci);
  3207   BlockListBuilder blm(compilation, scope, osr_bci);