- 03 Aug, 2021 13 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
- need to detect zero division error - support floating point number argument (as `%`)
-
Yukihiro "Matz" Matsumoto authored
This reverts commit 3738d62a. The change changed the behavior with floating point numbers.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
`mrb_as_int` implicitly converts the value into the integer, but those methods are defined for Integer class so that the value should always be integers.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_fixnum_value()` only when you are absolutely sure that the value is within `Fixnum` range, i.e. 31 bits signed integer at least.
-
Yukihiro "Matz" Matsumoto authored
The `Fixnum` class is no longer provided by `mruby`.
-
Yukihiro "Matz" Matsumoto authored
-
- 02 Aug, 2021 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 01 Aug, 2021 7 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
For example, `while false; ...; end` should be removed.
-
Yukihiro "Matz" Matsumoto authored
-
- 31 Jul, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
It rescans `s->iseq` so that peephole optimizer can take multiple previous instructions for constant folding, etc.
-
- 30 Jul, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
-
- 29 Jul, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
`while` and `until` generates in `cond` `jmpif` `body` `jmp` order. It used to be in `jmp` `body` `cond` `jmpif` order.
-
- 28 Jul, 2021 7 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
- `pc0`: `next` destination - `pc1`: `redo` destination (renamed from `pc2`) - `pc3`: `break` destination (renamed from `pc3`) old `pc1` was unused so removed.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
```ruby p ((while true; p 1; break; end)) ``` should print `1 nil` but was `1`.
-
Yukihiro "Matz" Matsumoto authored
pre-commit autoupdate
-
-
- 26 Jul, 2021 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Also, now too big capture group index just gives `nil`, not error.
-
Yukihiro "Matz" Matsumoto authored
-