Yukihiro "Matz" Matsumoto
2574adab48
compiler: allow "class A end" by tweaking the superclass rule like CRuby2.3
2015-08-11 16:27:48 +09:00
Yukihiro "Matz" Matsumoto
e4f32ad9ad
codegen: don't need to genop(); just update s->iseq directly
2015-08-10 15:19:32 +09:00
Yukihiro "Matz" Matsumoto
dfaff83eba
codegen: add peep hole optimization to skip overridden OP_MOVE
2015-08-10 15:11:00 +09:00
Yukihiro "Matz" Matsumoto
b34ee9a4b4
codegen: reserve stack region for OP_APOST; fix #2824
2015-08-10 14:55:48 +09:00
cremno
ca49936468
pop cmdarg in lambda body; fix [ruby-bug#11380]
...
regression introduced by 2fe556d9c0
2015-07-29 20:52:32 +02:00
Yukihiro "Matz" Matsumoto
1dbb2b74d3
Merge pull request #2874 from cremno/fix-parser-oob-write
...
Coverity: fix oob write by actually truncating buffer
2015-07-03 15:03:45 +09:00
cremno
24583a7a18
fix oob write by actually truncating buffer
...
Found by Coverity scan of polyfox-moon:
CID 121927 (#1 of 1): Out-of-bounds write (OVERRUN)
2015-07-03 01:30:54 +02:00
cremno
6a74b8bf0d
add missing fall through comments
2015-07-02 22:11:21 +02:00
Jurriaan Pruis
a41f5eb23f
Fix segfault found using afl-fuzz
2015-06-28 13:46:23 +02:00
Franck Verrot
2588507285
Remove unnecessary backticks.
...
Dr Markus Kuhn published in 1999 an article [1] explaining in details
why we shouldn't use the ASCII grave accent (0x60) as a left quotation.
Backticks have been used most notably to produce nice-looking LaTeX
documents but it doesn't seem to be an issue on modern platforms and
for the oldest ones, there are workarounds as mentioned by Dr Kuhn.
[1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2015-06-24 13:07:07 +02:00
cremno
b721d449e6
push only after OP_GETCONST in VAL mode; ref #2769
2015-06-02 07:57:27 +02:00
Yukihiro "Matz" Matsumoto
2f635f56cb
update lex.def using gperf 3.0.4
2015-06-01 21:57:53 +09:00
take_cheeze
6460ef77bc
Compile mruby compiler as mrbgem.
...
Compiler codes is moved to "mruby-compiler".
Executable `mrbc` is moved to "mruby-bin-mrbc".
2015-06-01 21:53:55 +09:00