Commit Graph

1105 Commits

Author SHA1 Message Date
skandhas 1a528da40b add mrb_check_hash_type 2013-01-10 17:02:41 +08:00
Yukihiro "Matz" Matsumoto 4f3e217ce7 Merge pull request #713 from masuidrive/add_s_options_to_ar
Added s flag to ar command
2013-01-09 08:48:43 -08:00
Yukihiro Matz Matsumoto f134e8e1bf jump address error when value taken from if statement without else clause; close #712 2013-01-10 01:06:51 +09:00
Yuichiro MASUI 3479d8474a Added s flag to ar command 2013-01-09 20:15:49 +09:00
Masaki Muranaka 86b3200746 Fix error handlings. 2013-01-09 13:33:00 +09:00
Masaki Muranaka 81b6895885 Merge branch 'master' of github.com:mruby/mruby into pr-strict-error-checking 2013-01-09 13:29:59 +09:00
Masaki Muranaka 0b337accad Extract each expresion in "if" statements. It is for maintainability. 2013-01-09 12:19:39 +09:00
Masaki Muranaka 94fb04a51e Remove redundant null checks. 2013-01-09 11:22:39 +09:00
Yukihiro "Matz" Matsumoto bcabae43a4 Merge pull request #703 from authorNari/skip_sweeping_old
Skip sweeping old slots which don't contain any young object in the minor GC
2013-01-07 01:29:56 -08:00
Narihiro Nakamura 542eda83ab Skip sweeping old slots which don't contain any young object. 2013-01-07 16:37:32 +09:00
Masaki Muranaka 0f99322f27 gc.c: Enable DEBUG(x) if GC_DEBUG is defined.
vm.c: Enable DEBUG(x) if VM_DEBUG is defined.
2013-01-07 15:28:05 +09:00
Narihiro Nakamura 5dfefb95df Add the generational gc 2013-01-07 01:47:21 +09:00
Narihiro Nakamura 7872d2974d These places need the write barrier 2013-01-07 01:33:35 +09:00
Masamitsu MURASE d48bb813d8 unless without else should return nil if the condition is true. 2013-01-06 06:23:10 +09:00
Masamitsu MURASE 749404051c Modify NODE_IF handling.
When "unless" is used without "else", tree->cdr->car of NODE_IF is NULL.
In this case, pop() should not be called because codegen generates no code.
2013-01-06 05:08:04 +09:00
skandhas e6a5a76885 add mrb_mod_method_defined 2013-01-04 15:28:59 +08:00
Yuichiro MASUI 7c469c0b9d Rebuild CRuby based building script without Makefile
Tested CRuby 1.8.6 and 1.9.3

You can see building configuration in build_config.rb
2013-01-03 02:24:15 +09:00
Narihiro Nakamura 8c27e43779 Fix a wrong comment 2012-12-31 15:59:23 +09:00
skandhas 779a73e7de add mrb_mod_remove_method/remove_method 2012-12-29 14:22:35 +08:00
Yukihiro Matz Matsumoto c836187cf2 minor cosmetic change after #676 2012-12-28 18:10:26 +09:00
skandhas 320a931965 fix correct stack postion for headless case 2012-12-28 16:48:33 +08:00
Yukihiro Matz Matsumoto 9d56acb709 wrong stack position for headless case; close #675 2012-12-28 17:12:22 +09:00
skandhas 4eb3ddfd30 add mrb_mod_remove_cvar 2012-12-25 12:07:54 +08:00
skandhas 3f54c90529 add mrb_mod_cvar_defined 2012-12-23 15:46:12 +08:00
skandhas 9599381ae3 add mrb_mod_cv_defined and mrb_cv_defined 2012-12-23 15:25:24 +08:00
skandhas eeb7779603 mruby should be throw a NameError, if class variable is not exist. 2012-12-22 20:37:19 +08:00
Yukihiro "Matz" Matsumoto 429359819a Merge pull request #662 from skandhas/pr-add-Module-class_variable_set
Add Module#class_variable_set for mruby
2012-12-21 07:19:25 -08:00
Yukihiro Matz Matsumoto 141d0d841c should copy lineno info to child scope 2012-12-22 00:11:19 +09:00
Yukihiro Matz Matsumoto 6a16cad1bf should save ciidx in exception raised from VM 2012-12-21 23:55:17 +09:00
Yukihiro Matz Matsumoto 40ea525d1e should raise error on return in block in top-level; close #664 2012-12-21 23:52:40 +09:00
skandhas f612f32aef fix mrb_mod_cv_set and add test for Module#class_variable_set 2012-12-21 16:17:13 +08:00
skandhas d06512b093 add mrb_mod_cvar_set 2012-12-21 15:09:40 +08:00
skandhas 824bacbee4 add mrb_mod_cv_set, mrb_cv_set 2012-12-21 14:22:35 +08:00
skandhas e6a47323b8 refactor mrb_vm_cv_get 2012-12-20 22:29:26 +08:00
skandhas 2ca47bba8f add check_cv_name 2012-12-20 22:17:36 +08:00
skandhas f341957fe5 mrb_mod_cvar_get 2012-12-20 22:13:08 +08:00
skandhas a9f1c4593c add mrb_cv_get 2012-12-20 21:33:30 +08:00
skandhas 5a65a7258f add mrb_mod_cv_get 2012-12-20 21:29:35 +08:00
Masamitsu MURASE 72ae2150c7 Modify String#bytes.
It should return non-negative integer.
2012-12-19 23:54:00 +09:00
Cremno 988bc22730 MSVC: include float header for _isnan and _finite 2012-12-19 11:32:12 +01:00
skandhas 1187bb5f05 fix memory leak in fuction:make_cdump_irep 2012-12-19 15:49:40 +08:00
Akira Yumiyama b24848b6ab refactoring src/dump.c 2012-12-19 08:33:11 +09:00
Yukihiro Matz Matsumoto 24feb401c1 codedump should print relative offset for irep in OP_LAMBDA 2012-12-18 03:09:44 +09:00
Yukihiro Matz Matsumoto 3be5bfbc7a nextc() might have problem on bytes higer than 0x80; close #628 2012-12-17 17:56:09 +09:00
Yukihiro Matz Matsumoto 9de76a71e1 should not ignore exception on top-level; close #635 2012-12-17 17:53:33 +09:00
skandhas 6dede4edf9 fix incorrect integer-overflow checkups in OP_SUB/OP_SUBI case. 2012-12-13 14:42:07 +08:00
Yukihiro Matz Matsumoto 35abbd1486 Merge branch 'master' of github.com:mruby/mruby 2012-12-13 00:50:19 +09:00
Yukihiro Matz Matsumoto 1207e245ea class of TT_VOIDP should be Object 2012-12-13 00:50:02 +09:00
Yukihiro "Matz" Matsumoto f2d3c4d2f7 Merge pull request #623 from liancheng/master
Call mrb_gc_arena_save/mrb_gc_arena_restore when proper
2012-12-12 06:11:04 -08:00
Lian Cheng 2fa0be2a30 Call mrb_gc_arena_save/mrb_gc_arena_restore instead of manipulating arena index directly 2012-12-12 21:05:02 +08:00