Commit Graph

1219 Commits

Author SHA1 Message Date
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
Yukihiro Matsumoto d749ccfd3e add description of MRB_IV_INITIAL_SIZE 2012-07-30 23:56:34 +09:00
Yukihiro Matsumoto 515862cc01 khash refactoring; no more MRB_KHASH_INITIAL_SIZE 2012-07-30 23:55:35 +09:00
Yukihiro Matsumoto 857370c2b7 use const MRB_IV_INITIAL_SIZE 2012-07-30 17:33:54 +09:00
Yukihiro Matsumoto 0c55f7ecc3 add description of MRB_HEAP_PAGE_SIZE 2012-07-30 17:18:32 +09:00
Yukihiro Matsumoto d91f475e55 better mrbconf decsription 2012-07-30 17:16:13 +09:00
Yukihiro Matsumoto e75c76ecee iv khash initial size to 8 2012-07-30 17:16:05 +09:00
Yukihiro Matsumoto c808f647aa allow specifying khash initial size 2012-07-30 16:41:05 +09:00
Yukihiro "Matz" Matsumoto c6f62104d3 Merge pull request #409 from monaka/pr-configurable-initial_hash_size
MRB_INITIAL_HASH_SIZE : Make the initial hash size configurable.
2012-07-30 00:33:34 -07:00
Masaki Muranaka b1cc715b36 MRB_INITIAL_HASH_SIZE : Make the initial hash size configurable. 2012-07-30 15:31:49 +09:00
Yukihiro Matsumoto 14410d1391 configurable MRB_HEAP_PAGE_SIZE 2012-07-30 13:18:24 +09:00
Yukihiro Matsumoto 446005620b remove __STDC_LIMIT_MACROS for INT32_MAX 2012-07-30 10:51:24 +09:00
Yukihiro Matsumoto eb34ad365b fixed the comment English 2012-07-30 09:45:37 +09:00
Yukihiro "Matz" Matsumoto ff707384c3 Merge pull request #407 from silverhammermba/cpp
C++ compatibility
2012-07-29 17:42:17 -07:00