Commit Graph

489 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto dbd36128ad forget to re-initialize target_class for top-level eval; close #1418 2013-07-30 01:33:02 +09:00
fleuria e2d36d1336 introduce mrb_assert() in mruby.h 2013-07-25 02:53:53 +08:00
Yukihiro "Matz" Matsumoto 4ad4ce6caf restore once removed mrb_garbage_collect() 2013-07-24 23:31:46 +09:00
Yukihiro "Matz" Matsumoto e1706e65f9 Merge pull request #1407 from Fleurer/gc-introduce-incremental-gc-step
separate out `incremental_gc_step()` from `mrb_incremental_gc()`, and misc minor rename
2013-07-24 07:18:50 -07:00
fleuria 2591922ec2 rename variable_gray_list to atomic_gray_list 2013-07-24 18:22:53 +08:00
fleuria c852626ea7 rename mrb_garbage_collect() to mrb_full_gc() 2013-07-24 16:17:53 +08:00
Yukihiro "Matz" Matsumoto bc843ed927 Merge pull request #1382 from suzukaze/add-comments
Add comments in irep.h
2013-07-18 19:32:25 -07:00
Jun Hiroe 8e42868600 Repalace int with mrb_bool because a return value is boolean. 2013-07-15 23:17:12 +09:00
Jun Hiroe f05580f1bc Add comments. 2013-07-15 01:52:47 +09:00
Jun Hiroe efac8db674 Replace int with mrb_bool because a return value is boolean. 2013-07-14 23:51:44 +09:00
Yukihiro "Matz" Matsumoto b8a46227ee put pointer tables before bitmap to avoid alignment issues; ref #1353 2013-07-10 13:14:40 +09:00
Yukihiro "Matz" Matsumoto f941dbe78f Merge pull request #1353 from mirichi/khash
khash.h optimizes more.
2013-07-07 17:07:57 -07:00
mirichi cdb23edf31 It optimizes more. 2013-07-07 22:17:44 +09:00
Yukihiro "Matz" Matsumoto 06fae56f4b Merge pull request #1352 from k-tsj/change-param-type-to-suppress-warnings
Change parameter type to suppress -Wsign-compare warnings
2013-07-07 05:05:10 -07:00
Kazuki Tsujimoto 8ab83f763d Change parameter type to suppress -Wsign-compare warnings 2013-07-07 14:18:37 +09:00
mirichi 550905000c kh_resize_##name bug fixed. 2013-07-07 09:23:50 +09:00
mirichi 00353a3c42 khash optimize 2013-07-06 09:10:42 +09:00
Jun Hiroe f40bd6cb47 Add comments in mrb_state struct. 2013-07-04 21:17:20 +09:00
h2so5 3f823a0cee Add mrb_class_get_under() 2013-07-01 11:50:13 +09:00
Yukihiro "Matz" Matsumoto e33249e267 Merge pull request #1318 from Fleurer/refactor_realloc
refactor mrb_realloc() in gc.c
2013-06-29 06:33:38 -07:00
fleuria 68f31e94f5 refactor mrb_realloc()
remove the redundant codes with mrb_malloc_simple()
2013-06-28 23:15:31 +08:00
Cremno bc91bcefcf include inttypes.h if _MSC_VER is not defined 2013-06-27 12:30:25 +02:00
Cremno 8728837478 Visual Studio 2013 support + strtof + inline
- VC12 has better C99 library support due to C++11
- defined strtof for VC11 or older
- define "inline" only if the C compiler is used
2013-06-27 12:18:35 +02:00
Yukihiro "Matz" Matsumoto 3ceeb0be95 add mrb_malloc_simple() that returns NULL on error 2013-06-25 15:38:28 +09:00
Yukihiro "Matz" Matsumoto 4e877bc92f restructure header files; move non config lines away from mrbconf.h 2013-06-10 14:40:32 +09:00
Yukihiro "Matz" Matsumoto b172be47fa small refactoring over word boxing 2013-05-29 00:05:57 +09:00
Yukihiro "Matz" Matsumoto 7b8ae1b8b6 Merge branch 'master' of github.com:mruby/mruby 2013-05-26 21:27:16 +09:00
kimu_shu e720782f81 Add MRB_WORD_BOXING mode (represent mrb_value as a word) 2013-05-26 10:09:17 +09:00
Yukihiro "Matz" Matsumoto 6557ee938a mruby error messages should be directed to stderr 2013-05-26 02:13:02 +09:00
Yukihiro "Matz" Matsumoto 76ddf86c72 manage fiber status (create|running|resumed|terminated) 2013-05-23 15:24:31 +09:00
Yukihiro "Matz" Matsumoto 2045a35292 garbage collect context (fiber) properly 2013-05-22 11:05:22 +09:00
Yukihiro "Matz" Matsumoto 5c0b9b703c primary mruby fiber implementation 2013-05-20 17:54:07 +09:00
Ryan Scott 8161f0f6d7 Merge remote-tracking branch 'origin/master' 2013-05-18 11:05:09 +10:00
Ryan Scott 4acfadfee1 Fixed the each object callback to be more consistent with other callbacks. 2013-05-18 10:55:41 +10:00
Ryan Scott 40d63f7740 Changed the each_object callback so that a pointer is passed for the object, instead of the struct. 2013-05-17 08:02:24 +10:00
Ryan Scott f62cc5b1ee Changed the object_count so that it only iterates over the RBasic object, not the full RVALUE known by the GC 2013-05-17 07:41:13 +10:00
Ryan Scott 222918deae First implementation of ObjectSpace moved outside of gc.c 2013-05-17 07:21:33 +10:00
Yukihiro "Matz" Matsumoto 95fb1fd809 mrbc to take multiple files, preserving debug information if -g given; close #1243 2013-05-14 23:39:56 +09:00
Yukihiro "Matz" Matsumoto 7921fd545c move mruby's showcallinfo into the core 2013-05-13 10:40:43 +09:00
Ryan Scott 0d4227ac04 Implemented ObjectSpace.count_objects to count the number of allocated objects for each type 2013-05-12 18:42:21 +10:00
Ryan Scott 37e3643f8f Potential fix for 'inline' macro redefinition error - VS2012 C++ 2013-05-11 23:32:49 +10:00
Yukihiro "Matz" Matsumoto b7a24de377 change mrb_bug to get mrb_state and %S formatter 2013-05-10 22:11:28 +09:00
Yukihiro "Matz" Matsumoto fad8b1cefa change mrb_warn to get mrb_state and %S formatter 2013-05-10 22:09:02 +09:00
Keita Obo 9887f7cb27 Rename parameter names for mrb_yield 2013-05-10 00:16:27 +09:00
crimsonwoods 1dfe52e53d fix typos. 2013-05-05 11:28:06 +09:00
Daniel Bovensiepen f0a9b95af3 Push Copyright year up to 2013 2013-05-02 14:11:07 +08:00
h2so5 1e5b00e772 Remove mrb_class_obj_get 2013-05-01 21:10:17 +09:00
Yukihiro "Matz" Matsumoto 02f843d8dc rename mrb_to_id to mrb_obj_to_sym since symbol is nothing to do with identifier in mruby 2013-04-29 15:35:30 +09:00
Yukihiro "Matz" Matsumoto ee14d37da4 use uint8_t for mrb_bool instead of unsigned int; close #1222 2013-04-29 11:46:16 +09:00
Yukihiro "Matz" Matsumoto 8890a992a6 always use unsigned int as mrb_bool even in C++ 2013-04-29 09:23:43 +09:00