| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-01-06 | Avoid creating temporary objects in `read_irep_record_1`; close #4920 | Yukihiro "Matz" Matsumoto | |
| The basic idea of this change is from @dearblue. Note: the arguments of `mrb_str_pool()` have changed, but the function is provided for internal use (No `MRB_API`). So basically you don't have to worry about the change. | |||
| 2020-01-05 | Fix ainfo with keyword arguments; fix #4921 | dearblue | |
| 2019-12-09 | Implement numbered parameters | Ukrainskiy Sergey | |
| 2019-10-11 | Move exception raising to `scope_new`. | Yukihiro "Matz" Matsumoto | |
| Besides that fix bugs that mistakenly calls `raise_error` that emits code to raise runtime error instead of `codegen_error` that terminates code generation immediately. | |||
| 2019-09-28 | Remove unused node type in `codegen()` | KOBAYASHI Shuji | |
| 2019-09-26 | Use type predicate macros instead of `mrb_type` if possible | KOBAYASHI Shuji | |
| For efficiency with `MRB_WORD_BOXING` (implement type predicate macros for all `enum mrb_vtype`). | |||
| 2019-09-25 | Rename symbol-to-string functions; close #4684 | Yukihiro "Matz" Matsumoto | |
| * mrb_sym2name -> mrb_sym_name * mrb_sym2name_len -> mrb_sym_name_len * mrb_sym2str -> mrb_sym_str | |||
| 2019-08-31 | Skip `nil?` method call in `if` conditionals. | Yukihiro "Matz" Matsumoto | |
| Compile `if expr.nil?` to use `OP_JMPNIL` instead of calls. | |||
| 2019-08-20 | Fixed a bug in the `OP_JMPNOT` optimization (13eaff4); fix #4644 | Yukihiro "Matz" Matsumoto | |
| 2019-08-18 | Prohibit changes to iseq in principle | dearblue | |
| 2019-08-17 | Remove unnecessary `OP_JMPNOT` for `unless` statement. | Yukihiro "Matz" Matsumoto | |
| 2019-08-16 | Avoid creating unnecessary empty arrays on splat. | Yukihiro "Matz" Matsumoto | |
| But this changes requires `OP_ARYCAT` and `OP_ARYPUSH` to accept `nil` as their first operand. Alternative VMs (e.g. `mruby/c`) that understand mruby bytecode need to be updated. | |||
| 2019-08-05 | Use new specifiers/modifiers of `mrb_vfromat()` | KOBAYASHI Shuji | |
| The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in my environment than before the introduction of new specifiers/modifiers (5116789a) with this change. ------------+-------------------+-------------------+-------- BINARY | BEFORE (5116789a) | AFTER (This PR) | RATIO ------------+-------------------+-------------------+-------- mruby | 593416 bytes | 593208 bytes | -0.04% libmruby.a | 769048 bytes | 767264 bytes | -0.23% ------------+-------------------+-------------------+-------- BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613, so I put it back. | |||
| 2019-04-14 | Fix leaked function symbols | dearblue | |
| - `free_heap()` in src/gc.c - `symhash()` in src/symbol.c - `no_optimize()` in mrbgems/mruby-compiler/core/codegen.c | |||
| 2019-04-12 | Deallocate `s->lines` in `codegen_error`; ref #4370 | Yukihiro "Matz" Matsumoto | |
| 2019-04-12 | The number of local variables should be less than 1024; fix #4370 | Yukihiro "Matz" Matsumoto | |
| The `env` stores stack length in a 10 bit field. See `MRB_ENV_STACK_LEN()` macro. | |||
| 2019-04-01 | Avoid keeping pointers from `mrb_sym2name_len()`; fix #4342 | Yukihiro "Matz" Matsumoto | |
| The addresses for packed inline symbols reference `mrb->symbuf` that could be overridden by the later call of `mrb_sym2name_len`. Since file names in call stack information are kept as symbols, keeping the address in the C structures could cause problems like #4342. This changes small incompatible changes in function prototypes: * `mrb_parser_get_filename`: return value changed to `mrb_sym`. * `mrb_debug_get_filename`: add `mrb_state*` as a first argument. * `mrb_debug_get_line`: ditto. I believe above functions are almost internal, and no third-party mrbgem use them. | |||
| 2019-02-18 | Use key argument register for `OP_KEY_P` to reduce register use. | Yukihiro "Matz" Matsumoto | |
| 2019-02-11 | Small refactoring in `codegen.c` | KOBAYASHI Shuji | |
| 2019-02-07 | Add `OP_ENTER` to blocks without parameters; fix #4175 | Yukihiro "Matz" Matsumoto | |
| So that `lambda{}.call(1)` raises `ArgumentError` as CRuby does. Also, fixed junk assignment for `lambda{|;a|p a}.call{}`. | |||
| 2019-01-28 | `class`/`module` expression with empty body should return `nil` | KOBAYASHI Shuji | |
| Before: p(class A end) #=> A p(class << self; end) #=> #<Class:#<Object:0x7fdc3880e420>> p(module B end) #=> B After/Ruby: p(class A end) #=> nil p(class << self; end) #=> nil p(module B end) #=> nil | |||
| 2019-01-06 | Fix 0.0 and -0.0 handling. | KOBAYASHI Shuji | |
| Fix the following issue: Good: $ bin/mruby -e 'p(-0.0)' #=> "-0" Bad: $ bin/mruby -e 'a=0.0; p(-0.0)' #=> "0" | |||
| 2018-11-25 | Allow destructuring in formal arguments. | Yukihiro "Matz" Matsumoto | |
| e.g. ``` def m(a,(b,c),d); p [a,b,c,d]; end m(1,[2,3],4) # => [1,2,3,4] ``` mruby limitation: Destructured arguments (`b` and `c` in above example) cannot be accessed from the default expression of optional arguments and keyword arguments, since actual assignment is done after the evaluation of those default expressions. Thus: ``` def f(a,(b,c),d=b) p [a,b,c,d] end f(1,[2,3]) ``` raises `NoMethodError` for `b` in mruby. | |||
| 2018-11-15 | Fixed a bug in continuous read of target files; ref #4138 | Yukihiro "Matz" Matsumoto | |
| Line number information in a compiled file was wrong. | |||
| 2018-11-15 | Remove `filename`&`lines` from `mrb_irep` struct. | Yukihiro "Matz" Matsumoto | |
| This patch slightly reduce memory consumption (2% for my test). | |||
| 2018-11-02 | Remove reserved symbols for now. | Yukihiro "Matz" Matsumoto | |
| It should be done by planned embedded symbols. | |||
| 2018-10-29 | Reduce unnecessary symbol table entry | take-cheeze | |
| 2018-10-29 | Reduce instruction size | take-cheeze | |
| 2018-10-13 | Fixed a bug caused by too much optimization; fix #4137 | Yukihiro "Matz" Matsumoto | |
| 2018-10-12 | Fixed broken stack consistency; fix #4135 | Yukihiro "Matz" Matsumoto | |
| 2018-09-07 | Clear terminated space | dearblue | |
| 2018-09-06 | Need to support multiple `**` splats in argument list; fix #4106 | Yukihiro "Matz" Matsumoto | |
| 2018-09-01 | Avoid warning in MSVC compilation. | Yukihiro "Matz" Matsumoto | |
| 2018-09-01 | Too much peephole optimization in `gen_call`; fix #4091 | Yukihiro "Matz" Matsumoto | |
| It causes trouble for safe navigation operator. | |||
| 2018-08-30 | Remove consequent `OP_RETURN` by peephole optimization. | Yukihiro "Matz" Matsumoto | |
| 2018-08-29 | Merge branch 'node_negate_fix' of https://github.com/ukrainskiysergey/mruby ↵ | Yukihiro "Matz" Matsumoto | |
| into ukrainskiysergey-node_negate_fix | |||
| 2018-08-29 | Check iseq buffer size before code emission; fix #4090 | Yukihiro "Matz" Matsumoto | |
| The type of `s->pc` is now `uint16_t` that can be overflowed easily. Need more checks. | |||
| 2018-08-25 | Reduce integer casting warnings. | Yukihiro "Matz" Matsumoto | |
| 2018-08-25 | fixup! New bytecode implementation of mruby VM. | Yukihiro "Matz" Matsumoto | |
| 2018-08-25 | Hash splat `**` should not be ignored. | Yukihiro "Matz" Matsumoto | |
| Implemented by adding `OP_HASHCAT` that merges hashes. | |||
| 2018-08-25 | New bytecode implementation of mruby VM. | Yukihiro "Matz" Matsumoto | |
| 2018-08-10 | Added push() after OP_SEND | Ukrainskiy Sergey | |
| 2018-08-09 | Small fix | Ukrainskiy Sergey | |
| 2018-08-09 | Fix weird behavior of the NODE_NEGATE | Ukrainskiy Sergey | |
| 2018-07-31 | Bytecode support for `mrdb`. | Yukihiro "Matz" Matsumoto | |
| 2018-07-30 | Keyword argument implemented. | Yukihiro "Matz" Matsumoto | |
| 2018-07-30 | New bytecode implementation of mruby VM. | Yukihiro "Matz" Matsumoto | |
| 2018-07-10 | move mrb_irep_remove_lv to codegen.c in mruby-compiler | yuri | |
| 2018-05-01 | Update `MRB_FLO_TO_STR_FMT` to "%.16g"; fix #4016 | Yukihiro "Matz" Matsumoto | |
| 2018-05-01 | Fix stack position in multiple assignment; fix #4008 | Yukihiro "Matz" Matsumoto | |
| This was caused by a patch from #2684. | |||
