[#66126] Creation/Conversion methods/functions table for Ruby types — SASADA Koichi <ko1@...>
Hi,
5 messages
2014/11/07
[#66248] [ruby-trunk - Feature #10423] [PATCH] opt_str_lit*: avoid literal string allocations — normalperson@...
Issue #10423 has been updated by Eric Wong.
3 messages
2014/11/13
[#66595] [ruby-trunk - Bug #10557] [Open] Block not given when the argument is a string — bartosz@...
Issue #10557 has been reported by Bartosz Kopinski.
3 messages
2014/11/30
[ruby-core:66450] Re: [ruby-trunk - Feature #8543] rb_iseq_load
From:
Eric Wong <normalperson@...>
Date:
2014-11-25 02:01:25 UTC
List:
ruby-core #66450
Sorry, the inline patch was an extremely hacky work-in-progress,
but I think rb_iseq_load_fix@v1.txt should've been OK with your
(non keyword) use cases.
Here is a slightly less broken, but still hacky work-in-progress:
http://80x24.org/spew/m/rb_iseq_load_fix@v3.txt
http://80x24.org/spew/m/rb_iseq_load_fix@v3.txt
This is on top of r48554, which was purely a cleanup commit in
preparation for this.
Notable changes since v1 (and my WIP v2):
- iseq#to_ary dumps :kwbits => iseq->params.keyword->bits_start
Current hacks:
* peephole optimization seems to be not idempotent wrt jump elimination
A second pass (optimize => to_ary => load(optimize) eliminates
extra useless jumps such as:
jump LABEL
LABEL:
I currently disable peephole optimization to on load to avoid
running the optimizer twice, but ideally, the first pass should
eliminate the above jump insn.
* iseq->stack_size seems not calculated correctly upon load,
so I'm currently blindly loading it from the misc hash :x