summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-08-25Fixed the corner case bug in `String#{gsub!,sub!}`.Yukihiro "Matz" Matsumoto
`"a".sub!("a", "a")` should not return `nil`.
2018-08-25irep is released when Fiber is terminatedpyama86
2018-08-25Reimplement `Hash#compact!` to conform the standard behavior.Yukihiro "Matz" Matsumoto
`Hash#compact!` should return `nil` if the receiver does not change.
2018-08-25Rename ambiguous function names.Yukihiro "Matz" Matsumoto
`mrb_iv_p` -> `mrb_iv_name_sym_p` `mrb_iv_check` -> `mrb_iv_name_sym_check`
2018-08-25Remove utility functions: `mrb_vm_iv_{get,set}`.Yukihiro "Matz" Matsumoto
2018-08-25Revert 04dbbff.Yukihiro "Matz" Matsumoto
Use segment list for instance variable again to reduce memory.
2018-08-25Small refactoring.Yukihiro "Matz" Matsumoto
The macro `RCLASS_SUPER`, `RCLASS_IV_TBL` and `RCLASS_M_TBL` are removed from `include/mruby/class.h`.
2018-08-25Small refactoring of `flodivmod()`.Yukihiro "Matz" Matsumoto
2018-08-25Fix mrb_value size with MRB_WORD_BOXING on 32-bit modedearblue
2018-08-25Simply use `snprintf` instead of custom `fmt_fp`,Yukihiro "Matz" Matsumoto
Unless `MRB_DISABLE_STDIO` is set. `snprintf` is used anyway if mruby is configured to use `stdio`. This change reduces 8KB of program size on the Linux box.
2018-08-25Remove `nregs` member from `mrb_callinfo`.Yukihiro "Matz" Matsumoto
This means reducing one word per a call frame.
2018-08-25Should update `ci->env` to share the environment; fix #4073Yukihiro "Matz" Matsumoto
2018-08-25Reorganize flags values for classes; fix #3975Yukihiro "Matz" Matsumoto
Renamed flag macro names as well: `MRB_FLAG_IS_FROZEN` -> `MRB_FL_OBJ_FROZEN` `MRB_FLAG_IS_PREPENDED` -> `MRB_FL_CLASS_IS_PREPENDED` `MRB_FLAG_IS_ORIGIN` -> `MRB_FL_CLASS_IS_ORIGIN` `MRB_FLAG_IS_INHERITED` -> `MRB_FL_CLASS_IS_INHERITED`
2018-08-25Check size of the integer multiply before actual overflow; fix #4062Yukihiro "Matz" Matsumoto
2018-08-18`Kernel#p` should return an array of arguments; fix #4083Yukihiro "Matz" Matsumoto
Although the return value is not defined in ISO, it is better to behave as CRuby does.
2018-08-13Try to fix a fragile `File#mtime` test.Yukihiro "Matz" Matsumoto
2018-08-13Remove potential path to avoid uninitialized variable access.Yukihiro "Matz" Matsumoto
2018-08-13Simplify `mruby-inline-struct` tests.Yukihiro "Matz" Matsumoto
`gcc -O3` raises error on truncation using `snprintf`.
2018-08-13Make `Array.new` to accept both integers and floats.Yukihiro "Matz" Matsumoto
This time we used `Integral` module which is mruby specific.
2018-08-11Merge pull request #4081 from seratch/fix-typoYukihiro "Matz" Matsumoto
Fix misspelling words in comments, docs
2018-08-11Fix misspelling words in commentsKazuhiro Sera
2018-08-10Added push() after OP_SENDUkrainskiy Sergey
2018-08-09Small fixUkrainskiy Sergey
2018-08-09Fix weird behavior of the NODE_NEGATEUkrainskiy Sergey
2018-08-07Fixed the corner case bug in `String#{gsub!,sub!}`.Yukihiro "Matz" Matsumoto
`"a".sub!("a", "a")` should not return `nil`.
2018-08-06irep is released when Fiber is terminatedpyama86
2018-08-06Reimplement `Hash#compact!` to conform the standard behavior.Yukihiro "Matz" Matsumoto
`Hash#compact!` should return `nil` if the receiver does not change.
2018-08-06Rename ambiguous function names.Yukihiro "Matz" Matsumoto
`mrb_iv_p` -> `mrb_iv_name_sym_p` `mrb_iv_check` -> `mrb_iv_name_sym_check`
2018-08-06Remove utility functions: `mrb_vm_iv_{get,set}`.Yukihiro "Matz" Matsumoto
2018-08-06Revert 04dbbff.Yukihiro "Matz" Matsumoto
Use segment list for instance variable again to reduce memory.
2018-08-06Small refactoring.Yukihiro "Matz" Matsumoto
The macro `RCLASS_SUPER`, `RCLASS_IV_TBL` and `RCLASS_M_TBL` are removed from `include/mruby/class.h`.
2018-08-06Small refactoring of `flodivmod()`.Yukihiro "Matz" Matsumoto
2018-08-06Merge pull request #4077 from dearblue/fix-wordboxing-symbolYukihiro "Matz" Matsumoto
Fix to sizeof(mrb_value) is 4 bytes with MRB_WORD_BOXING on 32-bit mode
2018-08-05Fix mrb_value size with MRB_WORD_BOXING on 32-bit modedearblue
2018-08-01Simply use `snprintf` instead of custom `fmt_fp`,Yukihiro "Matz" Matsumoto
Unless `MRB_DISABLE_STDIO` is set. `snprintf` is used anyway if mruby is configured to use `stdio`. This change reduces 8KB of program size on the Linux box.
2018-08-01Remove `nregs` member from `mrb_callinfo`.Yukihiro "Matz" Matsumoto
This means reducing one word per a call frame.
2018-08-01Should update `ci->env` to share the environment; fix #4073Yukihiro "Matz" Matsumoto
2018-08-01Merge pull request #4074 from znz/patch-1Yukihiro "Matz" Matsumoto
Remove unmatched quotation mark
2018-07-31Remove unmatched quotation markKazuhiro NISHIYAMA
2018-07-31Bytecode support for `mrdb`.Yukihiro "Matz" Matsumoto
2018-07-31Add test case corresponding to 53e2723.Yukihiro "Matz" Matsumoto
2018-07-31Reorganize flags values for classes; fix #3975Yukihiro "Matz" Matsumoto
Renamed flag macro names as well: `MRB_FLAG_IS_FROZEN` -> `MRB_FL_OBJ_FROZEN` `MRB_FLAG_IS_PREPENDED` -> `MRB_FL_CLASS_IS_PREPENDED` `MRB_FLAG_IS_ORIGIN` -> `MRB_FL_CLASS_IS_ORIGIN` `MRB_FLAG_IS_INHERITED` -> `MRB_FL_CLASS_IS_INHERITED`
2018-07-31Check size of the integer multiply before actual overflow; fix #4062Yukihiro "Matz" Matsumoto
2018-07-31Describe the difference of the keyword argument behavior.Yukihiro "Matz" Matsumoto
The implementation of keyword arguments is heavily rely on the prototype made by @take-cheeze in #3629.
2018-07-31Removed merge hiccups in `doc/opcode.md`.Yukihiro "Matz" Matsumoto
2018-07-31Removed unused instruction: `OP_KDICT`.Yukihiro "Matz" Matsumoto
2018-07-31Fixed a small bug in keyword argument parsing.Yukihiro "Matz" Matsumoto
def m(a=1,**k) p [a,k] end m(a: 1)
2018-07-30Keyword argument implemented.Yukihiro "Matz" Matsumoto
2018-07-30New bytecode implementation of mruby VM.Yukihiro "Matz" Matsumoto
2018-07-23Kernel#instance_eval should define singleton methods; fix #4069Yukihiro "Matz" Matsumoto