ruby/ext/ripper
Jemma Issroff 5246f4027e Transition shape when object's capacity changes
This commit adds a `capacity` field to shapes, and adds shape
transitions whenever an object's capacity changes. Objects which are
allocated out of a bigger size pool will also make a transition from the
root shape to the shape with the correct capacity for their size pool
when they are allocated.

This commit will allow us to remove numiv from objects completely, and
will also mean we can guarantee that if two objects share shapes, their
IVs are in the same positions (an embedded and extended object cannot
share shapes). This will enable us to implement ivar sets in YJIT using
object shapes.

Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
2022-11-10 10:11:34 -05:00
..
lib ext/ripper/lib/ripper/lexer.rb: Do not deprecate Ripper::Lexer::State#[] 2021-12-09 00:30:17 +09:00
tools Set default %printer for NODE nterms 2022-11-08 12:30:03 +09:00
depend Transition shape when object's capacity changes 2022-11-10 10:11:34 -05:00
eventids2.c Suppress warnings by gcc 10.1.0-RC-20200430 2020-05-04 12:28:24 +09:00
extconf.rb Keep the generated source files when clean [Bug #18363] 2021-11-25 19:16:39 +09:00
README

Ripper README
=============

  Ripper is a Ruby script parser.  You can get information
  by event-based style from the parser.

  !! WARNING !!

  Ripper is still early-alpha version.
  I never assure any kind of backward compatibility.

Requirements
------------

  * ruby 1.9 (support CVS HEAD only)
  * bison 1.28 or later (Other yaccs do not work)

Usage
-----

  See test/ripper/* and sample/ripper/*.

License
-------

  Ruby License.

                                                Minero Aoki
                                        aamine@loveruby.net
                                      http://i.loveruby.net