Commit Graph

2459 Commits

Author SHA1 Message Date
take_cheeze 5073d14e28 Remove lv_len and use nlocals - 1 instead.
Check that `lv`'s length is always `nlocals - 1`.
2014-04-29 22:06:59 +09:00
take_cheeze 4c7f9897c2 Support local variables information dumping. 2014-04-29 20:47:50 +09:00
Yukihiro "Matz" Matsumoto 0bdc87d239 indent codedump when file/line info is not available; ref #2147 2014-04-29 19:08:47 +09:00
Yukihiro "Matz" Matsumoto 70a4cc6b08 codedump for binary mrb files as well 2014-04-29 19:05:49 +09:00
Yukihiro "Matz" Matsumoto 077ccaf4a5 Merge pull request #2158 from kyab/support_doubling_stack
Add doubling stack extend, as fix for #2016
2014-04-29 18:57:18 +09:00
Yukihiro "Matz" Matsumoto 7bbda66824 Merge pull request #2147 from take-cheeze/dump_line_file
Print file name and line number in codedump if available.
2014-04-29 18:55:19 +09:00
kyab a13775eb22 Add doubling stack extend, as fix for #2016 2014-04-29 18:42:52 +09:00
Yukihiro "Matz" Matsumoto aab52be133 Merge pull request #2156 from cremno/fix-disabled-stdio-2
fix disabled stdio
2014-04-29 17:11:11 +09:00
Yukihiro "Matz" Matsumoto 5fb5c2a4c2 Merge pull request #2155 from cremno/define-resize_capa-as-a-function
define `resize_capa` as a function
2014-04-29 17:10:27 +09:00
Yukihiro "Matz" Matsumoto 8639703bec Merge pull request #2157 from cremno/remove-mrb_str_offset
remove `mrb_str_offset`
2014-04-29 17:08:04 +09:00
Yukihiro "Matz" Matsumoto 5398a55462 Merge pull request #2154 from cremno/dbl_dig
remove `DBL_DIG` fallback definition
2014-04-29 17:06:33 +09:00
cremno 739b155535 remove mrb_str_offset 2014-04-29 07:13:44 +02:00
cremno 01b76630b8 fix disabled stdio (and remove trailing spaces) 2014-04-29 07:05:30 +02:00
cremno 0406343f2b remove DBL_DIG fallback definition 2014-04-29 06:21:49 +02:00
cremno 5b3a442d31 include the missing header for DBL_DIG 2014-04-29 06:21:29 +02:00
cremno 92632c61dd define resize_capa as a function
This increases readability and maintainability,
and it also doesn't use reserved identifiers.
2014-04-29 06:09:45 +02:00
kyab 1405f3a514 Fix MSVC warning for symbol.c 2014-04-29 13:00:11 +09:00
Yukihiro "Matz" Matsumoto a2dc6f7db9 Merge pull request #2151 from carsonmcdonald/multilinecommentfix
Fix multiline comments
2014-04-29 12:29:29 +09:00
Yukihiro "Matz" Matsumoto 2ca5bed901 make cioff in struct REnv from int to ptrdiff_t; close #2149 2014-04-29 12:25:15 +09:00
Yukihiro "Matz" Matsumoto 48e82d7c77 cast intptr_t to mrb_int to pacify compiler warning; close #2148 2014-04-29 12:21:49 +09:00
Yukihiro "Matz" Matsumoto 88c0d0cf9a clear all stack everytime to prevent GC crash; ref #2109 2014-04-29 10:38:38 +09:00
Yukihiro "Matz" Matsumoto 29f6cdcd4d stack may be uncleared 2014-04-29 10:36:30 +09:00
Yukihiro "Matz" Matsumoto 57e6a783bc fiber context may be NULL 2014-04-29 10:32:49 +09:00
Yukihiro "Matz" Matsumoto f8c465dd44 clear ci->proc to prevent GC crash 2014-04-29 10:32:05 +09:00
Carson McDonald b2f3919bc2 Accept =begin and =end with spaces after 2014-04-28 14:15:03 -04:00
Carson McDonald af95acec17 make peek_n append p->pb to list 2014-04-28 14:11:18 -04:00
take_cheeze 46d8c08a14 Use int32_t as line variable type. 2014-04-28 22:17:40 +09:00
take_cheeze 197f3cb901 Print file name and line number in codedump if available. 2014-04-28 22:12:45 +09:00
Yukihiro "Matz" Matsumoto 220f3124b9 should care about the case that given arguments are less then mandatory formal arguments and optional arguments exist; close #2144 2014-04-28 13:34:14 +09:00
Yukihiro "Matz" Matsumoto b1ec92f7cd fix OP_BLKPUSH dump format 2014-04-28 11:59:46 +09:00
Yukihiro "Matz" Matsumoto 2e59cd43de prevent printf warning 2014-04-28 08:30:57 +09:00
Yukihiro "Matz" Matsumoto b53e69f18d better codedump formatting 2014-04-28 08:02:47 +09:00
Yukihiro "Matz" Matsumoto 3244ddf0c3 presreve local variables names in irep->lv 2014-04-28 07:29:37 +09:00
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
Yukihiro "Matz" Matsumoto 354e6fdce5 Merge pull request #2136 from mirichi/bug-fix2
area of implicit nil is not enough to nregs
2014-04-27 08:24:23 +09:00
Yukihiro "Matz" Matsumoto 4e790fc1b6 forgot to remove abort() 2014-04-27 02:50:41 +09:00
Yukihiro "Matz" Matsumoto 4bfd25d405 mark may be missed when eval() is called 2014-04-27 02:48:11 +09:00
Yukihiro "Matz" Matsumoto 33320e282a Merge pull request #2135 from mirichi/bug-fix
correct to compare MRB_STACK_GROWTH.
2014-04-27 00:06:09 +09:00
Yukihiro "Matz" Matsumoto a5161e76ed Class.constants to take optional argument; close #2133 2014-04-26 23:47:55 +09:00
mirichi 71395aba52 area of implicit nil is not enough to nregs 2014-04-26 20:20:23 +09:00
mirichi ad60f81032 The correct is to compare the MRB_STACK_GROWTH. 2014-04-26 19:37:53 +09:00
Yukihiro "Matz" Matsumoto 5bf327497f bit more peephole optimization for NODE_LVAR 2014-04-26 17:19:52 +09:00
Yukihiro "Matz" Matsumoto 773097d3a8 Merge branch 'master' of github.com:mruby/mruby 2014-04-26 12:08:11 +09:00
Yukihiro "Matz" Matsumoto e76be4e2ab check length before calling stack_copy(); based on a patch from @mirich; close #2129 2014-04-26 12:07:51 +09:00
Jun Hiroe 68ce209f7e Refactor fix_xor() 2014-04-26 11:52:45 +09:00
Jun Hiroe 8916381dba Refactor fix_or() 2014-04-26 11:52:45 +09:00
Jun Hiroe c2d46a43b2 Refactor fix_and() 2014-04-26 11:52:45 +09:00
Jun Hiroe 1bf4633ced Refactor flo_finite_p() 2014-04-26 11:52:45 +09:00