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
Yukihiro "Matz" Matsumoto
d7a34b625b
Merge pull request #1611 from h2so5/inspect-type
...
fix TypeError message
2013-12-19 06:03:20 -08:00
h2so5
61ac9ff2ea
fix codegen bug in NODE_CASE
2013-12-19 21:30:51 +09:00
h2so5
38a0a60412
fix TypeError message
2013-12-19 17:40:47 +09:00
Nobuhiro Iwamatsu
01fb0f02d5
Fix typo from expornent to exponent
...
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org >
2013-12-19 09:37:20 +09:00
nanami
87a392067a
Fixed callinfo buffer overflow while calling ensure handlers
2013-12-15 22:25:59 +08:00
h2so5
c6ede8ed02
Avoid recursive instance variable inspections
2013-12-10 16:41:11 +09:00
bggd
072871dcc5
Fix mod.constants cannot return the single character constant
2013-12-08 21:28:24 +09:00
Jun Hiroe
853e26e16a
Fix ISO no in Array#* and Array#+
2013-12-07 12:22:25 +09:00
Yukihiro "Matz" Matsumoto
3c2f51aef2
remove unnecessary keep size adjustment in stack_extend_alloc(); close #1602
2013-12-05 10:36:43 +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
Carson McDonald
ba67427872
Change scapa and rcapa to size_t, use scapa.
2013-12-02 06:51:07 -05:00
Yukihiro "Matz" Matsumoto
da8405a0f7
Merge pull request #1600 from take-cheeze/mrb_intern_lit
...
Proposal of mrb_intern_lit macro.
2013-12-01 21:29:46 -08:00
take_cheeze
df780ae5e9
add mrb_intern_lit for creating symbol from string literal
2013-12-01 10:38:59 +09:00
Yukihiro "Matz" Matsumoto
e981f0b45c
inline mrb_gc_arena_restore() and stack_extend() in VM loop
2013-12-01 00:56:30 +09:00
Yukihiro "Matz" Matsumoto
9c6398a444
rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513
2013-11-29 08:47:28 +09:00
Yukihiro "Matz" Matsumoto
9ac386923d
float objects in pool are objects when MRB_WORD_BOXING is set
2013-11-27 17:29:28 +09:00
kyab
1a6244d99d
Fix build error for MRB_WORD_BOXING
2013-11-26 20:28:24 +09:00
take_cheeze
ccc22d7b09
move debug record size assertion to correct position
2013-11-26 11:43:39 +09:00
take_cheeze
23a412830d
fix realloc error
2013-11-24 20:39:17 +09:00
Yukihiro "Matz" Matsumoto
07b8a5b042
Make mrb->arena variable sized. Use MRB_GC_FIXED_ARENA for old behavior.
...
You will not see "arena overflow" error anymore, but I encourage gem authors
to check your gems with MRB_GC_FIXED_ARENA to avoid memory broat.
2013-11-22 09:20:06 +09:00
Yukihiro "Matz" Matsumoto
fb386011df
rename API mrb_str_dup_static() -> mrb_str_pool()
2013-11-20 08:37:16 +09:00
Yukihiro "Matz" Matsumoto
217595c325
need to free pooled string bodies as well
2013-11-20 07:38:53 +09:00
Yukihiro "Matz" Matsumoto
16e1fbc1e8
mrb format should be portable among configurations (e.g. MRB_NAN_BOXING)
2013-11-20 07:34:57 +09:00
Yukihiro "Matz" Matsumoto
d73dfa8708
resolve conflict
2013-11-20 07:29:55 +09:00
Miura Hideki
54c5b12fb7
irep->pool struct pool -> mrb_value
2013-11-19 20:38:02 +09:00
Per Lundberg
d073129d9d
Fixed so that it builds with VS2013. VLA:s are not supported, because of its strict C89 world view.
2013-11-19 09:29:20 +02:00
Yukihiro "Matz" Matsumoto
f9b14f49e6
Merge pull request #1584 from cremno/rename-mrb_exc_new3
...
renamed mrb_exc_new3 to mrb_exc_new_str
2013-11-18 16:24:42 -08:00
Yukihiro "Matz" Matsumoto
e4c2f9c14f
Merge pull request #1585 from cremno/codegen-fixes
...
codegen_malloc/realloc: static + simple mem alloc
2013-11-18 16:24:07 -08:00
Yukihiro "Matz" Matsumoto
8954241687
clear ci->err after const set; revert 5b51b1; ref #1583
2013-11-19 09:21:55 +09:00