1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/objspace
ko1 08f3cfb585 * internal.h: use T_IMEMO to represent `struct MEMO' value.
memo->v1 and memo->v2 is WB protected values.
  So use MEMO_V1/V2_SET() macros to set these values.
  memo->u3 is ambiguous (sometimes a VALUE, sometimes an integer
  value), so use gc_mark_maybe() in gc.c to mark it.
  Rename NEW_MEMO() to MEMO_NEW().
  Move MEMO_FOR and NEW_MEMO_FOF macros from node.h.
  Export a rb_imemo_new() function for ext/ripper.
* node.h: remove NODE_MEMO.
* enum.c: catch up these change.
* enumerator.c: ditto.
* load.c: ditto.
* ext/objspace/objspace.c (count_nodes): ditto.
* gc.c (gc_mark_children): mark imemo_memo type.
* parse.y (new_args_gen): use T_IMEMO.
  (I'm not sure it is working correctly...)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-11 23:13:01 +00:00
..
depend Update dependencies. 2014-12-19 13:34:54 +00:00
extconf.rb * tool/update-deps (in_makefile): Use FILES_NEED_VPATH and 2014-11-21 03:04:10 +00:00
object_tracing.c * internal.h: Include ruby.h and ruby/encoding.h to be 2014-11-15 11:49:06 +00:00
objspace.c * internal.h: use T_IMEMO to represent `struct MEMO' value. 2015-03-11 23:13:01 +00:00
objspace.h * ext/objspace/object_tracing.c: Add experimental methods to dump 2013-11-08 17:06:55 +00:00
objspace_dump.c * internal.h: Include ruby.h and ruby/encoding.h to be 2014-11-15 11:49:06 +00:00