[ruby-cvs:62165] naruse:r55002 (trunk): * iseq.h (struct iseq_compile_data): use struct rb_id_table

naruse at ruby-lang.org naruse at ruby-lang.org
Sun May 15 03:43:12 JST 2016


naruse	2016-05-15 03:43:11 +0900 (Sun, 15 May 2016)

  New Revision: 55002

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55002

  Log:
    * iseq.h (struct iseq_compile_data): use struct rb_id_table
      instead of st_table.
    
    * iseq.c (prepare_iseq_build): don't allocate ivar_cache_table
      until it has at least one element.
    
    * iseq.c (compile_data_free): free ivar_cache_table only if it
      is allocated.
    
    * compile.c (get_ivar_ic_value): allocate if the table is not
      allocated yet.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/iseq.c
    trunk/iseq.h


More information about the ruby-cvs mailing list