Francis Bogsanyi
|
964427f82c
|
Fix unsafe peephole optimization
Reported by https://hackerone.com/dkasak
|
2016-11-24 10:32:34 -05:00 |
|
Yukihiro "Matz" Matsumoto
|
22f73250db
|
redo should work well in for statement; fix #3275
|
2016-11-24 21:25:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
dc4be19aab
|
Add forgotten loop_pop() in NODE_OP_ASGN codegen
|
2016-11-24 10:01:03 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
669bbc70b0
|
codegen_scope should not keep old iseq ptr from irep
|
2016-11-23 21:08:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3f002b6993
|
fixed a bug when number of LHS and RHS differs; fix #3239
|
2016-11-11 04:37:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1142cf2037
|
fixed a bug with [] in RHS of multiple assignments; fix #3236
|
2016-11-08 22:18:41 +09:00 |
|
ksss
|
b1fa180ea3
|
Fix unexpected behavior with break
```
def yie
yield
end
def bre
yie {
1+1
break
}
end
p bre #=> display 2, but should be nil
```
|
2016-09-26 12:17:46 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
34ac707ea3
|
OP_ASGN vsp may be negative
reported by https://gist.github.com/miura1729/53fbd8af889c289a79108e38635b2378
fix proposed by @miura1729 in
https://github.com/miura1729/mruby/commit/b1b7933f7aa950cfb747b06327a0d0340f3e4ff8
|
2016-07-25 11:34:55 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
44de80f76d
|
fix a compiler warning for uninitialized variable
|
2016-06-10 10:11:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6b0299f72b
|
fixed remaining bugs in OP_ASGN stack adjustment; close #3159
|
2016-05-16 15:36:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
29d3a40418
|
stack adjustment after NODE_OP_ASGN with NODE_CALL was wrong; fix #3159
|
2016-05-16 01:49:24 +09:00 |
|
cremno
|
309791b3ae
|
raise the error at runtime; fix #3152
|
2016-05-09 16:57:56 +02:00 |
|
Yukihiro "Matz" Matsumoto
|
e1e888e354
|
fix too much optimization for ||=
|
2016-04-01 01:22:16 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d098d823de
|
fix duplicated eval in op_asgn
`a` in `a.m += c` or `a[b] += c` should be evaluated only once.
|
2016-03-30 20:43:57 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4979b52d61
|
reduce OP_ARRAY in argument splat
|
2016-03-30 01:35:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3886becec5
|
better code generation for ||=; #3138
|
2016-03-24 16:03:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
21a3ae08f7
|
add safe-navigation (aka lonely) operator &.
|
2016-03-23 08:51:25 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a02acf2635
|
rescue NameError from class variable access like @@foo ||= 42; fix #3138
|
2016-03-21 03:49:08 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b8479b62d8
|
too many register push for else-less condtions; fix #3117
|
2016-02-22 09:55:51 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
819c9da8d2
|
peephole optimization for LOADNIL before STRCAT; ref #3110
|
2016-02-17 11:03:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d8fc09cf92
|
push value for NULL AST when value is required; fix #3110
|
2016-02-17 11:02:29 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5c405dea3d
|
include changed from by quotes ("") to by brackets (<>); close #3032
|
2015-11-27 17:48:23 +09:00 |
|
Simon Génier
|
40f237e938
|
Fix typo on MRB_DISABLE_STDIO.
|
2015-11-19 17:03:34 -05:00 |
|
Yukihiro "Matz" Matsumoto
|
4440566b95
|
DISABLE_STDIO/ENABLE_DEBUG macros to rename; close #3014
changes:
* rename DISABLE_STDIO -> MRB_DISABLE_STDIO
* rename ENABLE_DEBUG -> MRB_ENABLE_DEBUG_HOOK
* no more opposite macro definitions (e.g. ENABLE_STDIO, DISABLE_DEBUG).
* rewrite above macro references throughout the code.
* update documents
|
2015-11-17 07:30:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
0a94c69cc3
|
optimize if statement with constant condition
|
2015-10-01 19:29:05 +09:00 |
|
takahashim
|
f187fdd996
|
support Regexp literal option: //n and //u
|
2015-09-26 09:41:38 +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 |
|
Jurriaan Pruis
|
a41f5eb23f
|
Fix segfault found using afl-fuzz
|
2015-06-28 13:46:23 +02:00 |
|
cremno
|
b721d449e6
|
push only after OP_GETCONST in VAL mode; ref #2769
|
2015-06-02 07:57:27 +02: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 |
|