cremno
91c22f32f4
rename mrb_str_buf_append to mrb_str_cat_str
...
The new name is better and less confusing, because:
- `mrb_str_append` calls `mrb_str_to_str` and this function doesn't
- `mrb_str_buf_append` _is_ `mrb_str_cat` for `mrb_value` strings
2014-04-27 22:33:22 +02:00
Yukihiro "Matz" Matsumoto
bbc237044d
NODE_SUPER should preserve stack region for block; ref #2136
2014-04-27 09:22:35 +09:00
Yukihiro "Matz" Matsumoto
26758d89bd
NODE_DEF should preserve stack region for lambda; ref #2136
2014-04-27 09:05:23 +09:00
mirichi
71395aba52
area of implicit nil is not enough to nregs
2014-04-26 20:20:23 +09:00
Yukihiro "Matz" Matsumoto
5bf327497f
bit more peephole optimization for NODE_LVAR
2014-04-26 17:19:52 +09:00
Yukihiro "Matz" Matsumoto
2202e412ea
Merge branch 'master' of github.com:mruby/mruby
2014-04-26 01:53:15 +09:00
Yukihiro "Matz" Matsumoto
44ec41a772
should use plain int for index, since i may be printed using %d; close #2127
2014-04-26 01:52:30 +09:00
Yukihiro "Matz" Matsumoto
c15da653b2
Merge pull request #2118 from ksss/range-bool
...
RRange excl flag use mrb_bool insteard of int
2014-04-26 01:30:04 +09:00
Yukihiro "Matz" Matsumoto
48f36d3f0e
better integer size assertion suggested by usak
2014-04-25 04:33:08 +09:00
Yukihiro "Matz" Matsumoto
83c1399af0
eliminate plain int except for a few cases like arena_index
2014-04-25 04:01:57 +09:00
Yukihiro "Matz" Matsumoto
320f0711f0
remove -Wsign-compare warnings
2014-04-25 02:33:33 +09:00
ksss
f1d85c2f97
mrb_range_new excl flag use mrb_bool insteard of int
2014-04-24 13:18:57 +00:00
take_cheeze
c0eaaf3559
Move src/re.h to include/mruby/re.h .
2014-04-16 22:39:57 +09:00
Yukihiro "Matz" Matsumoto
19c3c957fc
add assertion before casting
2014-04-03 20:23:39 +09:00
Yukihiro "Matz" Matsumoto
5be2bfb523
too much peephole optimization; close #1992
2014-04-03 10:14:38 +09:00
take_cheeze
2239350348
Add test for backquote.
...
* Implement code generation of NODE_DXSTR.
* Fix NOVAL NODE_XSTR.
2014-03-28 13:02:52 +09:00
Yukihiro "Matz" Matsumoto
2c44f96e78
reduce hash creation by using update method
2014-03-21 09:31:44 +09:00
Yukihiro "Matz" Matsumoto
45b0e1f788
should be able to create hash with 127+ entries; close #1894
2014-03-21 09:18:10 +09:00
Yukihiro "Matz" Matsumoto
3e24e06b29
add a space after C reserved words
2014-03-18 23:57:29 +09:00
Yukihiro "Matz" Matsumoto
c476c1b528
symbol length type to be mrb_int
2014-03-15 15:43:40 +09:00
Yukihiro "Matz" Matsumoto
2bd099c842
remove new_label(s) where label position can be obtained from genop()
2014-03-14 03:11:11 +09:00
Yukihiro "Matz" Matsumoto
91f2d47d34
too much optimization
2014-03-13 23:44:10 +09:00
Yukihiro "Matz" Matsumoto
8cc487c465
peephole optimization for OP_JMP{IF,NOT}
2014-03-13 19:54:50 +09:00
Masaki Muranaka
40f57f7b42
Use mrb_str_new_cstr() instead of mrb_str_new() with strlen().
2014-03-09 16:45:29 +09:00
cremno
bfc522bcd5
use mrb_str_cat_lit for literals
2014-03-08 18:38:31 +01:00
Masaki Muranaka
270d25bf2d
Make type casts safer.
2014-03-08 15:53:59 +09:00
cubicdaiya
016d3b9394
fix off-by-one error in attrsym
...
The allocation size for null-terminated character is lacking.
In actual, it is no problem in most case
because codegen_palloc allocates more a memory size than required size.
2014-03-05 11:20:39 +09:00
Yukihiro "Matz" Matsumoto
9a92b40aaf
rescue clause should understand splats; close #1786
2014-03-03 13:25:13 +09:00
take_cheeze
78915f9601
support c++ exception
2014-03-01 20:05:29 +09:00
cubicdaiya
67de10bfcb
use C style comments instead of C++ style comments
...
According to CONTRIBUTING.md,
Don't use C++ style comments
/* This is the prefered comment style */
Use C++ style comments only for temporary comment e.g. commenting out some code lines.
2014-03-01 03:31:45 +09:00
Yukihiro "Matz" Matsumoto
19a08b8455
Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE
...
use mrb_bool, FALSE and TRUE more
2014-02-09 18:35:20 +09:00
Yukihiro "Matz" Matsumoto
be0cc4f90e
better codedump format
2014-02-04 23:04:34 +09:00
h2so5
b53d91e6e2
fix NODE_SPLAT codegen
2014-02-01 12:22:28 +09:00
cremno
4507985c3e
use mrb_bool, FALSE and TRUE more
...
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0
but I prefer a type (alias) which emphasizes boolean vars to int.
I changed 1/0 to FALSE/TRUE anyway.
2014-01-31 18:00:36 +01:00
cremno
f2a62a74ed
clean up external symbols
...
remove unused and unneeded:
- sysexit_status
- type (a global variable)
add mrb_ prefix to:
- codedump_all
- class_instance_method_list
- parser_dump
make various functions static, incl.:
- yyparse
- make_exception
2014-01-31 01:30:18 +01:00
Yukihiro "Matz" Matsumoto
925137475c
should splat and iterate elements when "*ary" speficied in the case-when clause; close #1627
2014-01-04 11:25:53 +09:00
Yukihiro "Matz" Matsumoto
dc27c2be46
Merge pull request #1634 from cremno/use-mrb_fixnum_p
...
tiny word boxing optimization
2014-01-02 15:46:00 -08:00
cremno
09bb30870b
tiny word boxing optimization
2014-01-02 06:36:29 +01:00
cremno
d69deadfc8
codegen.c: remove superfluous return
2014-01-02 01:34:32 +01:00
cubicdaiya
325c3bcfa4
return-value of mrb_run is invalid in top-level-scope
...
The return-value of mrb_run in top-level-scope
should be the evaluated value at last.
2013-12-27 15:11:20 +09:00
Yukihiro "Matz" Matsumoto
14bff248c3
adjust register position for return value; fix #1620
2013-12-26 17:47:26 +09:00
Yukihiro "Matz" Matsumoto
efbaa53c53
revert fix in #1620
2013-12-26 17:43:53 +09:00
Carson McDonald
a89cba9fa4
Fix return when value expected
2013-12-25 12:17:33 -05:00
Yukihiro "Matz" Matsumoto
ee9e5fa6da
Merge branch 'master' of github.com:mruby/mruby
2013-12-25 10:06:24 +09:00
h2so5
6c6633843c
fix #1617
2013-12-24 13:33:26 +09:00
Yukihiro "Matz" Matsumoto
c209fa9514
class/module body to honor whether value is required or not; reduce a few instructions for normal cases
2013-12-24 12:29:06 +09:00
h2so5
61ac9ff2ea
fix codegen bug in NODE_CASE
2013-12-19 21:30:51 +09:00
Yukihiro "Matz" Matsumoto
415ec6aca2
avoid top-level pool release at codegen_error() and fixed some memory leaks
2013-12-03 01:47:50 +09:00
Yukihiro "Matz" Matsumoto
56a93a3357
should not access scope after releasing memory pool
2013-12-03 00:55:19 +09:00
Yukihiro "Matz" Matsumoto
155f3909f0
Merge pull request #1601 from carsonmcdonald/srcaptosizet
...
Change scapa and rcapa to size_t, use scapa.
2013-12-02 05:19:45 -08:00