Commit Graph

1583 Commits

Author SHA1 Message Date
Paolo Bosetti 193c98ae54 Updated Xcode project build settings in conformity with 10.8/Xcode 4.4 2012-08-06 14:55:28 +02:00
Yukihiro Matsumoto 52ba6f5a8c class variable resolution should be same as const resolution 2012-08-05 17:12:03 +09:00
Yukihiro Matsumoto 722c53c560 Merge branch 'master' of github.com:mruby/mruby 2012-08-05 17:08:35 +09:00
Yukihiro Matsumoto 7c4bd7fffd remove OP_MOVE just before OP_RETURN 2012-08-05 17:07:43 +09:00
Yukihiro "Matz" Matsumoto 84acfa89fa Merge pull request #416 from monaka/pr-fix-message-length
Fix message lengths.
2012-08-04 16:47:09 -07:00
Masaki Muranaka b231bcb812 load_exec(): Fix message lenghtes in mrb_exc_new().
mrb_run(): Fix not to use a magic number but sizeof.
2012-08-04 19:54:21 +09:00
Yukihiro Matsumoto 472d214a71 super look-up scheme fixed; close #415 2012-08-04 06:44:53 +09:00
Yukihiro Matsumoto 730f53045e define_method to copy block body 2012-08-03 20:17:04 +09:00
Yukihiro Matsumoto 77aa261f3b mrb_singleton_class should raise TypeError for immediate objects 2012-08-03 19:56:14 +09:00
Yukihiro Matsumoto f121558f93 mrb_define_method_vm should update target_class 2012-08-03 19:55:01 +09:00
Yukihiro "Matz" Matsumoto 55192a82b7 Merge pull request #414 from monaka/pr-fix-memory-reak-in-mrb_realloc
Fix a memory leak in mrb_realloc().
2012-08-02 22:32:35 -07:00
Masaki Muranaka 81b41e84e9 Fix a memory leak in mrb_realloc(). 2012-08-03 14:03:53 +09:00
Yukihiro Matsumoto 6fb88f7e1d update regs after cfunc call [2] 2012-08-03 01:02:43 +09:00
Yukihiro Matsumoto 5aff0d3f25 update regs after cfunc call 2012-08-03 00:40:36 +09:00
Yukihiro Matsumoto 6f6e18ef82 struct.c refactoring 2012-08-02 22:17:27 +09:00
Yukihiro Matsumoto b8b22c1d17 use mrb_obj_equal to check pool 2012-08-02 22:15:49 +09:00
Yukihiro Matsumoto 6491693d00 mrb_get_args("&") gave wrong value 2012-08-02 22:03:53 +09:00
Yukihiro Matsumoto cc0f249c17 Time.new may not take any argument 2012-08-02 21:53:23 +09:00
Yukihiro Matsumoto a7f0e3bc80 small return optimization: use R0 to set return value if possible 2012-08-02 13:13:41 +09:00
Yukihiro Matsumoto 91318da3bc wrong return value from empty block/lambda 2012-08-02 12:57:57 +09:00
Yukihiro Matsumoto 90323f545f keep minimal stack space (recv and blk) 2012-08-02 07:56:23 +09:00
Yukihiro Matsumoto 29d4eb6e20 stack pos should be adjusted for CFUNC OP_EXEC 2012-08-02 04:00:42 +09:00
Yukihiro Matsumoto 1549502079 mrb_check_convert_type should always return nil on error 2012-08-02 01:58:20 +09:00
Yukihiro Matsumoto bce9198732 reduce invoking mrb_intern from convert_type 2012-08-02 01:53:35 +09:00
Yukihiro Matsumoto b00529e672 reduce invoking const_missing 2012-08-02 01:53:01 +09:00
Yukihiro Matsumoto 9ccf9767e1 protect return value from mrb_funcall 2012-08-02 01:13:45 +09:00
Yukihiro Matsumoto dcfff971ff remove OP_LOADNIL from NODE_OP_ASGN 2012-08-02 00:48:50 +09:00
Yukihiro Matsumoto 47ff5a0643 move OP_LOADNIL just before OP_SEND to improve performance on some platforms 2012-08-02 00:43:38 +09:00
Yukihiro Matsumoto 1ff6dfd081 should not leave open code on syntax errors; close #413 2012-08-01 17:52:14 +09:00
Yukihiro Matsumoto d271bf0aa6 make mrb_funcall_argv and mrb_funcall_with_block to take mrb_sym as a method name 2012-08-01 13:15:02 +09:00
Yukihiro Matsumoto 7511508a64 restore arena index after funcall 2012-08-01 12:54:57 +09:00
Yukihiro Matsumoto 0220953efe no OP_LOADNIL for operators (OP_ADD, etc) 2012-08-01 02:33:55 +09:00
Yukihiro Matsumoto 1a54120869 add cast to pacify optimizer 2012-08-01 01:56:37 +09:00
Yukihiro Matsumoto 883b97ab05 some test requires double precision 2012-08-01 01:23:34 +09:00
Yukihiro Matsumoto 34cf05679c add Math::TOLERANCE 2012-08-01 01:12:09 +09:00
Yukihiro Matsumoto cde3c35666 too much peephole optimization 2012-08-01 01:11:16 +09:00
Yukihiro Matsumoto d6bd191cc4 remove stupid debug print 2012-08-01 00:46:27 +09:00
Yukihiro Matsumoto 0270d11c81 float do not have enough precision to round if MRB_USE_FLOAT is set 2012-08-01 00:45:12 +09:00
Yukihiro Matsumoto 1563cdfcce float do not have enough precision to represent Fixnum if MRB_USE_FLOAT is set 2012-08-01 00:06:50 +09:00
Yukihiro Matsumoto 1d64ecf0fa float do not have enough precision if MRB_USE_FLOAT is set 2012-07-31 23:56:35 +09:00
Yukihiro Matsumoto e87c95eba7 codegen optimization based on http://d.hatena.ne.jp/mirichi/20120730/p1 [Japanese]. 2012-07-31 22:21:42 +09:00
Yukihiro Matsumoto 1314c59295 space and newline reformatting 2012-07-31 19:34:52 +09:00
Yukihiro Matsumoto 9bfc64b4cb Merge branch 'master' of github.com:mruby/mruby 2012-07-31 19:01:09 +09:00
Yukihiro Matsumoto e064ff2098 add some benchmark programs 2012-07-31 19:00:52 +09:00
Yukihiro "Matz" Matsumoto 954c33a854 Merge pull request #412 from monaka/pr-add-parameter-for-pool
POOL_ALIGNMENT POOL_PAGE_SIZE : Configurable parameters.
2012-07-31 02:38:58 -07:00
Yukihiro "Matz" Matsumoto 0a4ec667c0 Merge pull request #410 from monaka/pr-remove-redundant-code-inmrb_array_aget
Remove redundant code in mrb_array_aget().
2012-07-31 02:33:05 -07:00
Masaki Muranaka 0cee3bb531 POOL_ALIGNMENT POOL_PAGE_SIZE : Configurable parameters. 2012-07-31 16:50:09 +09:00
Masaki Muranaka cc1fc5332a Remove redundant code in mrb_array_aget(). 2012-07-31 14:52:44 +09:00
Yukihiro Matsumoto bc7dc06c51 mark mrb->exc object 2012-07-31 10:57:14 +09:00
Yukihiro Matsumoto 998830e1bc reduce restoration of arena_idx in vm loop 2012-07-31 10:55:30 +09:00