Commit Graph

2082 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 3046cc7bd8 Merge branch 'master' of github.com:mruby/mruby 2014-01-08 13:05:27 +09:00
Yukihiro "Matz" Matsumoto c150f115a1 adjust lineno after continuing script files using mrb_partial_hook; close #1652 2014-01-08 13:05:19 +09:00
Yukihiro "Matz" Matsumoto 2040347d26 Merge pull request #1650 from cremno/remove-str_mod_check
string.c: remove str_mod_check
2014-01-07 15:36:18 -08:00
cremno 84e9c4befe string.c: remove str_mod_check
Clang 3.4 emits '-Wunused-function' - and it's really unused!
But according to the description this seems to be a bug:

>Warn whenever a static function is declared but not defined or
>a non-inline static function is unused. This warning is enabled by
-Wall.

Source: <http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html>
2014-01-07 18:15:45 +01:00
cremno aa655b9ee1 remove superfluous includes
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
Yukihiro "Matz" Matsumoto cff4ac6bb7 skip "trace:" header if no backtrace line exists 2014-01-08 00:49:23 +09:00
Yukihiro "Matz" Matsumoto a1131361d5 dump.c: wrong filename table dump for multiple script files; close #1648 2014-01-08 00:40:45 +09:00
Yukihiro "Matz" Matsumoto 7d8a3b618a small refactoring (dedup mrb_vm_cv_set) 2014-01-06 22:31:25 +09:00
Yukihiro "Matz" Matsumoto fe19ac2bcd small cosmetic variable renaming 2014-01-06 14:24:33 +09:00
Yukihiro "Matz" Matsumoto 07e8f80040 adjust proc->target_class according to surrounding proc->target_class; based on a patch from @Fleurer; close #1627 2014-01-06 14:04:50 +09:00
Yukihiro "Matz" Matsumoto 791021575c need not to initialize ci->err at toplevel 2014-01-05 20:03:45 +09:00
Yukihiro "Matz" Matsumoto f5cca078e3 avoid decrimenting eidx out of ecall() 2014-01-05 19:18:13 +09:00
h2so5 0e23038a60 execute ensure clause correctly without OP_EPOP 2014-01-05 16:24:20 +09: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 2122cf48db pop ensure stack before execution; close #1638 2014-01-04 01:30:38 +09:00
Yukihiro "Matz" Matsumoto 6bcbef5064 always clear ci->err 2014-01-04 00:54:05 +09:00
Yukihiro "Matz" Matsumoto 4b68fbcd83 quicker release of arena after ensure calls 2014-01-04 00:13:28 +09:00
Yukihiro "Matz" Matsumoto d32a67e4b4 Merge branch 'master' of github.com:mruby/mruby 2014-01-04 00:07:34 +09:00
Yukihiro "Matz" Matsumoto 6d7b3a7bc9 mrb_ary_splat() to call #to_a 2014-01-03 23:57:20 +09:00
h2so5 77f215c837 use macros for assignments to ci->err 2014-01-03 21:54:58 +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
Yukihiro "Matz" Matsumoto 1012c595f2 Merge pull request #1632 from cremno/superfluous-return
remove superfluous return in codedump_all
2014-01-02 15:45:07 -08:00
Yukihiro "Matz" Matsumoto a26a6fecee Merge pull request #1637 from h2so5/extended-arena-size
Fix extended arena check in gc_protect
2014-01-02 15:44:31 -08:00
Yukihiro "Matz" Matsumoto 18f393013a Merge pull request #1636 from cremno/mrb_get_args-z-errmsg
use the same error msg as mrb_str_to_cstr/CRuby
2014-01-02 15:43:49 -08:00
h2so5 a44cc14e1c Fix extended arena check in gc_protect 2014-01-02 18:23:26 +09:00
cremno edf93c8bd6 use the same error msg as mrb_str_to_cstr/CRuby
It's better to have one message for the same error
than two different (although similar worded) ones.
2014-01-02 07:53:53 +01:00
cremno 18433731ed remove various preprocessor conditionals
- HAVE_IEEEFP_H is nowhere defined or needed at all
- FreeBSD < 4 is unsupported since years
- MSVC workaround (around what exactly?)
2014-01-02 07:33:33 +01: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
Yukihiro "Matz" Matsumoto 2ec67c651e Merge branch 'singletonfix' of https://github.com/carsonmcdonald/mruby into carsonmcdonald-singletonfix 2013-12-26 17:42:41 +09:00
Carson McDonald a89cba9fa4 Fix return when value expected 2013-12-25 12:17:33 -05:00
Yukihiro "Matz" Matsumoto b72f3f92f7 use static symbols for debug filename info 2013-12-25 14:52:13 +09:00
Yukihiro "Matz" Matsumoto c70e2f7099 wrong operator precedence fixed 2013-12-25 13:30:03 +09:00
Yukihiro "Matz" Matsumoto 673d9183cf avoid copying when the original string comes with MRB_STR_NOFREE 2013-12-25 10:30:48 +09:00
Yukihiro "Matz" Matsumoto 9b7b18aaf4 clear STR_NOFREE flag on modify 2013-12-25 10:19:35 +09:00
Yukihiro "Matz" Matsumoto ee9e5fa6da Merge branch 'master' of github.com:mruby/mruby 2013-12-25 10:06:24 +09:00
Yukihiro "Matz" Matsumoto 48ad07eb41 zero copy str_new from static allocate irep 2013-12-25 09:48:57 +09:00
Yukihiro "Matz" Matsumoto bd76b2dea8 zero copy intern from static allocate irep 2013-12-25 08:49:18 +09:00
Yukihiro "Matz" Matsumoto c6ceed22d9 rename mrb_intern_litral -> mrb_intern_static 2013-12-25 08:40:26 +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
Yukihiro "Matz" Matsumoto bc7a6e88a1 zero copy C literal strings in symbol table 2013-12-24 08:27:42 +09:00
Yukihiro "Matz" Matsumoto 9fab01caee remove MRB_IREP_ARRAY_INIT_SIZE which is no longer used 2013-12-24 07:26:35 +09:00
Yukihiro "Matz" Matsumoto 55ef024e83 Merge pull request #1615 from crimsonwoods/remove_strong_coupling_by_khash
Remove 'mrb_state' field from 'kh_xxx_t' structure.
2013-12-23 04:31:58 -08:00
crimsonwoods 370ad6fade Remove 'mrb_state' field from 'kh_xxx_t' structure.
'kh_xxx_t' requires 'mrb_state' to allocate, free, and compute hash value.
But 'mrb_state' should not be held by 'kh_xxx_t' and 'mrb_state' should be
supplied from outside.
2013-12-23 00:33:07 -08:00
h2so5 a94be45546 change behavior of mrb_sym2str 2013-12-23 03:27:56 +09:00
Yukihiro "Matz" Matsumoto 7dffeb6215 Merge pull request #1612 from h2so5/node-case
fix codegen bug in NODE_CASE
2013-12-19 06:05:49 -08:00