[ruby-cvs:57081] ko1:r49932 (trunk): * include/ruby/ruby.h: introduce new type T_IMEMO.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Mar 11 19:36:19 JST 2015


ko1	2015-03-11 19:36:17 +0900 (Wed, 11 Mar 2015)

  New Revision: 49932

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

  Log:
    * include/ruby/ruby.h: introduce new type T_IMEMO.
      T_IMEMO is Internal Memo type, internal use only.
      T_IMEMO has same purpose of NODE_MEMO.
      To insert T_IMEMO, type numbers are modified a little.
    * internal.h: define struct RIMemo. Each RIMemo objects
      has imemo_type. We can observe it by the imemo_type() function.
    * gc.c (rb_imemo_new): added.
    * node.h: remove NODE_CREF and NEW_CREF().
    * node.c (rb_gc_mark_node): ditto.
    * vm.c (vm_cref_new): use rb_imem_new().
    * vm_eval.c: ditto.
    * vm_eval.c (eval_string_with_cref):
    * vm_eval.c (rb_type_str):
    * vm_insnhelper.c: use RIMemo objects for CREF.
    * ext/objspace/objspace.c: support T_IMEMO.

  Modified files:
    trunk/ChangeLog
    trunk/ext/objspace/objspace.c
    trunk/gc.c
    trunk/include/ruby/ruby.h
    trunk/internal.h
    trunk/node.c
    trunk/node.h
    trunk/vm.c
    trunk/vm_eval.c
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list