summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-10-04Refactor local variables addition in optional/keyword arguments.Yukihiro "Matz" Matsumoto
2019-10-04Merge pull request #4751 from shuujii/remove-unused-code-to-old-Visual-StudioYukihiro "Matz" Matsumoto
Remove unused code to old Visual Studio in `tasks/toolchains/visualcpp.rake`
2019-10-04Remove unused code to old Visual Studio in `tasks/toolchains/visualcpp.rake`KOBAYASHI Shuji
2019-10-04Merge pull request #4750 from dearblue/c++-abiYukihiro "Matz" Matsumoto
Remove duplicates header files in `src/pool.c`
2019-10-03Remove duplicates header files in `src/pool.c`dearblue
These are included in `mruby.h`. As a background, if `enable_cxx_abi` is specified, the macro that defines the maximum value in `stdint.h` is undefined depending on the environment. - Confirmed with gcc on FreeBSD 12.0 and mingw32-gcc available on FreeBSD. - `INTPTR_MAX`, `INT64_MAX` and `UINT64_MAX` are defined by `cstdint` added in C++11. But `toolchains :gcc` adds `-std=c++03`, so the macros are not defined. - To have these defined in `C++03`, `__STDC_CONSTANT_MACROS` must be defined in advance. This is already done by `mruby.h`.
2019-10-03Merge pull request #4749 from shuujii/add-tests-for-4746Yukihiro "Matz" Matsumoto
Add tests for #4746
2019-10-03Add tests for #4746KOBAYASHI Shuji
2019-10-03Merge pull request #4748 from HirohitoHigashi/masterYukihiro "Matz" Matsumoto
Fix opcode semantics comment miss.
2019-10-03Fix opcode semantics comment miss. (op_jmpnil)Hirohito Higashi
2019-10-03Fix opcode semantics comment miss.Hirohito Higashi
2019-10-03Add local variable reordering to `kwargs`; ref #4746Yukihiro "Matz" Matsumoto
2019-10-03Need to reorder local variables defined in `opt`; fix #4746Yukihiro "Matz" Matsumoto
For example, local variables in the following def: ```ruby def foo(a = (not_set = true), &block) ... end ``` should be `a, block, not_set`, but were `a, not_set, block`.
2019-10-03Refactor `append_gen` function.Yukihiro "Matz" Matsumoto
2019-10-02Merge pull request #4747 from ↵Yukihiro "Matz" Matsumoto
shuujii/avoid-symhash-call-for-inline-symbol-in-sym_intern Avoid `symhash()` call for inline symbol in `sym_intern()`
2019-10-02Avoid `symhash()` call for inline symbol in `sym_intern()`KOBAYASHI Shuji
2019-10-02Merge pull request #4736 from dearblue/ast-strdumpYukihiro "Matz" Matsumoto
Escape the AST string
2019-10-01Merge pull request #4745 from shuujii/dump-more-node-typesYukihiro "Matz" Matsumoto
Dump more node types in `mrb_parser_dump`
2019-10-01Support `NODE_LITERAL_DELIM` in `mrb_parser_dump`KOBAYASHI Shuji
#### Before this patch: ```terminal $ bin/mruby -v -e '%w[1 2]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_WORDS: 00001 NODE_STR "1" len 1 00001 node type: 85 (0x55) 00001 NODE_STR "2" len 1 (snip) ``` #### After this patch: ```terminal $ bin/mruby -v -e '%w[1 2]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_WORDS: 00001 NODE_STR "1" len 1 00001 NODE_LITERAL_DELIM 00001 NODE_STR "2" len 1 (snip) ```
2019-10-01Support `NODE_SYMBOLS` in `mrb_parser_dump`KOBAYASHI Shuji
#### Before this patch: ```terminal $ bin/mruby -v -e '%i[1]; %I[#{2}]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 node type: 87 (0x57) 00001 node type: 87 (0x57) (snip) ``` #### After this patch: ```terminal $ bin/mruby -v -e '%i[1]; %I[#{2}]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_SYMBOLS: 00001 NODE_STR "1" len 1 00001 NODE_SYMBOLS: 00001 NODE_STR "" len 0 00001 NODE_BEGIN: 00001 NODE_INT 2 base 10 00001 NODE_STR "" len 0 (snip) ```
2019-10-01Support `NODE_WORDS` in `mrb_parser_dump`KOBAYASHI Shuji
#### Before this patch: ```terminal $ bin/mruby -v -e '%w[1]; %W[#{2}]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 node type: 86 (0x56) 00001 node type: 86 (0x56) (snip) ``` #### After this patch: ```terminal $ bin/mruby -v -e '%w[1]; %W[#{2}]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_WORDS: 00001 NODE_STR "1" len 1 00001 NODE_WORDS: 00001 NODE_STR "" len 0 00001 NODE_BEGIN: 00001 NODE_INT 2 base 10 00001 NODE_STR "" len 0 (snip) ```
2019-10-01Merge pull request #4744 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-a-trailing-space-in-MRUBY_DESCRIPTION Remove a trailing space in `MRUBY_DESCRIPTION`
2019-09-30Remove a trailing space in `MRUBY_DESCRIPTION`KOBAYASHI Shuji
2019-09-30Support `NODE_DSYM` in `mrb_parser_dump`KOBAYASHI Shuji
#### Before this patch: ```terminal $ bin/mruby -v -e ':"#{1}"; ["#{2}": 0]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 node type: 83 (0x53) 00001 NODE_ARRAY: 00001 NODE_KW_HASH: 00001 key: 00001 node type: 83 (0x53) 00001 value: 00001 NODE_INT 0 base 10 (snip) ``` #### After this patch: ```terminal $ bin/mruby -v -e ':"#{1}"; ["#{2}": 0]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_DSYM: 00001 NODE_DSTR: 00001 NODE_STR "" len 0 00001 NODE_BEGIN: 00001 NODE_INT 1 base 10 00001 NODE_STR "" len 0 00001 NODE_ARRAY: 00001 NODE_KW_HASH: 00001 key: 00001 NODE_DSYM: 00001 NODE_DSTR: 00001 NODE_STR "" len 0 00001 NODE_BEGIN: 00001 NODE_INT 2 base 10 00001 NODE_STR "" len 0 00001 value: 00001 NODE_INT 0 base 10 (snip) ```
2019-09-30Merge pull request #4742 from dearblue/mrb_hash_valueYukihiro "Matz" Matsumoto
Remove unnecessary type `mrb_hash_value`
2019-09-29Remove unnecessary type `mrb_hash_value`dearblue
The type `mrb_hash_value` is no longer used by the segmented list implementation (ref e8dcfe1 and e65d426).
2019-09-29Merge pull request #4741 from ↵Yukihiro "Matz" Matsumoto
shuujii/print-missing-colon-before-newline-in-mrb_parser_dump Print missing `:` before newline in `mrb_parser_dump`
2019-09-29Print missing `:` before newline in `mrb_parser_dump`KOBAYASHI Shuji
2019-09-29Merge pull request #4740 from dearblue/rethrow-breakYukihiro "Matz" Matsumoto
Allow rethrowing `MRB_TT_BREAK`
2019-09-29Allow rethrowing `MRB_TT_BREAK`dearblue
2019-09-29Merge pull request #4739 from dearblue/restore-arenaYukihiro "Matz" Matsumoto
Restore GC arena frequently
2019-09-29Further refactoring over #4738Yukihiro "Matz" Matsumoto
2019-09-29Merge pull request #4738 from dearblue/unneed-assignYukihiro "Matz" Matsumoto
Remove unnecessary assignments
2019-09-29Restore GC arena frequentlydearblue
2019-09-29Merge pull request #4737 from dearblue/hash-deleteYukihiro "Matz" Matsumoto
Add an annotation about the return value
2019-09-29Add an annotation of the return value from `mrb_delete_key`; #4737Yukihiro "Matz" Matsumoto
The return value from `mrb_delete_key` needs to be protected from GC in some cases.
2019-09-29Remove unnecessary assignmentsdearblue
2019-09-29Merge pull request #4735 from shuujii/remove-unused-node-type-in-codegenYukihiro "Matz" Matsumoto
Remove unused node type in `codegen()`
2019-09-29Add an annotation about the return valuedearblue
2019-09-29Escape the AST stringdearblue
2019-09-28Remove unused node type in `codegen()`KOBAYASHI Shuji
2019-09-28Merge pull request #4734 from shuujii/simplify-arguments-check-in-String-rindexYukihiro "Matz" Matsumoto
Simplify arguments check in `String#rindex`
2019-09-28Replace `mrb_sym_name` with `mrb_sym_dump`; ref #4684Yukihiro "Matz" Matsumoto
2019-09-27Simplify arguments check in `String#rindex`KOBAYASHI Shuji
Also fix document about type of the first argument.
2019-09-27Merge pull request #4733 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-type-predicate-macros-instead-of-mrb_type-if-possible Use type predicate macros instead of `mrb_type` if possible
2019-09-26Fixed `codedump` for human readable symbol format; ref #4684Yukihiro "Matz" Matsumoto
2019-09-26Use type predicate macros instead of `mrb_type` if possibleKOBAYASHI Shuji
For efficiency with `MRB_WORD_BOXING` (implement type predicate macros for all `enum mrb_vtype`).
2019-09-26Use proper type specifier for `mrb_raisef()`; ref #4731Yukihiro "Matz" Matsumoto
The following two may be different: * `%d` for `int` * `%i` for `mrb_int`
2019-09-26Merge pull request #4732 from dearblue/inttypesYukihiro "Matz" Matsumoto
Use inttypes for `snprintf()`
2019-09-26Merge pull request #4731 from dearblue/consistent-typeYukihiro "Matz" Matsumoto
Keep the type of `posarg` consistent
2019-09-25Merge pull request #4728 from shuujii/remove-MRB_TT_HAS_BASIC-macroYukihiro "Matz" Matsumoto
Remove `MRB_TT_HAS_BASIC` macro