summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2018-11-15The saved `pc` from `ERR_PC_SET` was wrong; fix #4138Yukihiro "Matz" Matsumoto
The saving `pc` position should be beginning of the instruction. But after `mruby 2.0` byte code modification, the `pc` variable points the beginning of the next instruction. We save the previous position in a local variable `pc0`.
2018-11-15Rename local variables in `mrb_debug_info_append_file`Yukihiro "Matz" Matsumoto
2018-11-15Simplify argument parsing; ref #4161Yukihiro "Matz" Matsumoto
2018-11-15Silence `-fsanitize=undefined` warning in `src/enum.c`; fix #4161Yukihiro "Matz" Matsumoto
2018-11-15Remove `filename`&`lines` from `mrb_irep` struct.Yukihiro "Matz" Matsumoto
This patch slightly reduce memory consumption (2% for my test).
2018-11-15Small renaming refactor in `dump.c`Yukihiro "Matz" Matsumoto
2018-11-07Wrong pool data length for negative floating value in a mrb file.Hiroshi Mimaki
2018-11-05Fixed wrong `ArgumentError` with keyword arguments; fix #4159Yukihiro "Matz" Matsumoto
2018-11-05Fixed a bug in argument number check with kwargs; fix #4159Yukihiro "Matz" Matsumoto
2018-11-02Remove reserved symbols for now.Yukihiro "Matz" Matsumoto
It should be done by planned embedded symbols.
2018-11-02Merge pull request #4151 from take-cheeze/remove_op_symidxYukihiro "Matz" Matsumoto
Reduce instruction size
2018-11-02Suppress warningtake-cheeze
2018-11-02Fix dump and load with endianesstake-cheeze
2018-11-02Add `NULL` checks for `mrb->ci` and `proc->upeer`; #4024Yukihiro "Matz" Matsumoto
2018-11-01Silence Appveyor's VC compilation warnings.Yukihiro "Matz" Matsumoto
2018-11-01The `env` object referenced from fibers may be freed; fix #4154Yukihiro "Matz" Matsumoto
By dffa203 that reclaim `env` objects from heaps, there's more chance for `env` objects referenced from fibers may be freed from heap pages.
2018-11-01Fixed a bug in INIT_DISPATCH for non direct threading; fix #4153Hiroshi Mimaki
2018-10-29Fix codedumpertake-cheeze
2018-10-29Fix operatortake-cheeze
2018-10-29Fix SEGVtake-cheeze
2018-10-29Define null symboltake-cheeze
2018-10-29Reduce instruction sizetake-cheeze
2018-10-29Rename libmruby stuff to avoid confusiontake-cheeze
2018-10-29We need no write barrier here; ref #4143Yukihiro "Matz" Matsumoto
2018-10-29Marking from terminated fibers are not needed; ref #4143Yukihiro "Matz" Matsumoto
The old condition marks the top-level callinfo even after the fiber is terminated.
2018-10-29Need to mark shared env objects as `MRB_TT_FREE`; fix #4143Yukihiro "Matz" Matsumoto
The following code mistakenly exits from the function without marking the env object as `MRB_TT_FREE`. ``` ruby if (MRB_ENV_STACK_SHARED_P(e)) { /* cannot be freed */ return; // <- should be `break` } ```
2018-10-29Add argument check to `Array#clear`; fix #4144Yukihiro "Matz" Matsumoto
2018-10-20Need to freeze string keys.Yukihiro "Matz" Matsumoto
2018-10-12Should not compare `undef` (deleted) key in hashes; fix #4136Yukihiro "Matz" Matsumoto
2018-10-12Add `NULL` check in `sg_compact()`; fix #4139Yukihiro "Matz" Matsumoto
2018-10-12`Hash#delete` should return the deleted value; fix #4133Yukihiro "Matz" Matsumoto
2018-09-26Implement `Hash#rehash` in C using `sg_compact()`.Yukihiro "Matz" Matsumoto
2018-09-26Add index to larger segment lists for performanceYukihiro "Matz" Matsumoto
2018-09-26Use `mrb_undef_value` for delete mark instead of shifting Hash entry table.Yukihiro "Matz" Matsumoto
That means entry table should be compacted periodically by `sg_compact()`.
2018-09-26Use segmented list to implement `Hash` [Experimental]Yukihiro "Matz" Matsumoto
I know it's not hash at all, but reduce memory consumption.
2018-09-26Small refactoring in vm.cYukihiro "Matz" Matsumoto
2018-09-21Add compiler flag to disable direct threading (#4075)sbsoftware
* Add option to disable direct threading * Prepend MRB_ to option name
2018-09-21Fixed a top-level local variable bug in `mirb`.Yukihiro "Matz" Matsumoto
`OP_STOP` returned a wrong value.
2018-09-20Renamed `is_namespace()` to `namespace_p()`.Yukihiro "Matz" Matsumoto
2018-09-20Revert "Add MRB_IMPROVE_META_PROGRAMMING configuration"Yukihiro "Matz" Matsumoto
This reverts commit 1997fcf98f596f6af2bf1d20ccde1b1abfe7324d. It became the default behavior.
2018-09-20Merge branch 'assign-anon-class-name' of https://github.com/dearblue/mruby ↵Yukihiro "Matz" Matsumoto
into dearblue-assign-anon-class-name
2018-09-20Merge pull request #4112 from dearblue/fix-outer-module-nameYukihiro "Matz" Matsumoto
Fix outer module name
2018-09-18Array size may be changed in `mrb_get_args()` reentry.Yukihiro "Matz" Matsumoto
fix #4116; fix #4117; fix #4118; fix #4119; fix #4120
2018-09-08Fix outer module namedearblue
example: a = Module.new a::B = Module.new p [a, a::B] # => [#<Module:0x801825890>, #<Class:0x801825890>::B] # => [#<Module:0x801825890>, #<Module:0x801825890>::B] (Fixed)
2018-09-07Fix to not define outer when outer is itself.dearblue
example: a = Class.new a::A = a
2018-09-07Clear terminated spacedearblue
2018-09-07Add MRB_IMPROVE_META_PROGRAMMING configurationdearblue
2018-09-07Fix indentdearblue
2018-09-07A class/module name is now defined for meta programingdearblue
2018-09-07Undesirable line splitdearblue